02-25-2009 10:07 AM
02-25-2009 11:28 AM
String homeSpaceId = Application.getCurrentUser(context).getHomeSpaceId();
NodeRef homeSpaceRef = new NodeRef(Repository.getStoreRef(), homeSpaceId);
02-25-2009 12:13 PM
NodeRef personNodeRef = personService.getPerson(userName);
NodeRef homespaceNodeRef = (NodeRef) nodeService.getProperty(personNodeRef, ContentModel.PROP_HOMEFOLDER); // Might be null
You can use the Node Browser in the admin section of the UI to see what properties are on the nodes.12-04-2009 07:03 AM
String userName = serviceRegistry.getAuthenticationService().getCurrentUserName();
repository.getUserHome(personNodeRef)
But this throws an exception. any idea when its safe to use repository.getUserHome?
Caused by: org.alfresco.error.AlfrescoRuntimeException: 11040002 Transaction must be active and synchronization is required:
…
at $Proxy11.getProperty(Unknown Source)
at org.alfresco.repo.model.Repository.getUserHome(Repository.java:288)
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.