Package org.opencms.file
Class CmsPropertyDefinition
java.lang.Object
org.opencms.file.CmsPropertyDefinition
- All Implemented Interfaces:
Cloneable
,Comparable<CmsPropertyDefinition>
public class CmsPropertyDefinition
extends Object
implements Cloneable, Comparable<CmsPropertyDefinition>
Defines a property name, so that
CmsProperty
instances can be created with that name.- Since:
- 6.0.0
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
Enumeration class for property types. -
Field Summary
Modifier and TypeFieldDescriptionstatic final String
The name constraints when generating new properties.static final String
Property for the active method in the administration view.static final String
Property for the allowed set of locales.static final String
Property to control the Java class for body.static final String
The name of the VFS property that controls the caching.static final String
Property used to hide categories from the category widgets in the page/content editor.static final String
The property to read an additional category folder from.static final String
Property to define the function detail container for a template.static final String
Property for the content conversion.static final String
Property for the content encoding.static final String
Property for the content encoding.static final String
Property for the default file in folders.static final String
Property for the days a resource has to be expired to be deleted by the
.CmsDeleteExpiredResourcesJob
static final String
Property for the description.static final String
Property for the description in HTML format.static final String
Property to set the display order of a content in lists.static final String
The name of the property which controls whether an element will be used as a copy model by the container page editor.static final String
May contain a path to an element replacement configuration, for use in the 'copy page' dialog.static final String
Property for the resource title.static final String
Property for the static export.static final String
Property used to record the resource type for resources whose type is unknown at import time, so they can be exported with that type later.static final String
Property for the resource export name, during export this name is used instead of the resource name.static final String
Property for JSP additional suffix during static export, default is "html".static final String
Property to control the folders where template or default bodies should be available.static final String
Property stating where to create new gallery folders.static final String
Property containing the maps API key.static final String
Property containing the maps API key.static final String
Property to control whether historic versions should be removed when deleted resources are published.static final String
Name of the property in which the focal point is stored.static final String
Property constant for"image.size"
.static final String
The property for defining the date (as Solr field) that should be used for sorting in lists.static final String
Property for the keywords.static final String
Property to enable __forceAbsoluteLinks request parameter for a resource.static final String
Property for the current locale.static final String
Property to mark detail pages to have locale independent detail only containers.static final String
Property for the 'do not translate' marking in the sitemap editor.static final String
Property for the login form.static final String
Property constant for"NavImage"
.static final String
Property constant for"NavInfo"
.static final String
Property for the navigation position.static final String
Property for the navigation text.static final String
Property for the resource title.static final String
Property for the relative root link substitution.static final String
Property name that defines the available resource types for the "new" dialog.static final String
Property to sort search results in categories.static final String
Property to exclude individual resources from search index generation.static final String
Property to exclude individual resources from search results online (Solr only).static final String
Property to boost certain search results.static final String
Property for secondary locales for use in the locale compare view in the sitemap editor.static final String
Property for the secure transmission of resources.static final String
Property for the stylesheet of files.static final String
Property to control the template.static final String
Property to customize for which templates elements should be displayed in the gallery when using the CmsTransformerTemplateProvider.static final String
Property for specifying a list of container types used to match formatters in the display formatter selection widget.static final String
Property to control the template elements.static final String
Property for the template image.static final String
Property to configure the value which should be used instead of the template path when selecting the template in the GUI.static final String
Property for the resource title.static final String
Property for user data request configuration.static final String
Property used to configure default organizational unit.static final String
Name of the property used to control whether mapped URL names should replace previous URL names.static final String
Property for the visible method in the administration view.static final String
Property for the XML sitemap change frequency.static final String
Property for the XML sitemap priority.static final int
The property definition type for resources.static final CmsPropertyDefinition.CmsPropertyType
Property value is treated as a link or list of links.static final CmsPropertyDefinition.CmsPropertyType
Property value is not a link. -
Constructor Summary
ConstructorDescriptionCmsPropertyDefinition
(CmsUUID id, String name) Creates a new property definition object with the type
.TYPE_NORMAL
CmsPropertyDefinition
(CmsUUID id, String name, CmsPropertyDefinition.CmsPropertyType propertyType) Creates a new property definition object. -
Method Summary
Modifier and TypeMethodDescriptionstatic void
checkPropertyName
(String name) Checks if the provided property name is a valid property name, that is contains only valid characters.clone()
Returns a clone of this Objects instance.int
boolean
getId()
Returns the id of this property definition.getName()
Returns the name of this property definition.static CmsPropertyDefinition
Returns the null property definition.getType()
Returns the the type of this property definition.int
hashCode()
void
Sets the type for this property definition.toString()
-
Field Details
-
NAME_CONSTRAINTS
The name constraints when generating new properties.- See Also:
-
PROPERTY_ACTIV
Property for the active method in the administration view.- See Also:
-
PROPERTY_AVAILABLE_LOCALES
Property for the allowed set of locales.- See Also:
-
PROPERTY_BODY_CLASS
Property to control the Java class for body.- See Also:
-
PROPERTY_CACHE
The name of the VFS property that controls the caching.- See Also:
-
PROPERTY_CATEGORY_HIDDEN
Property used to hide categories from the category widgets in the page/content editor.If this property is set to 'true' on a category, it should never be set to 'false' on one of its subcategory.
- See Also:
-
PROPERTY_CATEGORY_REPOSITORY
The property to read an additional category folder from.- See Also:
-
PROPERTY_CONTAINER_INFO
Property to define the function detail container for a template.- See Also:
-
PROPERTY_CONTENT_CONVERSION
Property for the content conversion.- See Also:
-
PROPERTY_CONTENT_ENCODING
Property for the content encoding.- See Also:
-
PROPERTY_COPYRIGHT
Property for the content encoding.- See Also:
-
PROPERTY_DEFAULT_FILE
Property for the default file in folders.- See Also:
-
PROPERTY_DELETE_EXPIRED
Property for the days a resource has to be expired to be deleted by the
.CmsDeleteExpiredResourcesJob
- See Also:
-
PROPERTY_DESCRIPTION
Property for the description.- See Also:
-
PROPERTY_DESCRIPTION_HTML
Property for the description in HTML format.- See Also:
-
PROPERTY_DISPLAY_ORDER
Property to set the display order of a content in lists.- See Also:
-
PROPERTY_ELEMENT_MODEL
The name of the property which controls whether an element will be used as a copy model by the container page editor.- See Also:
-
PROPERTY_ELEMENT_REPLACEMENTS
May contain a path to an element replacement configuration, for use in the 'copy page' dialog.- See Also:
-
PROPERTY_ENABLE_NOTIFICATION
Property for the resource title.- See Also:
-
PROPERTY_EXPORT
Property for the static export.- See Also:
-
PROPERTY_EXPORT_TYPE
Property used to record the resource type for resources whose type is unknown at import time, so they can be exported with that type later.- See Also:
-
PROPERTY_EXPORTNAME
Property for the resource export name, during export this name is used instead of the resource name.- See Also:
-
PROPERTY_EXPORTSUFFIX
Property for JSP additional suffix during static export, default is "html".- See Also:
-
PROPERTY_FOLDERS_AVAILABLE
Property to control the folders where template or default bodies should be available.- See Also:
-
PROPERTY_GALLERIES_FOLDER
Property stating where to create new gallery folders.- See Also:
-
PROPERTY_GOOGLE_API_KEY
Property containing the maps API key.- See Also:
-
PROPERTY_GOOGLE_API_KEY_WORKPLACE
Property containing the maps API key.- See Also:
-
PROPERTY_HISTORY_REMOVE_DELETED
Property to control whether historic versions should be removed when deleted resources are published.- See Also:
-
PROPERTY_IMAGE_FOCAL_POINT
Name of the property in which the focal point is stored.- See Also:
-
PROPERTY_IMAGE_SIZE
Property constant for"image.size"
.- See Also:
-
PROPERTY_INSTANCEDATE_COPYFIELD
The property for defining the date (as Solr field) that should be used for sorting in lists.- See Also:
-
PROPERTY_KEYWORDS
Property for the keywords.- See Also:
-
PROPERTY_LINKS_FORCEABSOLUTE_ENABLED
Property to enable __forceAbsoluteLinks request parameter for a resource.- See Also:
-
PROPERTY_LOCALE
Property for the current locale.- See Also:
-
PROPERTY_LOCALE_INDEPENDENT_DETAILS
Property to mark detail pages to have locale independent detail only containers.- See Also:
-
PROPERTY_LOCALE_NOTRANSLATION
Property for the 'do not translate' marking in the sitemap editor.- See Also:
-
PROPERTY_LOGIN_FORM
Property for the login form.- See Also:
-
PROPERTY_NAVIMAGE
Property constant for"NavImage"
.- See Also:
-
PROPERTY_NAVINFO
Property constant for"NavInfo"
.- See Also:
-
PROPERTY_NAVPOS
Property for the navigation position.- See Also:
-
PROPERTY_NAVTEXT
Property for the navigation text.- See Also:
-
PROPERTY_NOTIFICATION_INTERVAL
Property for the resource title.- See Also:
-
PROPERTY_RELATIVEROOT
Property for the relative root link substitution.- See Also:
-
PROPERTY_RESTYPES_AVAILABLE
Property name that defines the available resource types for the "new" dialog.- See Also:
-
PROPERTY_SEARCH_CATEGORY
Property to sort search results in categories.- See Also:
-
PROPERTY_SEARCH_EXCLUDE
Property to exclude individual resources from search index generation.- See Also:
-
PROPERTY_SEARCH_EXCLUDE_ONLINE
Property to exclude individual resources from search results online (Solr only).- See Also:
-
PROPERTY_SEARCH_PRIORITY
Property to boost certain search results.- See Also:
-
PROPERTY_SECONDARY_LOCALES
Property for secondary locales for use in the locale compare view in the sitemap editor.- See Also:
-
PROPERTY_SECURE
Property for the secure transmission of resources.- See Also:
-
PROPERTY_STYLESHEET
Property for the stylesheet of files.- See Also:
-
PROPERTY_TEMPLATE
Property to control the template.- See Also:
-
PROPERTY_TEMPLATE_COMPATILIBITY
Property to customize for which templates elements should be displayed in the gallery when using the CmsTransformerTemplateProvider.- See Also:
-
PROPERTY_TEMPLATE_DISPLAY_TYPES
Property for specifying a list of container types used to match formatters in the display formatter selection widget.- See Also:
-
PROPERTY_TEMPLATE_ELEMENTS
Property to control the template elements.- See Also:
-
PROPERTY_TEMPLATE_IMAGE
Property for the template image.- See Also:
-
PROPERTY_TEMPLATE_PROVIDER
Property to configure the value which should be used instead of the template path when selecting the template in the GUI. Please note that this does not have to actually be a template provider configuration string, this is just the most common use case.- See Also:
-
PROPERTY_TITLE
Property for the resource title.- See Also:
-
PROPERTY_UDR_CONFIG
Property for user data request configuration.- See Also:
-
PROPERTY_UDR_DEFAULTOU
Property used to configure default organizational unit.- See Also:
-
PROPERTY_URLNAME_REPLACE
Name of the property used to control whether mapped URL names should replace previous URL names.- See Also:
-
PROPERTY_VISIBLE
Property for the visible method in the administration view.- See Also:
-
PROPERTY_XMLSITEMAP_CHANGEFREQ
Property for the XML sitemap change frequency.- See Also:
-
PROPERTY_XMLSITEMAP_PRIORITY
Property for the XML sitemap priority.- See Also:
-
PROPERYDEFINITION_RESOURCE
The property definition type for resources.- See Also:
-
TYPE_LINK
Property value is treated as a link or list of links. -
TYPE_NORMAL
Property value is not a link.
-
-
Constructor Details
-
CmsPropertyDefinition
Creates a new property definition object with the type
.TYPE_NORMAL
- Parameters:
id
- the id of the property definitionname
- the name of the property definition
-
CmsPropertyDefinition
public CmsPropertyDefinition(CmsUUID id, String name, CmsPropertyDefinition.CmsPropertyType propertyType) Creates a new property definition object.- Parameters:
id
- the id of the property definitionname
- the name of the property definitionpropertyType
- the type of the property
-
-
Method Details
-
checkPropertyName
Checks if the provided property name is a valid property name, that is contains only valid characters.A property name can only be composed of digits, standard ASCII letters and the symbols defined in
NAME_CONSTRAINTS
.- Parameters:
name
- the property name to check- Throws:
CmsIllegalArgumentException
- if the given property name is not valid
-
getNullPropertyDefinition
Returns the null property definition.- Returns:
- the null property definition
-
clone
Returns a clone of this Objects instance. -
compareTo
- Specified by:
compareTo
in interfaceComparable<CmsPropertyDefinition>
- See Also:
-
equals
-
getId
Returns the id of this property definition.- Returns:
- id the id of this Propertydefinition
-
getName
Returns the name of this property definition.- Returns:
- name The name of this property definition
-
getType
Returns the the type of this property definition.- Returns:
- the type of this property definition
-
hashCode
-
setType
Sets the type for this property definition.- Parameters:
type
- the type to set
-
toString
-