AnsweredAssumed Answered

How do I access the files in users home space

Question asked by ajaylakhani on Mar 5, 2007
Latest reply on Mar 8, 2007 by ajaylakhani
Hi, could you please advice on how to get access to the files in a user's home space. I am unable to get a node reference using the below code:

Node node = null;
String path = "/app:company_home/cm:Users/cm:Ajays_x0020_Space";

Repository  RepositoryServiceSoapBindingStub repositoryService = webServiceFactory.getRepositoryService();

Reference reference = new Reference(STORE, uuid, path);

Predicate predicate = new Predicate(new Reference[]{reference}, null, null);

node = repositoryService.get(predicate)[0];
—– the exception is
Exception in thread "main"
com.crawler.alfresco.AlfrescoException: Could not locate resource
   at com.crawler.alfresco.AlfrescoDriver.getNode(AlfrescoDriver.java:103)
   at com.crawler.alfresco.AlfrescoDriver.getNode(AlfrescoDriver.java:111)
   at com.crawler.alfresco.AlfrescoDriver.main(AlfrescoDriver.java:170)

Outcomes