Package es.ipsa.atril.sec.user

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


  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")) {
View Full Code Here


      return aUsrs;
    }
 
  public void grantAll(Document... aDocs)
    throws AuthorizationException {
    DocumentRights oGrt = RightsFactory.getDocumentRightsAllGrant();
    if (aDocs!=null)
      for (Document oDoc : aDocs)
        oAum.setDocumentRights(oGrp, oDoc, oGrt);
  }
View Full Code Here

        oAum.setDocumentRights(oGrp, oDoc, oGrt);
  }

  public void grantReadOnly(Document... aDocs)
    throws AuthorizationException {
    DocumentRights oGrt = RightsFactory.getDocumentRightsAllDeny();
    oGrt.setRead(true);
    oGrt.setQuery(true);
    oGrt.setConfigure(true);
    if (aDocs!=null)
      for (Document oDoc : aDocs)
      oAum.setDocumentRights(oGrp, oDoc, oGrt);
  }
View Full Code Here

TOP

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

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.