public class DocumentUtils extends Object
Constructor and Description |
---|
DocumentUtils() |
Modifier and Type | Method and Description |
---|---|
static Optional<String> |
getDisplayName(javax.jcr.Node handle)
Retrieve the display name of a document
|
static Optional<javax.jcr.Node> |
getHandle(String uuid,
javax.jcr.Session session)
Retrieve a document handle node.
|
static Optional<String> |
getVariantNodeType(javax.jcr.Node handle)
Retrieve the node type of a variant node of a document identified by its handle node, e.g.
|
public static Optional<javax.jcr.Node> getHandle(String uuid, javax.jcr.Session session)
uuid
- UUID of the nodesession
- JCR session to access the nodepublic static Optional<String> getDisplayName(javax.jcr.Node handle)
handle
- JCR node representing a document handlepublic static Optional<String> getVariantNodeType(javax.jcr.Node handle)
handle
- JCR node representing a document handleCopyright © 2007–2017 Hippo B.V. (http://www.onehippo.com). All rights reserved.