Package org.opencms.file.types
Class CmsResourceTypeLocaleIndependentXmlContent
java.lang.Object
org.opencms.file.types.A_CmsResourceType
org.opencms.file.types.A_CmsResourceTypeLinkParseable
org.opencms.file.types.CmsResourceTypeXmlContent
org.opencms.file.types.CmsResourceTypeLocaleIndependentXmlContent
- All Implemented Interfaces:
Serializable
,I_CmsConfigurationParameterHandler
,I_CmsResourceType
,I_CmsLinkParseable
Special resource type for locale independent XML contents.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.opencms.file.types.I_CmsResourceType
I_CmsResourceType.Formatter
-
Field Summary
Fields inherited from class org.opencms.file.types.CmsResourceTypeXmlContent
ATTR_REVERSE_AVAILABILITY_MAPPING, CONFIGURATION_SCHEMA, DIALOG_CHOOSEMODEL, RESOURCE_TYPE_NAME
Fields inherited from class org.opencms.file.types.A_CmsResourceType
CONFIGURATION_GALLERY_JAVASCRIPT_PATH, CONFIGURATION_GALLERY_PREVIEW_PROVIDER, CONFIGURATION_GALLERY_TYPE_NAMES, CONFIGURATION_INTERNAL, DEFAULT_GALLERY_PREVIEW_PROVIDER, m_addititionalModuleResourceType, m_className, m_configuration, m_copyResources, m_defaultProperties, m_frozen, m_galleryPreviewProvider, m_mappings, m_moduleName, m_typeId, m_typeName, MACRO_RESOURCE_FOLDER_PATH, MACRO_RESOURCE_FOLDER_PATH_TOUCH, MACRO_RESOURCE_NAME, MACRO_RESOURCE_PARENT_PATH, MACRO_RESOURCE_ROOT_PATH, MACRO_RESOURCE_SITE_PATH
Fields inherited from interface org.opencms.configuration.I_CmsConfigurationParameterHandler
ADD_PARAMETER_METHOD, INIT_CONFIGURATION_METHOD
Fields inherited from interface org.opencms.file.types.I_CmsResourceType
ADD_MAPPING_METHOD, ADD_RESOURCE_TYPE_METHOD, CONFIGURATION_PROPERTY_CREATE, CONFIGURATION_RESOURCE_TYPE_ID, CONFIGURATION_RESOURCE_TYPE_NAME, PROPERTY_ON_RESOURCE, PROPERTY_ON_STRUCTURE
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the default properties for this resource type in an unmodifiable List.protected Locale
getLocaleForNewContent
(CmsObject cms, CmsSecurityManager securityManager, String resourcename, List<CmsProperty> properties) This overridden method ensures that configurations will always be created with an english locale node.Methods inherited from class org.opencms.file.types.CmsResourceTypeXmlContent
addConfigurationParameter, createResource, deleteResource, getCachePropertyDefault, getConfiguration, getEditHandler, getFormattersForResource, getGalleryPreviewProvider, getLoaderId, getModelFiles, getSchema, getStaticTypeName, getXsdLink, initialize, isPossiblyDetailContent, isXmlContent, moveResource, parseLinks, setDateExpired, setDateReleased, writeFile
Methods inherited from class org.opencms.file.types.A_CmsResourceTypeLinkParseable
isDirectEditable
Methods inherited from class org.opencms.file.types.A_CmsResourceType
addCopyResource, addDefaultProperty, addMappingType, changeLock, chflags, chtype, chtype, copyResource, copyResourceToProject, createRelations, createSibling, equals, getAdjustLinksFolder, getClassName, getConfiguredCopyResources, getConfiguredMappings, getCopyResources, getGalleryTypes, getMacroResolver, getModuleName, getResourceType, getTypeId, getTypeName, hashCode, importResource, initConfiguration, initConfiguration, isAdditionalModuleResourceType, isFolder, isIdentical, lockResource, processCopyResources, processDefaultProperties, removeResourceFromProject, replaceResource, replaceResource, restoreResource, setAdditionalModuleResourceType, setAdjustLinksFolder, setDateLastModified, setModuleName, toString, undelete, undoChanges, unlockResource, updateRelationForUndo, writePropertyObject, writePropertyObjects
-
Constructor Details
-
CmsResourceTypeLocaleIndependentXmlContent
-
-
Method Details
-
getConfiguredDefaultProperties
Description copied from class:A_CmsResourceType
Returns the default properties for this resource type in an unmodifiable List.- Specified by:
getConfiguredDefaultProperties
in interfaceI_CmsResourceType
- Overrides:
getConfiguredDefaultProperties
in classA_CmsResourceType
- Returns:
- the default properties for this resource type in an unmodifiable List
- See Also:
-
getLocaleForNewContent
protected Locale getLocaleForNewContent(CmsObject cms, CmsSecurityManager securityManager, String resourcename, List<CmsProperty> properties) This overridden method ensures that configurations will always be created with an english locale node.- Overrides:
getLocaleForNewContent
in classCmsResourceTypeXmlContent
- Parameters:
cms
- the current CMS contextsecurityManager
- the security managerresourcename
- the name of the resource to createproperties
- the properties for the resource to create- Returns:
- the locale to use
- See Also:
-