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
Nested ClassesModifier and TypeClassDescriptionstatic final classEnumeration class for property types. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe name constraints when generating new properties.static final StringProperty for the active method in the administration view.static final StringProperty for the allowed set of locales.static final StringProperty to control the Java class for body.static final StringThe name of the VFS property that controls the caching.static final StringProperty for configuring background color for a category in the explorer's category column.static final StringProperty used to hide categories from the category widgets in the page/content editor.static final StringThe property to read an additional category folder from.static final StringProperty to define the function detail container for a template.static final StringProperty for the content conversion.static final StringProperty for the content encoding.static final StringIf configured on a folder, when copying contents in the folder or any of its subfolders through ADE, the copies will be placed in the same folder as the original, and given a file name according to the name pattern.static final StringProperty for the content encoding.static final StringProperty for the default file in folders.static final StringProperty for the days a resource has to be expired to be deleted by the.CmsDeleteExpiredResourcesJobstatic final StringProperty for the description.static final StringProperty for the description in HTML format.static final StringProperty to set the display order of a content in lists.static final StringThe name of the property which controls whether an element will be used as a copy model by the container page editor.static final StringMay contain a path to an element replacement configuration, for use in the 'copy page' dialog.static final StringProperty for the resource title.static final StringProperty for the static export.static final StringProperty 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 StringProperty for the resource export name, during export this name is used instead of the resource name.static final StringProperty for JSP additional suffix during static export, default is "html".static final StringProperty to control the folders where template or default bodies should be available.static final StringProperty stating where to create new gallery folders.static final StringProperty containing the maps API key.static final StringProperty containing the maps API key.static final StringProperty to control whether historic versions should be removed when deleted resources are published.static final StringName of the property in which the focal point is stored.static final StringProperty constant for"image.size".static final StringThe property for defining the date (as Solr field) that should be used for sorting in lists.static final StringProperty for the keywords.static final StringProperty to enable __forceAbsoluteLinks request parameter for a resource.static final StringProperty for the current locale.static final StringProperty to mark detail pages to have locale independent detail only containers.static final StringProperty for the 'do not translate' marking in the sitemap editor.static final StringProperty for the login form.static final StringProperty constant for"NavImage".static final StringProperty constant for"NavInfo".static final StringProperty for the navigation position.static final StringProperty for the navigation text.static final StringProperty for the resource title.static final StringProperty for the relative root link substitution.static final StringProperty name that defines the available resource types for the "new" dialog.static final StringProperty to sort search results in categories.static final StringProperty to exclude individual resources from search index generation.static final StringProperty to exclude individual resources from search results online (Solr only).static final StringProperty to boost certain search results.static final StringProperty for secondary locales for use in the locale compare view in the sitemap editor.static final StringProperty for the secure transmission of resources.static final StringProperty for the stylesheet of files.static final StringProperty to control the template.static final StringProperty to customize for which templates elements should be displayed in the gallery when using the CmsTransformerTemplateProvider.static final StringProperty for specifying a list of container types used to match formatters in the display formatter selection widget.static final StringProperty to control the template elements.static final StringProperty for the template image.static final StringProperty to configure the value which should be used instead of the template path when selecting the template in the GUI.static final StringProperty for the resource title.static final StringProperty for user data request configuration.static final StringProperty used to configure default organizational unit.static final StringName of the property used to control whether mapped URL names should replace previous URL names.static final StringProperty for the visible method in the administration view.static final StringProperty for the XML sitemap change frequency.static final StringProperty for the XML sitemap priority.static final intThe property definition type for resources.static final CmsPropertyDefinition.CmsPropertyTypeProperty value is treated as a link or list of links.static final CmsPropertyDefinition.CmsPropertyTypeProperty value is not a link. -
Constructor Summary
ConstructorsConstructorDescriptionCmsPropertyDefinition(CmsUUID id, String name) Creates a new property definition object with the type.TYPE_NORMALCmsPropertyDefinition(CmsUUID id, String name, CmsPropertyDefinition.CmsPropertyType propertyType) Creates a new property definition object. -
Method Summary
Modifier and TypeMethodDescriptionstatic voidcheckPropertyName(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.intbooleangetId()Returns the id of this property definition.getName()Returns the name of this property definition.static CmsPropertyDefinitionReturns the null property definition.getType()Returns the the type of this property definition.inthashCode()voidSets 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_BACKGROUND
Property for configuring background color for a category in the explorer's category column.- 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_CONTENT_NAME_PATTERN
If configured on a folder, when copying contents in the folder or any of its subfolders through ADE, the copies will be placed in the same folder as the original, and given a file name according to the name pattern.- 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:
compareToin 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
-