Package org.hippoecm.repository.util
Class DocumentUtils
java.lang.Object
org.hippoecm.repository.util.DocumentUtils
DocumentUtils provides utility methods for dealing with JCR nodes that represent documents.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfindHandle
(Node node) getDisplayName
(Node handle) Retrieve the display name of a documentRetrieve a document handle node.getVariantNodeType
(Node handle) Retrieve the node type of a variant node of a document identified by its handle node, e.g.
-
Constructor Details
-
DocumentUtils
public DocumentUtils()
-
-
Method Details
-
getHandle
Retrieve a document handle node.- Parameters:
uuid
- UUID of the nodesession
- JCR session to access the node- Returns:
- Handle node or nothing, wrapped in an Optional
-
getDisplayName
Retrieve the display name of a document- Parameters:
handle
- JCR node representing a document handle- Returns:
- Display string or nothing, wrapped in an Optional
-
getVariantNodeType
Retrieve the node type of a variant node of a document identified by its handle node, e.g. "project:blogpost".- Parameters:
handle
- JCR node representing a document handle- Returns:
- Node type or nothing, wrapped in an Optional
-
findHandle
-