public final class NodeRef extends java.lang.Object implements EntityRef, java.io.Serializable
| Modifier and Type | Class and Description |
|---|---|
static class |
NodeRef.Status
Helper class to convey the status of a node.
|
| Constructor and Description |
|---|
NodeRef(StoreRef storeRef,
java.lang.String id)
Construct a Node Reference from a Store Reference and Node Id
|
NodeRef(java.lang.String nodeRef)
Construct a Node Reference from a string representation of a Node Reference.
|
NodeRef(java.lang.String protocol,
java.lang.String identifier,
java.lang.String id) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj)
Override equals for this ref type
|
java.lang.String |
getId() |
static java.util.List |
getNodeRefs(java.lang.String values)
Converts a
String containing a comma-separated list of NodeRef Ids into NodeRefs. |
static java.util.List |
getNodeRefs(java.lang.String values,
org.apache.commons.logging.Log logger)
Converts a
String containing a comma-separated list of NodeRef Ids into NodeRefs. |
StoreRef |
getStoreRef() |
int |
hashCode()
Hashes on ID alone.
|
static boolean |
isNodeRef(java.lang.String nodeRef)
Determine if passed string conforms to the pattern of a node reference
|
java.lang.String |
toString() |
public NodeRef(java.lang.String protocol,
java.lang.String identifier,
java.lang.String id)
public NodeRef(StoreRef storeRef, java.lang.String id)
storeRef - store referenceid - the manually assigned identifier of the nodepublic NodeRef(java.lang.String nodeRef)
The string representation of a Node Reference is as follows:
/
nodeRef - the string representation of a node refpublic java.lang.String toString()
toString in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.ObjectObject.equals(java.lang.Object)public int hashCode()
hashCode in class java.lang.Objectpublic final StoreRef getStoreRef()
public final java.lang.String getId()
public static boolean isNodeRef(java.lang.String nodeRef)
nodeRef - the node reference as a stringpublic static java.util.List getNodeRefs(java.lang.String values)
String containing a comma-separated list of NodeRef Ids into NodeRefs.public static java.util.List getNodeRefs(java.lang.String values,
org.apache.commons.logging.Log logger)
String containing a comma-separated list of NodeRef Ids into NodeRefs.
If a logger is supplied then invalid ids are logged as warnings.Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.