Package org.alfresco.repo.node
Class SystemNodeUtils
- java.lang.Object
-
- org.alfresco.repo.node.SystemNodeUtils
-
public abstract class SystemNodeUtils extends Object
Utilities for working with System Nodes- Since:
- 4.1
- Author:
- Nick Burch
-
-
Constructor Summary
Constructors Constructor Description SystemNodeUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description 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.static NodeRefgetSystemChildContainer(QName childName, NodeService nodeService, Repository repositoryHelper)Returns the NodeRef of a given Child Container within the current Tenant's System Container, if foundstatic List<NodeRef>getSystemChildContainers(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
-
-
-
Method Detail
-
getSystemContainer
public static NodeRef getSystemContainer(NodeService nodeService, Repository repositoryHelper)
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
-
-