Class CmsDetailPageInfo

java.lang.Object
org.opencms.ade.detailpage.CmsDetailPageInfo
All Implemented Interfaces:
Serializable

public class CmsDetailPageInfo extends Object implements Serializable
Data bean containing the information for a detail page.

Since:
8.0.0
See Also:
  • Field Details

  • Constructor Details

    • CmsDetailPageInfo

      public CmsDetailPageInfo(CmsUUID id, String uri, String type, String qualifier, String iconClasses)
      Creates a new detail page info bean.

      Parameters:
      id - the id of the detail page
      uri - the original URI of the page
      type - the resource type for which the detail page is used
      qualifier - an optional string that indicates when the detail page should be used
      iconClasses - the resource icon style classes
    • CmsDetailPageInfo

      protected CmsDetailPageInfo()
      Empty default constructor for serialization.

  • Method Details

    • removeFunctionPrefix

      public static String removeFunctionPrefix(String name)
      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

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
      See Also:
    • 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

      public String getIconType()
      Returns the resource type name for the icon to display.

      Returns:
      the icon resource type
    • getId

      public CmsUUID 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

      public String 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

      public String getType()
      Returns the type for which the detail page is used.

      Returns:
      the type for which the detail page is used
    • getUri

      public String getUri()
      The original URI for the detail page.

      Returns:
      the original URI for the detail page
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
      See Also:
    • isDefaultDetailPage

      public boolean isDefaultDetailPage()
      Checks if this detail page has the default detail page type.
      Returns:
      true if this is a default detail page
    • isInherited

      public boolean 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

      public String toString()
      Overrides:
      toString in class Object
      See Also: