Package es.ipsa.atril.sec.user

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


  }
 
  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);
    UsersGroup oUgrp = new UsersGroup(oAum, oUsersGrp);
    UsersGroup oOgrp = new UsersGroup(oAum, oOpersGrp);
    UsersGroup oAgrp = new UsersGroup(oAum, oAdminsGrp);   
    for (Document oDoc : aDocs) {
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);
    UsersGroup oUgrp = new UsersGroup(oAum, oUsersGrp);
    UsersGroup oOgrp = new UsersGroup(oAum, oOpersGrp);
    UsersGroup oAgrp = new UsersGroup(oAum, oAdminsGrp);   
    for (BaseModelObject oObj : aObjs) {
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);
    UsersGroup oUgrp = new UsersGroup(oAum, oUsersGrp);
    UsersGroup oOgrp = new UsersGroup(oAum, oOpersGrp);
    UsersGroup oAgrp = new UsersGroup(oAum, oAdminsGrp);   
    for (BaseModelObject oObj : aObjs) {
View Full Code Here

    return true;
  }

  public boolean isOperator(AtrilSession oSes) {
    AuthorizationManager oAum = oSes.getAuthorizationManager();
    Group oGrp = Zesped.getOperatorsGroup(oAum);
    long lId = getAdministeredUser().getId();
    for (es.ipsa.atril.sec.user.User u : oGrp.getMembers())
      if (u.getId()==lId)
        return true;
    return false;
  }
View Full Code Here

TOP

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

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.