Package org.opencms.file.types
Class CmsResourceTypeFunctionConfig
java.lang.Object
org.opencms.file.types.A_CmsResourceType
org.opencms.file.types.A_CmsResourceTypeLinkParseable
org.opencms.file.types.CmsResourceTypeXmlContent
org.opencms.file.types.CmsResourceTypeXmlAdeConfiguration
org.opencms.file.types.CmsResourceTypeFunctionConfig
- All Implemented Interfaces:
 Serializable,I_CmsConfigurationParameterHandler,I_CmsResourceType,I_CmsLinkParseable
Resource type class for the second version of dynamic functions.
- See Also:
 
- 
Nested Class Summary
Nested classes/interfaces inherited from interface org.opencms.file.types.I_CmsResourceType
I_CmsResourceType.Formatter - 
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe path of the JSP used for rendering v2 functions.static final StringThe type name.Fields inherited from class org.opencms.file.types.CmsResourceTypeXmlContent
ATTR_REVERSE_AVAILABILITY_MAPPING, CONFIGURATION_SCHEMA, DIALOG_CHOOSEMODEL, RESOURCE_TYPE_NAMEFields 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_PATHFields inherited from interface org.opencms.configuration.I_CmsConfigurationParameterHandler
ADD_PARAMETER_METHOD, INIT_CONFIGURATION_METHODFields 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 for thecacheproperty setting of this resource type.static StringReturns the static type name of this (default) resource type.static booleanisFunction(CmsResource res) Checks if a resource has this type.writeFile(CmsObject cms, CmsSecurityManager securityManager, CmsFile resource) Writes a resource, including it's content.Methods inherited from class org.opencms.file.types.CmsResourceTypeXmlAdeConfiguration
getLocaleForNewContentMethods inherited from class org.opencms.file.types.CmsResourceTypeXmlContent
addConfigurationParameter, createResource, deleteResource, getConfiguration, getEditHandler, getFormattersForResource, getGalleryPreviewProvider, getLoaderId, getModelFiles, getSchema, getXsdLink, initialize, isPossiblyDetailContent, isXmlContent, moveResource, parseLinks, setDateExpired, setDateReleasedMethods inherited from class org.opencms.file.types.A_CmsResourceTypeLinkParseable
isDirectEditableMethods inherited from class org.opencms.file.types.A_CmsResourceType
addCopyResource, addDefaultProperty, addMappingType, changeLock, chflags, chtype, chtype, copyResource, copyResourceToProject, createRelations, createSibling, equals, getAdjustLinksFolder, getClassName, getConfiguredCopyResources, getConfiguredDefaultProperties, 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 
- 
Field Details
- 
FORMATTER_PATH
The path of the JSP used for rendering v2 functions.- See Also:
 
 - 
TYPE_NAME
The type name.- See Also:
 
 
 - 
 - 
Constructor Details
- 
CmsResourceTypeFunctionConfig
public CmsResourceTypeFunctionConfig() 
 - 
 - 
Method Details
- 
getStaticTypeName
Returns the static type name of this (default) resource type.- Returns:
 - the static type name of this (default) resource type
 
 - 
isFunction
Checks if a resource has this type.- Parameters:
 res- the resource to check- Returns:
 - true if the resource is a V2 dynamic function
 
 - 
getCachePropertyDefault
Description copied from interface:I_CmsResourceTypeReturns the default for thecacheproperty setting of this resource type.The
cacheproperty is used by the Flex cache implementation to build the cache key that controls the caching behaviour of a resource.If
nullis returnd, this is the same as turning the cache off by default for this resource type.- Specified by:
 getCachePropertyDefaultin interfaceI_CmsResourceType- Overrides:
 getCachePropertyDefaultin classCmsResourceTypeXmlContent- Returns:
 - the default for the 
cacheproperty setting of this resource type - See Also:
 
 - 
writeFile
public CmsFile writeFile(CmsObject cms, CmsSecurityManager securityManager, CmsFile resource) throws CmsException Description copied from interface:I_CmsResourceTypeWrites a resource, including it's content.Applies only to resources of type
that have a binary content attached.CmsFile- Specified by:
 writeFilein interfaceI_CmsResourceType- Overrides:
 writeFilein classCmsResourceTypeXmlContent- Parameters:
 cms- the current cms contextsecurityManager- the initialized OpenCms security managerresource- the resource to apply this operation to- Returns:
 - the written resource
 - Throws:
 CmsException- if something goes wrong- See Also:
 
 
 -