Class NodeTypeUtil
java.lang.Object
org.exoplatform.services.jcr.webdav.util.NodeTypeUtil
Created by The eXo Platform SAS.
- Version:
- $Id: $
- Author:
- Vitaly Guly - gavrikvetal@gmail.com
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidcheckContentResourceType(javax.jcr.nodetype.NodeType contentNodeType) Cheks if the NodeType of content node extends nt:resource.static StringgetContentNodeType(String contentNodeTypeHeader) Returns the NodeType of content node according to the Content-NodeType header.getMixinTypes(String mixinTypes) Returns the list of node mixins.static StringgetNodeType(String nodeTypeHeader, String defaultNodeType, Set<String> allowedNodeTypes) Returns parsed nodeType obtained from node-type header.
-
Constructor Details
-
NodeTypeUtil
public NodeTypeUtil()
-
-
Method Details
-
getNodeType
public static String getNodeType(String nodeTypeHeader, String defaultNodeType, Set<String> allowedNodeTypes) throws javax.jcr.nodetype.NoSuchNodeTypeException Returns parsed nodeType obtained from node-type header. This method is unified for files and folders.- Parameters:
nodeTypeHeader-defaultNodeType-allowedNodeTypes-- Returns:
- Throws:
javax.jcr.nodetype.NoSuchNodeTypeException- is thrown if node-type header contains not allowed node type
-
getContentNodeType
Returns the NodeType of content node according to the Content-NodeType header.- Parameters:
contentNodeTypeHeader- Content-NodeType header- Returns:
- Nodetype
-
checkContentResourceType
public static void checkContentResourceType(javax.jcr.nodetype.NodeType contentNodeType) throws javax.jcr.nodetype.NoSuchNodeTypeException Cheks if the NodeType of content node extends nt:resource.- Parameters:
contentNodeType- Content-NodeType header- Throws:
javax.jcr.nodetype.NoSuchNodeTypeException-NoSuchNodeTypeException
-
getMixinTypes
Returns the list of node mixins.- Parameters:
mixinTypes- list of mixins or null- Returns:
- list of mixins
-