Package es.ipsa.atril.sec.admin

Examples of es.ipsa.atril.sec.admin.AuthorizationAdminManager


    super.load(oSes, sDocId);

    setEmail(getDocument().attribute("email").toString());
    setNickName(getDocument().attribute("user_uuid").toString());

    AuthorizationAdminManager oAam = oSes.getAuthorizationAdminManager();
    setAdministeredUser(oAam.getUser(getDocument().attribute("user_uuid").toString()));
    setFirstName(getAdministeredUser().getFirstName());
    setLastName(getAdministeredUser().getLastName());
    if (isNull("password"))
      setPassword(null);
    else
View Full Code Here


    if (getPassword()!=null) {
      put("password", ACL.encript(getPassword(), ACL.PWD_DTIP_RC4_64));
    }

    if (!sFormer1stName.equals(getFirstName()) || !sFormer2ndName.equals(getLastName()) || !sFormerPassword.equals(getPassword())) {
      AuthorizationAdminManager oAam = oSes.getAuthorizationAdminManager();
      AdministeredUser oUsr = oAam.getUser(sNickName);
      super.save(oSes);
      if (!sFormer1stName.equals(getFirstName())) oUsr.setFirstName(getFirstName());
      if (!sFormer2ndName.equals(getLastName())) oUsr.setLastName(getLastName());
      if (!sFormerPassword.equals(getPassword())) {
        oUsr.changePassword(sFormerPassword, getPassword());
      }
      oAam.updateUser(oUsr);
    } else {
      super.save(oSes);     
    }
  }
View Full Code Here

  public void delete(AtrilSession oSes)
    throws DmsException, ElementNotFoundException, ClassNotFoundException,
         InstantiationException, IllegalAccessException, ClassCastException,
         IllegalStateException, NullPointerException,SecurityException {
    if (getNickName().equals("admin")) throw new SecurityException("Cannot delete admin user");
    AuthorizationAdminManager oAam = oSes.getAuthorizationAdminManager();
    oAam.removeUser(getAdministeredUser());
    BaseModelObject.delete(oSes, id());
    clear();
  }
View Full Code Here

TOP

Related Classes of es.ipsa.atril.sec.admin.AuthorizationAdminManager

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.