Package com.esri.gpt.framework.security.metadata

Examples of com.esri.gpt.framework.security.metadata.MetadataAcl


        }
      }
       
      // build the ACL property for the document
      acl = Val.chkStr(acl);
      MetadataAcl oAcl = new MetadataAcl(this.getRequestContext());
      String[] aclValues = oAcl.makeDocumentAcl(acl);
      AclProperty aclProp = new AclProperty(Storeables.FIELD_ACL);
      aclProp.setValues(aclValues);
     
      // build the document to store
      storeables.ensure(meanings,Storeables.FIELD_UUID).setValue(uuid);
View Full Code Here


   * documents that are visible to the active user.
   * @param reader the Lucene index reader
   * @throws IOException if an index i/o exception occurs
   */
  public void prepare(IndexReader reader) throws IOException {   
    MetadataAcl acl = new MetadataAcl(this.requestContext);
    AuthenticationStatus auth = this.requestContext.getUser().getAuthenticationStatus();
    boolean bAdmin = auth.getAuthenticatedRoles().hasRole("gptAdministrator");
    Filter filter = null;
    if (!bAdmin && !acl.isPolicyUnrestricted()) {
      String[] aclValues = acl.makeUserAcl();
      filter = new AclFilter(Storeables.FIELD_ACL,aclValues);
    }
    filter = IsPartOfFilter.make(this.getRequestContext(),filter);
    if (filter != null) {
      this.documentFilterBitSet = (OpenBitSet)filter.getDocIdSet(reader);
View Full Code Here

TOP

Related Classes of com.esri.gpt.framework.security.metadata.MetadataAcl

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.