Package org.corrib.s3b.sscf.tools.sscf2js

Examples of org.corrib.s3b.sscf.tools.sscf2js.DirectoryPolicy


   * @param uri - uri of the directory.
   * @return - JSON representation of directory polices.
   */
  public String getDirectoryPolicies(String uri)
  {
    DirectoryPolicy dp = new DirectoryPolicy();
    List<String> policies = new ArrayList<String>();
   
    XfoafSscfResource resource = XfoafSscfResource.getXfoafSscfResource(uri);
   
    if(resource!=null)
    {
      Iterator<String> itacl = resource.listAccessibleTo();
      while(itacl.hasNext())
        policies.add(itacl.next());
    }
    dp.setPolicies(policies);
   
    return dp.toJSON();
  }
View Full Code Here

TOP

Related Classes of org.corrib.s3b.sscf.tools.sscf2js.DirectoryPolicy

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.