public class NodeTypeUtil extends Object
| Constructor and Description |
|---|
NodeTypeUtil() |
| Modifier and Type | Method and Description |
|---|---|
static void |
checkContentResourceType(javax.jcr.nodetype.NodeType contentNodeType)
Cheks if the NodeType of content node extends nt:resource.
|
static String |
getContentNodeType(String contentNodeTypeHeader)
Returns the NodeType of content node according to the Content-NodeType
header.
|
static ArrayList<String> |
getMixinTypes(String mixinTypes)
Returns the list of node mixins.
|
static String |
getNodeType(String nodeTypeHeader,
String defaultNodeType,
Set<String> allowedNodeTypes)
Returns parsed nodeType obtained from node-type header.
|
public static String getNodeType(String nodeTypeHeader, String defaultNodeType, Set<String> allowedNodeTypes) throws javax.jcr.nodetype.NoSuchNodeTypeException
nodeTypeHeader - defaultNodeType - allowedNodeTypes - javax.jcr.nodetype.NoSuchNodeTypeException - is thrown if node-type header contains not allowed node typepublic static String getContentNodeType(String contentNodeTypeHeader)
contentNodeTypeHeader - Content-NodeType headerpublic static void checkContentResourceType(javax.jcr.nodetype.NodeType contentNodeType)
throws javax.jcr.nodetype.NoSuchNodeTypeException
contentNodeType - Content-NodeType headerjavax.jcr.nodetype.NoSuchNodeTypeException - NoSuchNodeTypeExceptionCopyright © 2016 eXo Platform SAS. All Rights Reserved.