Package org.opencms.ade.detailpage
Class CmsDetailPageInfo
java.lang.Object
org.opencms.ade.detailpage.CmsDetailPageInfo
- All Implemented Interfaces:
Serializable
Data bean containing the information for a detail page.
- Since:
- 8.0.0
- See Also:
-
Field Summary
-
Constructor Summary
ModifierConstructorDescriptionprotected
Empty default constructor for serialization.Creates a new detail page info bean. -
Method Summary
Modifier and TypeMethodDescriptionCreates a copy of this entry, but sets the 'inherited' flag to true in the copy.boolean
Gets the type name to display to the user.Returns the resource icon style classes.Returns the resource type name for the icon to display.getId()
Returns the id of the detail page.Gets the type including the qualifier (if set).Gets the qualifier string.getType()
Returns the type for which the detail page is used.getUri()
The original URI for the detail page.int
hashCode()
boolean
Checks if this detail page has the default detail page type.boolean
Returns true if the detail page entry is inherited from a parent sitemap.static String
removeFunctionPrefix
(String name) Removes the prefix for dynamic functions from a detail page type name.toString()
-
Field Details
-
FUNCTION_PREFIX
The prefix for dynamic function detail page types.- See Also:
-
QUALIFIER_SEPARATOR
A string used to separate the type from the qualifier in the sitemap configuration.- See Also:
-
-
Constructor Details
-
CmsDetailPageInfo
Creates a new detail page info bean.- Parameters:
id
- the id of the detail pageuri
- the original URI of the pagetype
- the resource type for which the detail page is usedqualifier
- an optional string that indicates when the detail page should be usediconClasses
- the resource icon style classes
-
CmsDetailPageInfo
protected CmsDetailPageInfo()Empty default constructor for serialization.
-
-
Method Details
-
removeFunctionPrefix
Removes the prefix for dynamic functions from a detail page type name.- Parameters:
name
- the detail page type name- Returns:
- the detail page type name withotu the function prefix
-
copyAsInherited
Creates a copy of this entry, but sets the 'inherited' flag to true in the copy.- Returns:
- the copy of this entry
-
equals
-
getDisplayType
Gets the type name to display to the user.- Returns:
- the type name to display
-
getIconClasses
Returns the resource icon style classes.- Returns:
- the resource icon style classes
-
getIconType
Returns the resource type name for the icon to display.- Returns:
- the icon resource type
-
getId
Returns the id of the detail page.- Returns:
- the id of the detail page
-
getQualifiedType
Gets the type including the qualifier (if set).This is the same format as used in the detail page type field in the sitemap configuration.
- Returns:
- the qualified type
-
getQualifier
Gets the qualifier string.The qualifier is an optional (i.e. possibly null) string that indicates when this detail page should be used.
- Returns:
- the qualifier string
-
getType
Returns the type for which the detail page is used.- Returns:
- the type for which the detail page is used
-
getUri
The original URI for the detail page.- Returns:
- the original URI for the detail page
-
hashCode
-
isDefaultDetailPage
Checks if this detail page has the default detail page type.- Returns:
- true if this is a default detail page
-
isInherited
Returns true if the detail page entry is inherited from a parent sitemap.- Returns:
- true if the detail page entry is inherited from a parent sitemap
-
toString
-