Package es.ipsa.atril.sec.user

Examples of es.ipsa.atril.sec.user.AuthorizationManager


    return new CaptureType(oDms.getDocument(oLst.get(0).id()));
  }

  public void grantAll(AtrilSession oSes)
    throws ElementNotFoundException, NotEnoughRightsException, DmsException, InstantiationException, IllegalAccessException {
    AuthorizationManager oAum = oSes.getAuthorizationManager();
    Dms oDms = oSes.getDms();
    DocumentRights oGrt = RightsFactory.getDocumentRightsAllGrant();
    ArrayList<User> aUsrs = Users.top(oSes).list(oSes);
    Document oCpts = getDocument();
    for (User u : aUsrs) {
      String sNick = u.getNickName();
      if (!sNick.equals("admin")) {
        es.ipsa.atril.sec.user.User oUsr = oAum.getUser(sNick);
        oAum.setDocumentRights(oUsr, oCpts, oGrt);
        for (Document t : oCpts.children()) {
          oAum.setDocumentRights(oUsr, oDms.getDocument(t.id()), oGrt);
          for (Document f : t.children()) {
            oAum.setDocumentRights(oUsr, oDms.getDocument(f.id()), oGrt);
            for (Document s : f.children()) {
              oAum.setDocumentRights(oUsr, oDms.getDocument(s.id()), oGrt);             
            } // next
          } // next
        } // next
      } // fi
    } // next
View Full Code Here


    return s;     
  }
 
  public void grantAll(AtrilSession oSes)
    throws ElementNotFoundException, NotEnoughRightsException, DmsException, InstantiationException, IllegalAccessException {
    AuthorizationManager oAum = oSes.getAuthorizationManager();
    ArrayList<User> aUsrs = Users.top(oSes).list(oSes);
    Document oDeps = getDocument();
    for (User u : aUsrs)
      oAum.setDocumentRights(oAum.getUser(u.getNickName()), oDeps, RightsFactory.getDocumentRightsAllGrant());
  }
View Full Code Here

      return oAum.getGroup(getString("business_name")+" guests");
    }

    public ArrayList<User> getAdmins(AtrilSession oSes) throws ElementNotFoundException {
      Log.out.debug("CustomerAccount.getAdmins()");
      AuthorizationManager oAum = oSes.getAuthorizationManager();
      UsersGroup oUgrp = new UsersGroup(oAum, getAdminsGroup(oAum));
      return oUgrp.getMembers(oSes);
    }
View Full Code Here

      return oUgrp.getMembers(oSes);
    }

    public ArrayList<User> getUsers(AtrilSession oSes) throws ElementNotFoundException {
      Log.out.debug("CustomerAccount.getUsers()");
      AuthorizationManager oAum = oSes.getAuthorizationManager();
      UsersGroup oUgrp = new UsersGroup(oAum, getUsersGroup(oAum));
      return oUgrp.getMembers(oSes);
    }
View Full Code Here

      return oUgrp.getMembers(oSes);
    }

    public ArrayList<User> getGuests(AtrilSession oSes) throws ElementNotFoundException {
      Log.out.debug("CustomerAccount.getGuests()");
      AuthorizationManager oAum = oSes.getAuthorizationManager();
      UsersGroup oUgrp = new UsersGroup(oAum, getGuestsGroup(oAum));
      return oUgrp.getMembers(oSes);
    }
View Full Code Here

      oAdm.removeMember(oAsr);
  }
 
  public void grant(AtrilSession oSes, Document... aDocs)
    throws AuthorizationException,ElementNotFoundException {
    AuthorizationManager oAum = oSes.getAuthorizationManager();
    Group oGuestsGrp = getGuestsGroup(oAum);
    Group oUsersGrp = getUsersGroup(oAum);
    Group oOpersGrp = Zesped.getOperatorsGroup(oAum);
    Group oAdminsGrp = getAdminsGroup(oAum);
    UsersGroup oGgrp = new UsersGroup(oAum, oGuestsGrp);
View Full Code Here

    }
  }

  public void grant(AtrilSession oSes, Collection<? extends BaseModelObject> aObjs)
    throws AuthorizationException,ElementNotFoundException {
    AuthorizationManager oAum = oSes.getAuthorizationManager();   
    Group oGuestsGrp = getGuestsGroup(oAum);
    Group oUsersGrp = getUsersGroup(oAum);
    Group oOpersGrp = Zesped.getOperatorsGroup(oAum);
    Group oAdminsGrp = getAdminsGroup(oAum);
    UsersGroup oGgrp = new UsersGroup(oAum, oGuestsGrp);
View Full Code Here

  }
 
  public void grant(BaseModelObject... aObjs)
    throws AuthorizationException,ElementNotFoundException {
    AtrilSession oSes = DAO.getAdminSession("CustomerAccount.grant");
    AuthorizationManager oAum = oSes.getAuthorizationManager();   
    Group oGuestsGrp = getGuestsGroup(oAum);
    Group oUsersGrp = getUsersGroup(oAum);
    Group oOpersGrp = Zesped.getOperatorsGroup(oAum);
    Group oAdminsGrp = getAdminsGroup(oAum);
    UsersGroup oGgrp = new UsersGroup(oAum, oGuestsGrp);
View Full Code Here

  public void writeInfrastructureDocuments() {

      AtrilSession oSess = DAO.getAdminSession(getClass().getName()+".createDataModel");

      AuthorizationManager oAum = oSess.getAuthorizationManager();
     
    Zesped.createGroups(oSess);
   
      oSess.commit();
     
View Full Code Here

    final int nCaptureModes = aCaptureModes.length;
    final int nScanModes = aScanModes.length;

    Dms oDms = oSes.getDms();
   
    AuthorizationManager oAum = oSes.getAuthorizationManager();
      UsersGroup oUsrsGrp = new UsersGroup(oAum, Zesped.getUsersGroup(oAum));
    UsersGroup oOpersGrp = new UsersGroup(oAum, Zesped.getOperatorsGroup(oAum));
   
    CaptureType oCpt = new CaptureType();   
    CaptureTypes oCts = null;
View Full Code Here

TOP

Related Classes of es.ipsa.atril.sec.user.AuthorizationManager

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.