/** * Delegates to the <code>NodeService</code> used as the version store implementation */ public NodeRef getRootNode(StoreRef storeRef) { return dbNodeService.getRootNode(storeRef); }
/** * Delegates to the <code>NodeService</code> used as the version store implementation */ public NodeRef getRootNode(StoreRef storeRef) { return dbNodeService.getRootNode(storeRef); }
/** * Gets the root home of the company home store * * @return root node ref */ public NodeRef getRootHome() { // note: store root nodes are cached by the NodeDAO return nodeService.getRootNode(companyHomeStore); }
/** * Gets the root home of the company home store * * @return root node ref */ public NodeRef getRootHome() { // note: store root nodes are cached by the NodeDAO return nodeService.getRootNode(companyHomeStore); }
private NodeRef getRootNode() { StoreRef storeRef = repoModelsLocation.getStoreRef(); return nodeService.getRootNode(storeRef); }
private NodeRef getRootNode() { StoreRef storeRef = repoModelsLocation.getStoreRef(); return nodeService.getRootNode(storeRef); }
/** * Gets the version stores root node * * @return the node ref to the root node of the version store */ protected NodeRef getRootNode() { // Get the version store root node reference return this.dbNodeService.getRootNode(getVersionStoreReference()); }
public NodeRef doWork() throws Exception { return nodeService.getRootNode(StoreRef.STORE_REF_WORKSPACE_SPACESSTORE); } };
@Override public Long execute() throws Throwable { createTestNode(nodeService.getRootNode(storeRef)); return nodeDAO.getCurrentTransactionId(true); } };
/** * Simulates the node begin attached ot the root node of the version store. */ public ChildAssociationRef getPrimaryParent(NodeRef nodeRef) throws InvalidNodeRefException { return new ChildAssociationRef( ContentModel.ASSOC_CHILDREN, dbNodeService.getRootNode(new StoreRef(StoreRef.PROTOCOL_WORKSPACE, STORE_ID)), rootAssocName, nodeRef); }
/** * This method returns the number of items from trashcan * * @return int */ private int getNumberOfItemsInTrashcan() { NodeRef archiveRootNodeRef = nodeService.getRootNode(StoreRef.STORE_REF_ARCHIVE_SPACESSTORE); return nodeService.countChildAssocs(archiveRootNodeRef, true); }
public Object getDocumentNode(Object o) { ChildAssociationRef assocRef = (ChildAssociationRef) o; StoreRef storeRef = assocRef.getChildRef().getStoreRef(); return new ChildAssociationRef(null, null, null, nodeService.getRootNode(storeRef)); }
/** * Simulates the node begin attached ot the root node of the version store. */ public ChildAssociationRef getPrimaryParent(NodeRef nodeRef) throws InvalidNodeRefException { return new ChildAssociationRef( ContentModel.ASSOC_CHILDREN, dbNodeService.getRootNode(new StoreRef(StoreRef.PROTOCOL_WORKSPACE, STORE_ID)), rootAssocName, nodeRef); }
/** * Simulates the node begin attached to the root node of the version store. */ public ChildAssociationRef getPrimaryParent(NodeRef nodeRef) throws InvalidNodeRefException { return new ChildAssociationRef( ContentModel.ASSOC_CHILDREN, dbNodeService.getRootNode(new StoreRef(StoreRef.PROTOCOL_WORKSPACE, Version2Model.STORE_ID)), rootAssocName, nodeRef); }
/** * @return {@link NodeRef} instance of '<code>/app:company_home</code>' node */ private NodeRef findCompanyHomeNodeRef() { NodeRef storeRootNodeRef = nodeService.getRootNode(StoreRef.STORE_REF_WORKSPACE_SPACESSTORE); List<NodeRef> nodeRefs = searchService.selectNodes(storeRootNodeRef, APP_COMPANY_HOME, null, namespaceService, false); return nodeRefs.get(0); }
@Before public void before() throws Exception { this.nodeService = (NodeService)this.applicationContext.getBean("nodeService"); this.contentService = (ContentService)this.applicationContext.getBean("contentService"); this.testStoreRef = this.nodeService.createStore(StoreRef.PROTOCOL_WORKSPACE, "Test_" + System.currentTimeMillis()); this.rootNodeRef = this.nodeService.getRootNode(this.testStoreRef); }
public Void execute() throws Throwable { NodeService nodeService = serviceRegistry.getNodeService(); NodeRef rootNodeRef = nodeService.getRootNode(StoreRef.STORE_REF_WORKSPACE_SPACESSTORE); nodeService.setProperty(rootNodeRef, ContentModel.PROP_NAME, "SanityCheck"); return null; } };
@Override public Object execute() throws Throwable { // As system user AuthenticationUtil.setFullyAuthenticatedUser(AuthenticationUtil.getSystemUserName()); storeRef = StoreRef.STORE_REF_WORKSPACE_SPACESSTORE; rootNodeRef = nodeService.getRootNode(storeRef); return null; } });
@Before public void before() throws Exception { ServiceRegistry serviceRegistry = (ServiceRegistry) applicationContext.getBean(ServiceRegistry.SERVICE_REGISTRY); this.nodeService = serviceRegistry.getNodeService(); this.contentService = serviceRegistry.getContentService(); AuthenticationUtil.setRunAsUser(AuthenticationUtil.getSystemUserName()); this.testStoreRef = this.nodeService.createStore(StoreRef.PROTOCOL_WORKSPACE, "Test_" + System.currentTimeMillis()); this.rootNodeRef = this.nodeService.getRootNode(this.testStoreRef); }
private NodeRef getParentNodeRef() { NodeRef rootNodeRef = nodeService.getRootNode(StoreRef.STORE_REF_WORKSPACE_SPACESSTORE); // create temporary folder NodeRef parentNodeRef = nodeService.createNode(rootNodeRef, ContentModel.ASSOC_CHILDREN, QName.createQName(NamespaceService.ALFRESCO_URI, "working root" + GUID.generate()), ContentModel.TYPE_FOLDER).getChildRef(); return parentNodeRef; }