Package org.opencms.jsp.util
Class CmsResourceTypeInfoWrapper
java.lang.Object
org.opencms.jsp.util.CmsResourceTypeInfoWrapper
- All Implemented Interfaces:
I_CmsFormatterInfo
,I_CmsInfoWrapper
Wrapper for resource type information for use in JSPs.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.opencms.jsp.util.I_CmsFormatterInfo
I_CmsFormatterInfo.ResolveMode
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
Suffix for the description key - by appending it to the key, we get another key that can be used for adding text to the description. -
Constructor Summary
ConstructorsConstructorDescriptionCmsResourceTypeInfoWrapper
(CmsJspStandardContextBean context, CmsObject cms, CmsADEConfigData config, I_CmsResourceType type) Creates a new instance. -
Method Summary
Modifier and TypeMethodDescriptionformatterInfoForContainer
(String containerType) Gets the formatter information beans for a specific container type.Gets the type description in the current locale.getDescription
(Locale locale) Gets the description for the type in the given locale.Returns the localization key for the description if one was used, and null otherwise.Gets the keys used for the description text.Gets the raw description, without resolving any macros.Gets the set of container types configured for any active formatters for this resource type.Gets the formatter information beans for all active formatters for this type.boolean
Returns true if the type is active in the current sitemap configuration.boolean
Checks if this wraps a (non-function) formatter.boolean
Checks if this wraps a dynamic function.boolean
Checks if this wraps a resource type.getName()
Gets the type name.Gets the user-readable nice name of the type in the current locale.Gets the localization key for the nice name, if one was used, or null otherwise.Gets the raw nice name, without resolving any macros.Gets the nice name of the type in the given locale.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.opencms.jsp.util.I_CmsInfoWrapper
getDescription
-
Field Details
-
DESCRIPTION_KEY_EXTENSION_SUFFIX
Suffix for the description key - by appending it to the key, we get another key that can be used for adding text to the description.- See Also:
-
-
Constructor Details
-
CmsResourceTypeInfoWrapper
public CmsResourceTypeInfoWrapper(CmsJspStandardContextBean context, CmsObject cms, CmsADEConfigData config, I_CmsResourceType type) Creates a new instance.- Parameters:
context
- the standard context beancms
- the current CMS contextconfig
- the current sitemap configurationtype
- the type to wrap
-
-
Method Details
-
formatterInfoForContainer
Gets the formatter information beans for a specific container type.- Parameters:
containerType
- the container type- Returns:
- the formatter information
-
getDescription
Gets the type description in the current locale.- Specified by:
getDescription
in interfaceI_CmsInfoWrapper
- Returns:
- the type description
-
getDescription
Gets the description for the type in the given locale.- Specified by:
getDescription
in interfaceI_CmsInfoWrapper
- Parameters:
locale
- the locale to use- Returns:
- the type description
-
getDescriptionKey
Description copied from interface:I_CmsInfoWrapper
Returns the localization key for the description if one was used, and null otherwise.- Specified by:
getDescriptionKey
in interfaceI_CmsInfoWrapper
- Returns:
- the localization key
- See Also:
-
getDescriptionKeys
Gets the keys used for the description text.- Returns:
- the list of description keys
-
getDescriptionRaw
Description copied from interface:I_CmsInfoWrapper
Gets the raw description, without resolving any macros.- Specified by:
getDescriptionRaw
in interfaceI_CmsInfoWrapper
- Returns:
- the raw description
- See Also:
-
getFormatterContainerTypes
Gets the set of container types configured for any active formatters for this resource type.- Returns:
- the set of container types for formatters
-
getFormatterInfo
Gets the formatter information beans for all active formatters for this type.- Returns:
- the formatter information beans
-
getIsActive
Returns true if the type is active in the current sitemap configuration.- Specified by:
getIsActive
in interfaceI_CmsFormatterInfo
- Returns:
- true if the type is active
-
getIsFormatter
Description copied from interface:I_CmsFormatterInfo
Checks if this wraps a (non-function) formatter.- Specified by:
getIsFormatter
in interfaceI_CmsFormatterInfo
- Returns:
- true if this wraps a normal formatter
- See Also:
-
getIsFunction
Description copied from interface:I_CmsFormatterInfo
Checks if this wraps a dynamic function.- Specified by:
getIsFunction
in interfaceI_CmsFormatterInfo
- Returns:
- true if this wraps a dynamic function
- See Also:
-
getIsResourceType
Description copied from interface:I_CmsFormatterInfo
Checks if this wraps a resource type.- Specified by:
getIsResourceType
in interfaceI_CmsFormatterInfo
- Returns:
- true if this is a resource type
- See Also:
-
getName
Gets the type name.- Specified by:
getName
in interfaceI_CmsFormatterInfo
- Returns:
- the type name
-
getNiceName
Gets the user-readable nice name of the type in the current locale.- Specified by:
getNiceName
in interfaceI_CmsFormatterInfo
- Returns:
- the nice name
-
getNiceNameKey
Description copied from interface:I_CmsFormatterInfo
Gets the localization key for the nice name, if one was used, or null otherwise.- Specified by:
getNiceNameKey
in interfaceI_CmsFormatterInfo
- Returns:
- the localization key
- See Also:
-
getNiceNameRaw
Description copied from interface:I_CmsFormatterInfo
Gets the raw nice name, without resolving any macros.- Specified by:
getNiceNameRaw
in interfaceI_CmsFormatterInfo
- Returns:
- the raw nice name
- See Also:
-
niceName
Gets the nice name of the type in the given locale.- Specified by:
niceName
in interfaceI_CmsFormatterInfo
- Parameters:
locale
- the locale to use- Returns:
- the nice name for the type
-