Package es.ipsa.atril.sec.admin

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


    oRgh.setReadGroup(true);
    oRgh.setReadUsers(true);
    oRgh.setLinkResources(true);
    oRgh.setUnlinkResources(true);
    String sBusinessName = getString("business_name");
    AdministeredUser oAsr = oUsr.getAdministeredUser();
    AdministeredGroup oGts = oAam.getGroup(sBusinessName+" guests");
    if (!oGts.getMembers().contains(oAsr)) {
      oGts.addMember(oAsr);   
      oAam.setRights(oAsr, oGts, oRgh);     
    }
View Full Code Here


    oRgh.setReadGroup(true);
    oRgh.setReadUsers(true);
    oRgh.setLinkResources(true);
    oRgh.setUnlinkResources(true);
    String sBusinessName = getString("business_name");
    AdministeredUser oAsr = oUsr.getAdministeredUser();
    AdministeredGroup oStd = oAam.getGroup(sBusinessName+" standard users");
    if (!oStd.getMembers().contains(oAsr)) {
      oStd.addMember(oAsr);
      oAam.setRights(oAsr, oStd, oRgh);     
    }
View Full Code Here

    throws AuthorizationManagerAdminException, ElementNotFoundException, NotEnoughRightsException {
    Log.out.debug("Begin CustomerAccount.grantAdmin("+oUsr.getEmail()+")");
    AuthorizationAdminManager oAam = oSes.getAuthorizationAdminManager();
    AdminGroupRights oAll = AdminRightsFactory.getGroupRightsAllGrant();
    String sBusinessName = getString("business_name");
    AdministeredUser oAsr = oUsr.getAdministeredUser();
    AdministeredGroup oAdm = oAam.getGroup(sBusinessName+" administrators");
    if (!oAdm.getMembers().contains(oAsr)) {
      oAdm.addMember(oAsr);
      oAam.setRights(oAsr, oAdm, oAll);
    }
View Full Code Here

  public void denyGuest(AtrilSession oSes, User oUsr)
    throws AuthorizationManagerAdminException, ElementNotFoundException, NotEnoughRightsException {
    AuthorizationAdminManager oAam = oSes.getAuthorizationAdminManager();
    String sBusinessName = getString("business_name");
    AdministeredUser oAsr = oUsr.getAdministeredUser();
    AdministeredGroup oGts = oAam.getGroup(sBusinessName+" guests");
    if (oGts.getMembers().contains(oAsr))
      oGts.removeMember(oAsr);
  }
View Full Code Here

  public void denyUser(AtrilSession oSes, User oUsr)
    throws AuthorizationManagerAdminException, ElementNotFoundException, NotEnoughRightsException {
    AuthorizationAdminManager oAam = oSes.getAuthorizationAdminManager();
    String sBusinessName = getString("business_name");
    AdministeredUser oAsr = oUsr.getAdministeredUser();
    AdministeredGroup oStd = oAam.getGroup(sBusinessName+" users");
    if (oStd.getMembers().contains(oAsr))
      oStd.removeMember(oAsr);
  }
View Full Code Here

  public void denyAdmin(AtrilSession oSes, User oUsr)
    throws AuthorizationManagerAdminException, ElementNotFoundException, NotEnoughRightsException {
    AuthorizationAdminManager oAam = oSes.getAuthorizationAdminManager();
    String sBusinessName = getString("business_name");
    AdministeredUser oAsr = oUsr.getAdministeredUser();
    AdministeredGroup oAdm = oAam.getGroup(sBusinessName+" admins");
    if (oAdm.getMembers().contains(oAsr))
      oAdm.removeMember(oAsr);
  }
View Full Code Here

      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

TOP

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

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.