public class IdentifierManager
extends java.lang.Object
| Constructor and Description |
|---|
IdentifierManager(Root root) |
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
generateUUID() |
static java.lang.String |
generateUUID(java.lang.String hint) |
static java.lang.String |
getIdentifier(Tree tree)
Return the identifier of a tree.
|
java.lang.String |
getPath(PropertyState referenceValue)
Returns the path of the tree references by the specified (weak)
reference
PropertyState. |
java.lang.String |
getPath(PropertyValue referenceValue)
Returns the path of the tree references by the specified (weak)
reference
PropertyState. |
java.lang.String |
getPath(java.lang.String identifier)
The path of the tree identified by the specified
identifier or null. |
java.lang.Iterable<java.lang.String> |
getReferences(boolean weak,
Tree tree,
java.lang.String propertyName,
java.lang.String... nodeTypeNames)
Searches all reference properties to the specified
tree that match
the given name and node type constraints. |
Tree |
getTree(java.lang.String identifier)
The possibly non existing tree identified by the specified
identifier or null. |
static boolean |
isValidUUID(java.lang.String uuid) |
java.lang.String |
resolveUUID(java.lang.String uuid) |
public IdentifierManager(Root root)
public static java.lang.String generateUUID()
public static java.lang.String generateUUID(java.lang.String hint)
public static boolean isValidUUID(java.lang.String uuid)
public static java.lang.String getIdentifier(Tree tree)
tree - a treetreepublic Tree getTree(java.lang.String identifier)
identifier or null.identifier - The identifier of the tree such as exposed by getIdentifier(Tree)identifier or null if no
such tree exists.public java.lang.String getPath(java.lang.String identifier)
identifier or null.identifier - The identifier of the tree such as exposed by getIdentifier(Tree)identifier or null if no
such tree exists or if the tree is not accessible.public java.lang.String getPath(PropertyState referenceValue)
PropertyState.referenceValue - A (weak) reference value.identifier or null if no
such tree exists or isn't accessible to the content session.public java.lang.String getPath(PropertyValue referenceValue)
PropertyState.referenceValue - A (weak) reference value.identifier or null if no
such tree exists or isn't accessible to the content session.public java.lang.Iterable<java.lang.String> getReferences(boolean weak,
Tree tree,
java.lang.String propertyName,
java.lang.String... nodeTypeNames)
tree that match
the given name and node type constraints.weak - if true only weak references are returned. Otherwise only
hard references are returned.tree - The tree for which references should be searched.propertyName - A name constraint for the reference properties;
null if no constraint should be enforced.nodeTypeNames - Node type constraints to be enforced when using
for reference properties; the specified names are expected to be internal
oak names.tree and matching the constraints.public java.lang.String resolveUUID(java.lang.String uuid)
"Copyright © 2010 - 2018 Adobe Systems Incorporated. All Rights Reserved"