Package es.ipsa.atril.sec.admin

Examples of es.ipsa.atril.sec.admin.AdministeredGroup.addMember()


    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);     
    }
    AdministeredGroup oStd = oAam.getGroup(sBusinessName+" standard users");
    if (oStd.getMembers().contains(oAsr))
      oStd.removeMember(oAsr);
View Full Code Here


    AdministeredGroup oAdm = oAam.getGroup(sBusinessName+" administrators");
    if (oAdm.getMembers().contains(oAsr))
      oAdm.removeMember(oAsr);
    AdministeredGroup oZus = oAam.getGroup("Zesped Users");
    if (!oZus.getMembers().contains(oUsr.getAdministeredUser())) {
      oZus.addMember(oUsr.getAdministeredUser());
      oAam.setRights(oAsr, oZus, oRgh);
    }
    Log.out.debug("End CustomerAccount.grantGuest("+oUsr.getEmail()+")");
  }
   
View Full Code Here

    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);     
    }
    AdministeredGroup oGts = oAam.getGroup(sBusinessName+" guests");
    if (oGts.getMembers().contains(oAsr))
      oGts.removeMember(oAsr);
View Full Code Here

    AdministeredGroup oAdm = oAam.getGroup(sBusinessName+" administrators");
    if (oAdm.getMembers().contains(oAsr))
      oAdm.removeMember(oAsr);
    AdministeredGroup oZus = oAam.getGroup("Zesped Users");
    if (!oZus.getMembers().contains(oUsr.getAdministeredUser())) {
      oZus.addMember(oUsr.getAdministeredUser());
      oAam.setRights(oAsr, oZus, oRgh);   
    }
    Log.out.debug("End CustomerAccount.grantUser("+oUsr.getEmail()+")");
  }
View Full Code Here

    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);
    }
    AdministeredGroup oStd = oAam.getGroup(sBusinessName+" standard users");
    if (oStd.getMembers().contains(oAsr))
      oStd.removeMember(oAsr);
View Full Code Here

    if (oGts.getMembers().contains(oAsr))
      oGts.removeMember(oAsr);
    oAam.setRights(oAsr, oGts, oAll);
    AdministeredGroup oZus = oAam.getGroup("Zesped Users");
    if (!oZus.getMembers().contains(oUsr.getAdministeredUser())) {
      oZus.addMember(oUsr.getAdministeredUser());
      oAam.setRights(oAsr, oZus, oAll);     
    }
    Log.out.debug("End CustomerAccount.grantAdmin("+oUsr.getEmail()+")");
  }
View Full Code Here

   
    if (oAcc==null) {
      AuthorizationAdminManager oAum = oSes.getAuthorizationAdminManager();
      AdministeredGroup oGrp = oAum.getGroup("Back-End operators");
      if (!oGrp.getMembers().contains(getAdministeredUser()))
        oGrp.addMember(getAdministeredUser());     
    } else {
      if (!getStringNull("customer_acount","").equals(oAcc.getUuid()) ||
         (eRole.equals(Role.admin) && (!canApproveInvoices() || !canSettleBillNotes() || !canUsePremiumCaptureServiceFlavor()))) {
        put ("customer_acount",oAcc.getUuid());
        if (eRole.equals(Role.admin)) {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.