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.
NodeRef folder = new NodeRef("PATH:/app:company_home/app:sites"); fileFolderService.create(folder, "asdf", ContentModel.TYPE_FOLDER);
@Override protected void executeImpl(Action uAction, NodeRef uNodeRef) { // TODO Auto-generated method stub fileFolderService.create(uNodeRef, "asdf", ContentModel.TYPE_FOLDER); }
StoreRef storeRef = new StoreRef(StoreRef.PROTOCOL_WORKSPACE, "SpacesStore"); ResultSet rs = searchService.query(storeRef, SearchService.LANGUAGE_XPATH, "/app:company_home"); NodeRef companyHomeNodeRef = null; try { if (rs.length() == 0) { throw new AlfrescoRuntimeException("Didn't find Company Home"); } companyHomeNodeRef = rs.getNodeRef(0); } finally { rs.close(); }
ResultSet rs = searchService.query(storeRef, SearchService.LANGUAGE_XPATH, "/app:company_home/st:sites");
/app:company_home/st:sites/cm:${SITE_SHORT_NAME}