As we transition to the new Hyland Community, some post links may be temporarily disrupted as we finalize redirects. We apologize for the inconvenience and are working to resolve this as quickly as possible. Details.
Store storeRef = new Store(Constants.WORKSPACE_STORE, "SpacesStore");
Reference node = new Reference(); node.setStore(storeRef); node.setUuid(nodeUUID); Node [] nodes = null; try { nodes = repositoryService.get(new Predicate(new Reference[]{node}, storeRef, null )); } catch (RepositoryFault e) { e.printStackTrace(); } catch (RemoteException e) { e.printStackTrace(); } return nodes[0].getReference().getPath();
try { AuthenticationDetails aDetails = AuthenticationUtils.getAuthenticationDetails(); UserDetails ud = WebServiceFactory.getAdministrationService().getUser(aDetails.getUserName()); //ud.get for (NamedValue item : ud.getProperties()) { if (item.getName().equals("{http://www.alfresco.org/model/content/1.0}homeFolder")) return item.getValue(); } } catch (AdministrationFault e) { // TODO Auto-generated catch block e.printStackTrace(); } catch (RemoteException e) { // TODO Auto-generated catch block e.printStackTrace(); }