public class NodeTypesUtils extends Object
| Constructor and Description |
|---|
NodeTypesUtils() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
checkPermissionForType(String typename,
JCRNodeWrapper node)
Check if the provided type match permission requirements on the provided node
|
static Set<NodeTypeTreeEntry> |
getContentTypesAsTree(List<String> nodeTypes,
List<String> excludedNodeTypes,
boolean includeSubTypes,
String path,
JCRSessionWrapper session,
Locale uiLocale)
Utility method that build a list of jmix:droppableContent nodeTypes for a given path as a tree.
|
public static Set<NodeTypeTreeEntry> getContentTypesAsTree(List<String> nodeTypes, List<String> excludedNodeTypes, boolean includeSubTypes, String path, JCRSessionWrapper session, Locale uiLocale) throws javax.jcr.RepositoryException
nodeTypes - is a list of nodeTypes to return.excludedNodeTypes - is a list of nodeTypes to filter out.includeSubTypes - is a boolean, if true it checks the nodeTypes' sub types.path - on witch we check the available types.session - JCR SessionuiLocale - current UI localejavax.jcr.RepositoryExceptionpublic static boolean checkPermissionForType(String typename, JCRNodeWrapper node) throws javax.jcr.RepositoryException
typename - type to checknode - node on witch reading the permissionjavax.jcr.RepositoryExceptionCopyright © 2004–2020 Jahia Solutions Group SA. All rights reserved.