Class NodeRef
java.lang.Object
org.alfresco.service.cmr.repository.NodeRef
- All Implemented Interfaces:
Serializable,EntityRef
Reference to a node
- Author:
- Derek Hulley
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classHelper class to convey the status of a node. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanOverride equals for this ref typefinal StringgetId()getNodeRefs(String values) getNodeRefs(String values, org.apache.commons.logging.Log logger) final StoreRefinthashCode()Hashes on ID alone.static booleanDetermine if passed string conforms to the pattern of a node referencetoString()
-
Constructor Details
-
NodeRef
-
NodeRef
Construct a Node Reference from a Store Reference and Node Id- Parameters:
storeRef- store referenceid- the manually assigned identifier of the node
-
NodeRef
Construct a Node Reference from a string representation of a Node Reference.The string representation of a Node Reference is as follows:
/ - Parameters:
nodeRef- the string representation of a node ref
-
-
Method Details
-
toString
-
equals
Override equals for this ref type -
hashCode
public int hashCode()Hashes on ID alone. As the number of copies of a particular node will be minimal, this is acceptable -
getStoreRef
- Returns:
- The StoreRef part of this reference
-
getId
- Returns:
- The Node Id part of this reference
-
isNodeRef
Determine if passed string conforms to the pattern of a node reference- Parameters:
nodeRef- the node reference as a string- Returns:
- true => it matches the pattern of a node reference
-
getNodeRefs
-
getNodeRefs
-