public class ContentDefinitionHelper extends Object
| Modifier and Type | Field and Description |
|---|---|
static com.google.gwt.i18n.shared.DateTimeFormat |
dateFormat |
static com.google.gwt.i18n.shared.DateTimeFormat |
dateTimeFormat |
| Constructor and Description |
|---|
ContentDefinitionHelper() |
| Modifier and Type | Method and Description |
|---|---|
javax.jcr.Value |
convertValue(org.jahia.ajax.gwt.client.data.definition.GWTJahiaNodePropertyValue val,
ExtendedPropertyDefinition def) |
org.jahia.ajax.gwt.client.data.definition.GWTJahiaNodePropertyValue |
convertValue(javax.jcr.Value val,
ExtendedPropertyDefinition def) |
Map<String,org.jahia.ajax.gwt.client.data.GWTChoiceListInitializer> |
getAllChoiceListInitializersValues(List<ExtendedNodeType> items,
ExtendedNodeType contextType,
JCRNodeWrapper contextNode,
JCRNodeWrapper contextParent,
Locale uiLocale) |
Map<String,Map<String,List<org.jahia.ajax.gwt.client.data.definition.GWTJahiaNodePropertyValue>>> |
getAllDefaultValues(List<ExtendedNodeType> items,
List<Locale> locales)
Get both dynamic and static default values for the specified types and locales
|
List<ExtendedNodeType> |
getAvailableMixin(String type,
JCRSiteNode site) |
Map<org.jahia.ajax.gwt.client.data.definition.GWTJahiaNodeType,List<org.jahia.ajax.gwt.client.data.definition.GWTJahiaNodeType>> |
getContentTypes(List<String> baseTypes,
Map<String,Object> ctx,
Locale uiLocale,
boolean includeSubTypes,
boolean displayStudioElement)
Returns a list of node types with name and label populated that are the
sub-types of the specified base type or that are allowed to be created in
the specified parent node (if the baseType parameter is null).
|
List<org.jahia.ajax.gwt.client.data.definition.GWTJahiaNodeType> |
getContentTypesAsList(List<String> baseTypes,
Map<String,Object> ctx,
Locale uiLocale,
boolean includeSubTypes,
boolean displayStudioElement)
Returns a list of node types with name and label populated that are the
sub-types of the specified base type or that are allowed to be created in
the specified parent node (if the baseType parameter is null).
|
List<org.jahia.ajax.gwt.client.data.definition.GWTJahiaNodeType> |
getContentTypesAsTree(List<String> nodeTypes,
List<String> excludedNodeTypes,
boolean includeSubTypes,
JCRSiteNode site,
Locale uiLocale,
JCRSessionWrapper session)
Returns a tree of node types and sub-types with name and label populated that are the
sub-types of the specified node types.
|
org.jahia.ajax.gwt.client.data.definition.GWTJahiaNodeType |
getGWTJahiaNodeType(ExtendedNodeType nodeType,
Locale uiLocale) |
List<org.jahia.ajax.gwt.client.data.definition.GWTJahiaNodeType> |
getGWTNodeTypes(List<ExtendedNodeType> availableMixins,
Locale uiLocale) |
org.jahia.ajax.gwt.client.data.GWTChoiceListInitializer |
getInitializerValues(ExtendedPropertyDefinition epd,
ExtendedNodeType contextType,
JCRNodeWrapper contextNode,
JCRNodeWrapper contextParent,
Map<String,List<org.jahia.ajax.gwt.client.data.definition.GWTJahiaNodePropertyValue>> dependentValues,
Locale uiLocale) |
org.jahia.ajax.gwt.client.data.definition.GWTJahiaNodeType |
getNodeType(String name,
Locale uiLocale) |
List<org.jahia.ajax.gwt.client.data.definition.GWTJahiaNodeType> |
getNodeTypes(List<String> names,
Locale uiLocale) |
List<org.jahia.ajax.gwt.client.data.definition.GWTJahiaNodeType> |
getSubNodeTypes(List<String> names,
Locale uiLocale) |
static void |
resolveDateConstraint(org.jahia.ajax.gwt.client.data.definition.GWTJahiaPropertyDefinition prop) |
static void |
resolveNumericConstraint(org.jahia.ajax.gwt.client.data.definition.GWTJahiaPropertyDefinition prop) |
void |
setChoiceListInitializerService(ChoiceListInitializerService choiceListInitializerService) |
void |
setNavigation(NavigationHelper navigation) |
public static final com.google.gwt.i18n.shared.DateTimeFormat dateTimeFormat
public static final com.google.gwt.i18n.shared.DateTimeFormat dateFormat
public void setNavigation(NavigationHelper navigation)
public void setChoiceListInitializerService(ChoiceListInitializerService choiceListInitializerService)
public org.jahia.ajax.gwt.client.data.definition.GWTJahiaNodeType getNodeType(String name, Locale uiLocale)
public List<org.jahia.ajax.gwt.client.data.definition.GWTJahiaNodeType> getGWTNodeTypes(List<ExtendedNodeType> availableMixins, Locale uiLocale)
public org.jahia.ajax.gwt.client.data.definition.GWTJahiaNodeType getGWTJahiaNodeType(ExtendedNodeType nodeType, Locale uiLocale)
public static void resolveNumericConstraint(org.jahia.ajax.gwt.client.data.definition.GWTJahiaPropertyDefinition prop)
public static void resolveDateConstraint(org.jahia.ajax.gwt.client.data.definition.GWTJahiaPropertyDefinition prop)
public List<org.jahia.ajax.gwt.client.data.definition.GWTJahiaNodeType> getNodeTypes(List<String> names, Locale uiLocale)
public List<org.jahia.ajax.gwt.client.data.definition.GWTJahiaNodeType> getSubNodeTypes(List<String> names, Locale uiLocale)
public Map<org.jahia.ajax.gwt.client.data.definition.GWTJahiaNodeType,List<org.jahia.ajax.gwt.client.data.definition.GWTJahiaNodeType>> getContentTypes(List<String> baseTypes, Map<String,Object> ctx, Locale uiLocale, boolean includeSubTypes, boolean displayStudioElement)
baseTypes - the node type name to find sub-typesctx - current processing context instanceuiLocale - Locale of the UIincludeSubTypes - if true, include sub typesdisplayStudioElement - if true, add the jmix:studio types.public List<org.jahia.ajax.gwt.client.data.definition.GWTJahiaNodeType> getContentTypesAsList(List<String> baseTypes, Map<String,Object> ctx, Locale uiLocale, boolean includeSubTypes, boolean displayStudioElement)
baseTypes - the node type name to find sub-typesctx - current processing context instanceuiLocale - displayStudioElement - public List<ExtendedNodeType> getAvailableMixin(String type, JCRSiteNode site) throws javax.jcr.nodetype.NoSuchNodeTypeException
javax.jcr.nodetype.NoSuchNodeTypeExceptionpublic org.jahia.ajax.gwt.client.data.definition.GWTJahiaNodePropertyValue convertValue(javax.jcr.Value val,
ExtendedPropertyDefinition def)
throws javax.jcr.RepositoryException
javax.jcr.RepositoryExceptionpublic javax.jcr.Value convertValue(org.jahia.ajax.gwt.client.data.definition.GWTJahiaNodePropertyValue val,
ExtendedPropertyDefinition def)
throws javax.jcr.RepositoryException
javax.jcr.RepositoryExceptionpublic Map<String,org.jahia.ajax.gwt.client.data.GWTChoiceListInitializer> getAllChoiceListInitializersValues(List<ExtendedNodeType> items, ExtendedNodeType contextType, JCRNodeWrapper contextNode, JCRNodeWrapper contextParent, Locale uiLocale) throws javax.jcr.RepositoryException
javax.jcr.RepositoryExceptionpublic org.jahia.ajax.gwt.client.data.GWTChoiceListInitializer getInitializerValues(ExtendedPropertyDefinition epd, ExtendedNodeType contextType, JCRNodeWrapper contextNode, JCRNodeWrapper contextParent, Map<String,List<org.jahia.ajax.gwt.client.data.definition.GWTJahiaNodePropertyValue>> dependentValues, Locale uiLocale) throws javax.jcr.RepositoryException
javax.jcr.RepositoryExceptionpublic Map<String,Map<String,List<org.jahia.ajax.gwt.client.data.definition.GWTJahiaNodePropertyValue>>> getAllDefaultValues(List<ExtendedNodeType> items, List<Locale> locales) throws javax.jcr.RepositoryException
items - a list of nodeTypeslocales - a list of localesjavax.jcr.RepositoryException - in case of JCR-related errorspublic List<org.jahia.ajax.gwt.client.data.definition.GWTJahiaNodeType> getContentTypesAsTree(List<String> nodeTypes, List<String> excludedNodeTypes, boolean includeSubTypes, JCRSiteNode site, Locale uiLocale, JCRSessionWrapper session) throws org.jahia.ajax.gwt.client.service.GWTJahiaServiceException
nodeTypes - excludedNodeTypes - includeSubTypes - site - uiLocale - session - org.jahia.ajax.gwt.client.service.GWTJahiaServiceExceptionCopyright © 2004–2020 Jahia Solutions Group SA. All rights reserved.