Package org.alfresco.repo.node
Class SystemNodeUtils
java.lang.Object
org.alfresco.repo.node.SystemNodeUtils
Utilities for working with System Nodes
- Since:
- 4.1
- Author:
- Nick Burch
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetOrCreateSystemChildContainer(QName childName, NodeService nodeService, Repository repositoryHelper) Returns the NodeRef of a given Child Container within the current Tenant's System Container, creating the Container as System if required.static NodeRefgetSystemChildContainer(QName childName, NodeService nodeService, Repository repositoryHelper) Returns the NodeRef of a given Child Container within the current Tenant's System Container, if foundgetSystemChildContainers(QName childName, NodeService nodeService, Repository repositoryHelper) MNT-20212 Avoid using this method.static NodeRefgetSystemContainer(NodeService nodeService, Repository repositoryHelper) Returns the System Container for the current tenant
-
Constructor Details
-
SystemNodeUtils
public SystemNodeUtils()
-
-
Method Details
-
getSystemContainer
Returns the System Container for the current tenant -
getSystemChildContainer
public static NodeRef getSystemChildContainer(QName childName, NodeService nodeService, Repository repositoryHelper) Returns the NodeRef of a given Child Container within the current Tenant's System Container, if found -
getSystemChildContainers
public static List<NodeRef> getSystemChildContainers(QName childName, NodeService nodeService, Repository repositoryHelper) MNT-20212 Avoid using this method. It is meant only to fix that bug reported in the MNT Returns the list with all the NodeRef of a given Child Container within the current Tenant's System Container, if found -
getOrCreateSystemChildContainer
public static Pair<NodeRef,Boolean> getOrCreateSystemChildContainer(QName childName, NodeService nodeService, Repository repositoryHelper) Returns the NodeRef of a given Child Container within the current Tenant's System Container, creating the Container as System if required. The calling code should handle retries, locking etc.- Returns:
- the Child Container NodeRef, and whether the Container has just been created
-