Package es.ipsa.atril.sec.admin

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


   
  public void grantGuest(AtrilSession oSes, User oUsr)
    throws AuthorizationManagerAdminException, ElementNotFoundException, NotEnoughRightsException {
    Log.out.debug("Begin CustomerAccount.grantUser("+oUsr.getEmail()+")");
    AuthorizationAdminManager oAam = oSes.getAuthorizationAdminManager();
    AdminGroupRights oRgh = AdminRightsFactory.getGroupRightsAllDeny();
    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);   
View Full Code Here


   
  public void grantUser(AtrilSession oSes, User oUsr)
    throws AuthorizationManagerAdminException, ElementNotFoundException, NotEnoughRightsException {
    Log.out.debug("Begin CustomerAccount.grantUser("+oUsr.getEmail()+")");
    AuthorizationAdminManager oAam = oSes.getAuthorizationAdminManager();
    AdminGroupRights oRgh = AdminRightsFactory.getGroupRightsAllDeny();
    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);
View Full Code Here

  public void grantAdmin(AtrilSession oSes, User oUsr)
    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);
View Full Code Here

TOP

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

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.