03-27-2008 11:01 AM
// create references
Store _store = new Store(Constants.WORKSPACE_STORE, "SpacesStore");
String docPath1 = "/app:company_home/app:projects/cm:connectortest/cm:accessCheck/cm:all/cm:for_x0020_everybody1.txt";
String docPath2 = "/app:company_home/app:projects/cm:connectortest/cm:accessCheck/cm:user1_x0020_only/cm:top_x0020_secret1.txt";
String docPath3 = "/app:company_home/app:projects/cm:connectortest/cm:accessCheck/cm:all/cm:for_x0020_everybody2.txt";
Reference reference1 = new Reference(_store, null,docPath1);
Reference reference2 = new Reference(_store, null,docPath2);
Reference reference3 = new Reference(_store, null,docPath3);
Reference[] references = new Reference[]{reference1, reference2, reference3};
// check references
// -> calling this results in AxisFault, since reference 2 is
// not accessible for this user
Node[] nodes = WebServiceFactory.getRepositoryService().get(
new Predicate(references, _store, null));
06-24-2008 08:33 AM
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.