Package es.ipsa.atril.sec.admin

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


    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);
  }
 
  public void grant(AtrilSession oSes, Document... aDocs)
    throws AuthorizationException,ElementNotFoundException {
    AuthorizationManager oAum = oSes.getAuthorizationManager();
View Full Code Here


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

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

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

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

      oAdm.addMember(oAsr);
      oAam.setRights(oAsr, oAdm, oAll);
    }
    AdministeredGroup oStd = oAam.getGroup(sBusinessName+" standard users");
    if (oStd.getMembers().contains(oAsr))
      oStd.removeMember(oAsr);
    oAam.setRights(oAsr, oStd, oAll);
    AdministeredGroup oGts = oAam.getGroup(sBusinessName+" guests");
    if (oGts.getMembers().contains(oAsr))
      oGts.removeMember(oAsr);
    oAam.setRights(oAsr, oGts, oAll);
View Full Code Here

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

    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);
  }

  public void denyUser(AtrilSession oSes, User oUsr)
    throws AuthorizationManagerAdminException, ElementNotFoundException, NotEnoughRightsException {
    AuthorizationAdminManager oAam = oSes.getAuthorizationAdminManager();
View Full Code Here

    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);
  }

  public void denyAdmin(AtrilSession oSes, User oUsr)
    throws AuthorizationManagerAdminException, ElementNotFoundException, NotEnoughRightsException {
    AuthorizationAdminManager oAam = oSes.getAuthorizationAdminManager();
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.