Package org.alfresco.repo.node
Class NodeUtils
- java.lang.Object
-
- org.alfresco.repo.node.NodeUtils
-
public abstract class NodeUtils extends Object
- Since:
- 4.0
- Author:
- Nick Smith
-
-
Constructor Summary
Constructors Constructor Description NodeUtils()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static booleanexists(NodeRef node, NodeService nodeService)static Filter<NodeRef>exists(NodeService nodeService)Comparator<NodeRef>getNodeCreationDateComparator(NodeService nodeService)static NodeRefgetSingleAssocNode(Collection<AssociationRef> assocs, boolean getTarget)static NodeRefgetSingleChildAssocNode(Collection<ChildAssociationRef> assocs, boolean getChild)List<NodeRef>sortByCreationDate(NodeService nodeService, Collection<NodeRef> nodes)static Function<ChildAssociationRef,NodeRef>toChildRef()static List<NodeRef>toChildRefs(Collection<ChildAssociationRef> assocRefs)static Function<String,NodeRef>toNodeRef()static Function<String,NodeRef>toNodeRefQueitly()static List<NodeRef>toNodeRefs(Collection<String> nodeIds)static Function<ChildAssociationRef,NodeRef>toParentRef()static List<NodeRef>toParentRefs(Collection<ChildAssociationRef> assocRefs)
-
-
-
Method Detail
-
toNodeRefs
public static List<NodeRef> toNodeRefs(Collection<String> nodeIds)
-
toChildRef
public static Function<ChildAssociationRef,NodeRef> toChildRef()
-
toChildRefs
public static List<NodeRef> toChildRefs(Collection<ChildAssociationRef> assocRefs)
-
toParentRef
public static Function<ChildAssociationRef,NodeRef> toParentRef()
-
toParentRefs
public static List<NodeRef> toParentRefs(Collection<ChildAssociationRef> assocRefs)
-
exists
public static Filter<NodeRef> exists(NodeService nodeService)
-
exists
public static boolean exists(NodeRef node, NodeService nodeService)
-
getSingleChildAssocNode
public static NodeRef getSingleChildAssocNode(Collection<ChildAssociationRef> assocs, boolean getChild)
-
getSingleAssocNode
public static NodeRef getSingleAssocNode(Collection<AssociationRef> assocs, boolean getTarget)
-
sortByCreationDate
public List<NodeRef> sortByCreationDate(NodeService nodeService, Collection<NodeRef> nodes)
-
getNodeCreationDateComparator
public Comparator<NodeRef> getNodeCreationDateComparator(NodeService nodeService)
-
-