public interface ContentTypes
ContentTypeService
.Modifier and Type | Method and Description |
---|---|
ContentType |
getContentTypeForNode(javax.jcr.Node node)
Returns the effective ContentType representation for a specific Node
|
ContentType |
getContentTypeForNodeByPath(javax.jcr.Session session,
String path)
Returns the effective ContentType representation for an existing Node identified by its absolute path
|
ContentType |
getContentTypeForNodeByUuid(javax.jcr.Session session,
String uuid)
Returns the effective ContentType representation for an existing Node identified by its uuid
|
EffectiveNodeTypes |
getEffectiveNodeTypes() |
ContentType |
getType(String name) |
SortedMap<String,Set<ContentType>> |
getTypesByPrefix() |
long |
version() |
EffectiveNodeTypes getEffectiveNodeTypes()
long version()
ContentType getType(String name)
name
- Qualified Name for a ContentType (see JCR-2.0 3.2.5.2)SortedMap<String,Set<ContentType>> getTypesByPrefix()
ContentType getContentTypeForNode(javax.jcr.Node node) throws javax.jcr.RepositoryException
node
- The Node for which to retrieve the ContentType representationjavax.jcr.RepositoryException
- if a repository error occursContentType getContentTypeForNodeByUuid(javax.jcr.Session session, String uuid) throws javax.jcr.ItemNotFoundException, javax.jcr.RepositoryException
The existence and allowed read access to the Node is first checked through the provided Session.
session
- An active repository Sessionuuid
- An existing Node uuidjavax.jcr.ItemNotFoundException
- if node doesn't exist or is not accessiblejavax.jcr.RepositoryException
- if another error occursContentType getContentTypeForNodeByPath(javax.jcr.Session session, String path) throws javax.jcr.PathNotFoundException, javax.jcr.RepositoryException
The existence and allowed read access to the Node is first checked through the provided Session.
session
- An active repository Sessionpath
- The absolute path of an existing Nodejavax.jcr.PathNotFoundException
- if node doesn't exist or is not accessiblejavax.jcr.RepositoryException
- if a repository error occursCopyright © 2012–2019 Hippo B.V. (http://www.onehippo.com). All rights reserved.