Class PortletSkinable

All Implemented Interfaces:
EditableData, JcmsConstants, ImportConstants, MashupConstants, Searchable, Storable, JaliosConstants, LangPropertyArgument, TreeNode, Cloneable, Comparable<BasicStorable>
Direct Known Subclasses:
PortletParent

public abstract class PortletSkinable extends Portlet
An abstract Portlet representation with fields to implements - String -> DisplayTitle (ML) - String -> SkinTemplate - String -> SkinCSS
  • Field Details

    • abstractPortletSkinableClass

      public static Class<?> abstractPortletSkinableClass
    • PATTERN_CURRENT_CATEGORY

      public static final org.apache.oro.text.regex.Pattern PATTERN_CURRENT_CATEGORY
    • PATTERN_CURRENT_CATEGORY_DESCRIPTION

      public static final org.apache.oro.text.regex.Pattern PATTERN_CURRENT_CATEGORY_DESCRIPTION
    • PATTERN_PORTAL_CATEGORY

      public static final org.apache.oro.text.regex.Pattern PATTERN_PORTAL_CATEGORY
    • PATTERN_PORTAL_CATEGORY_DESCRIPTION

      public static final org.apache.oro.text.regex.Pattern PATTERN_PORTAL_CATEGORY_DESCRIPTION
  • Constructor Details

    • PortletSkinable

      public PortletSkinable()
    • PortletSkinable

      public PortletSkinable(Publication other)
    • PortletSkinable

      public PortletSkinable(PortletSkinable other)
  • Method Details

    • getAbstractPortletSkinableClass

      public static Class<?> getAbstractPortletSkinableClass()
    • getSkinTitle

      public String getSkinTitle(String userLang, Category current, Category portal)
    • getSkin

      public String getSkin(String usage)
      Returns the template skin name for the given usage
      Parameters:
      usage - the template usage
      Returns:
      String the name of the template used
    • getSkinTemplateEntry

      public TypeTemplateEntry getSkinTemplateEntry(String usage, boolean devModeChecks)
      Returns the TypeTemplateEntry Skin matching the given parameters. It returns a default template if the given one does work.
      Overrides:
      getSkinTemplateEntry in class PortalElement
      Parameters:
      usage - the template usage
      devModeChecks - perform developement checks on template
      Returns:
      TypeTemplateEntry the matching templates
    • getSkinTemplateEntry

      public static TypeTemplateEntry getSkinTemplateEntry(String usage, boolean devModeChecks, Class<? extends Publication> clazz, Workspace ws)
      Returns the TypeTemplateEntry matching the given parameters. It returns a default template if the given one does work.
      Parameters:
      usage - the template usage
      devModeChecks - perform developement checks on template
      clazz - the template publication class
      ws - the workspace where to create the publication
      Returns:
      TypeTemplateEntry the matching templates
    • setSkin

      public void setSkin(String name)
    • getDisplayTitleML

      public abstract HashMap<String,String> getDisplayTitleML()
    • getDisplayTitle

      public abstract String getDisplayTitle(String lang)
    • getDisplayTitle

      public abstract String getDisplayTitle(String lang, boolean b)
    • setDisplayTitle

      public abstract void setDisplayTitle(String s)
    • setDisplayTitleML

      public abstract void setDisplayTitleML(HashMap<String,String> s)
    • getContentTitle

      public String getContentTitle(String lang)
      Overrides:
      getContentTitle in class PortalElement
    • getDataName

      public String getDataName(String language)
      Description copied from class: Data
      Return the name of this Data, every sub class Data which will be displayed to user should implements this method already.
      • The Title (multi-language) for a Publication.
      • The Name (multi-language) for a Category.
      • The Name for a Group, a Member.
      • The Title (multi-language) for a Workspace.
      Can be seen as a smart multi-language toString(), but never returning null.
      Default behaviour is to return toFullString() of Data or empty string if toFullString is null.
      Overrides:
      getDataName in class Publication
      Parameters:
      language - the language in which to return the name if multilang available for the data.
      Returns:
      title of Publication in given language or empty String if not specified.
      See Also:
    • getSkins

      public abstract String[] getSkins()
    • setSkins

      public abstract void setSkins(String[] s)
    • getSkinClasses

      public abstract String getSkinClasses()
    • setSkinClasses

      public abstract void setSkinClasses(String v)
    • getSkinCSS

      public abstract String getSkinCSS()
    • setSkinCSS

      public abstract void setSkinCSS(String s)
    • getAvailableCssSkin

      public Map getAvailableCssSkin()
    • getPopupState

      public abstract String getPopupState()
    • setPopupState

      public abstract void setPopupState(String v)
    • getExpandState

      public abstract String getExpandState()
    • setExpandState

      public abstract void setExpandState(String v)
    • getContentTitleComparator

      public static <T extends Publication> Comparator<T> getContentTitleComparator(String userLang)
      Retrieve a new instance of ContentTitleComparator sorting publication according to their title.
      Type Parameters:
      T - the type of portlet being compared
      Parameters:
      userLang - the iso-639 language code in which title will be retrieve to perform sorting
      Returns:
      a new instance of PortletSkinable.ContentTitleComparator.
      Since:
      jcms-7.1.0
    • getShowHeader

      public abstract boolean getShowHeader()
    • getShowHeaderIcon

      public abstract boolean getShowHeaderIcon()
    • getDecorationType

      public abstract String getDecorationType()
    • getDecorationColor

      public abstract String getDecorationColor()
    • getHeaderBackgroundColor

      public abstract String getHeaderBackgroundColor()
    • getHeaderIcon

      public abstract String getHeaderIcon()
    • getHeaderTextColor

      public abstract String getHeaderTextColor()
    • getHeaderIconColor

      public abstract String getHeaderIconColor()
    • setHeaderIcon

      public abstract void setHeaderIcon(String v)
    • setHeaderIconColor

      public abstract void setHeaderIconColor(String v)
    • getShowHeaderLink

      public abstract boolean getShowHeaderLink()
    • setShowHeaderLink

      public abstract void setShowHeaderLink(boolean v)
    • getBodyBackgroundColor

      public abstract String getBodyBackgroundColor()
    • getBodyBorderSize

      public abstract int getBodyBorderSize()
    • getBodyCornerRadius

      public abstract boolean getBodyCornerRadius()
    • getBodyShadow

      public abstract boolean getBodyShadow()
    • getShowFooterLink

      public abstract boolean getShowFooterLink()
    • setShowFooterLink

      public abstract void setShowFooterLink(boolean v)
    • getSkinHeaderSubText

      public abstract String getSkinHeaderSubText()
    • setSkinHeaderSubText

      public abstract void setSkinHeaderSubText(String v)
    • getSkinHeaderSubText

      public abstract String getSkinHeaderSubText(String lang)
    • getSkinHeaderSubText

      public abstract String getSkinHeaderSubText(String lang, boolean useDefault)
    • getSkinHeaderSubTextML

      public abstract HashMap<String,String> getSkinHeaderSubTextML()
    • setSkinHeaderSubTextML

      public abstract void setSkinHeaderSubTextML(HashMap<String,String> v)
    • getSkinHeaderSubTextMLE

      public abstract String getSkinHeaderSubTextMLE()
    • setSkinHeaderSubTextMLE

      public abstract void setSkinHeaderSubTextMLE(String v)
    • setSkinHeaderSubText

      public abstract void setSkinHeaderSubText(String lang, String value)