|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.alfresco.service.cmr.repository.NodeRef
public final class NodeRef
Reference to a node
Nested Class Summary | |
---|---|
static class |
NodeRef.Status
Helper class to convey the status of a node. |
Constructor Summary | |
---|---|
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)
|
Method Summary | |
---|---|
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()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public NodeRef(java.lang.String protocol, java.lang.String identifier, java.lang.String id)
NodeRef.NodeRef(StoreRef, String)
,
StoreRef.StoreRef(String, String)
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 refMethod Detail |
---|
public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Object.equals(java.lang.Object)
public int hashCode()
hashCode
in class java.lang.Object
public final StoreRef getStoreRef()
public final java.lang.String getId()
public static boolean isNodeRef(java.lang.String nodeRef)
nodeRef
- the node reference as a string
public static java.util.List getNodeRefs(java.lang.String values)
String
containing a comma-separated list of NodeRef
Ids into NodeRefs.
values
- the String
of NodeRef
ids.
List
of 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.
values
- the String
of NodeRef
ids.logger
-
List
of NodeRefs
.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |