Interface TemplatePolicyFilter

    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String REVISION  
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      java.lang.String[] getConditionLabels​(java.lang.String[] labels, java.lang.Class<? extends PortalElement> clazz, java.lang.String userLang)
      Hook called by doEditCommonPortlet to update labels to Condition's combo box
      java.lang.String[] getConditionValues​(java.lang.String[] values, java.lang.Class<? extends PortalElement> clazz)
      Hook called by doEditCommonPortlet to update values to Condition's combo box
      void getCssFiles​(java.util.List<java.io.File> jcmsChoice)
      Hook called by PortalManager to change available css files in the portal editor.
      java.lang.String getInnerClasses​(PortalElement portlet)
      Hook called by PortalManager to add more classes for the given PortalElement's inside
      java.lang.String getInnerStyles​(PortalElement portlet)
      Hook called by PortalManager to add more styles for the given PortalElement's inside
      java.lang.String getOutterClasses​(PortalElement portlet)
      Hook called by PortalManager to add more classes for the given PortalElement's outside
      java.lang.String getOutterStyles​(PortalElement portlet)
      Hook called by PortalManager to add more styles for the given PortalElement's outside
      java.lang.String getSkinTemplateUsage​(Data data, java.lang.String usage)
      Overrides the skin usage decided by JCMS and previous plugins
      TypeTemplateEntry getTemplateEntry​(java.lang.String usage, Data data, TypeTemplateEntry tte)
      This method is a hook to display a custom template, different from the default selected one.
      TypeTemplateEntry getTemplateEntry​(java.lang.String usage, java.lang.Class<? extends Data> dataClass, Workspace ws, TypeTemplateEntry tte)
      This method is a hook to display a custom template, different from the default selected one.
      java.lang.String getTemplateUsage​(Data data, java.lang.String usage)
      Overrides the usage decided by JCMS and previous plugins
      java.lang.String getTemplateUsage​(java.lang.Class<?> pubClass, java.lang.String usage)
      Overrides the usage decided by JCMS and previous plugins
      void handleCondition​(java.lang.String[] conditions)
      Hook called by doInitPortlet.jsp to handle custom portlet condition.
      • Methods inherited from interface java.lang.Comparable

        compareTo
    • Method Detail

      • getTemplateEntry

        TypeTemplateEntry getTemplateEntry​(java.lang.String usage,
                                           Data data,
                                           TypeTemplateEntry tte)
        This method is a hook to display a custom template, different from the default selected one. Use the method channel.getCurrentJcmsContext() do get clue about the current request.
        Parameters:
        usage - the template usage
        data - the working publication
        Returns:
        tte the chosen TypeTemplateEntry
        Since:
        jcms-6.0.0
        See Also:
        Channel.getCurrentJcmsContext()
      • getTemplateEntry

        TypeTemplateEntry getTemplateEntry​(java.lang.String usage,
                                           java.lang.Class<? extends Data> dataClass,
                                           Workspace ws,
                                           TypeTemplateEntry tte)
        This method is a hook to display a custom template, different from the default selected one. Use the method channel.getCurrentJcmsContext() do get clue about the current request.
        Parameters:
        usage - the template usage
        dataClass - the working Class
        ws - the working Workspace
        Returns:
        tte the chosen TypeTemplateEntry
        Since:
        jcms-6.0.0
        See Also:
        Channel.getCurrentJcmsContext()
      • getTemplateUsage

        java.lang.String getTemplateUsage​(Data data,
                                          java.lang.String usage)
        Overrides the usage decided by JCMS and previous plugins
        Parameters:
        data - the working data
        usage - is the current usage
        Returns:
        String the overrided usage
      • getTemplateUsage

        java.lang.String getTemplateUsage​(java.lang.Class<?> pubClass,
                                          java.lang.String usage)
        Overrides the usage decided by JCMS and previous plugins
        Parameters:
        pubClass - the class of the publication
        usage - is the current usage
        Returns:
        String the overrided usage
      • getSkinTemplateUsage

        java.lang.String getSkinTemplateUsage​(Data data,
                                              java.lang.String usage)
        Overrides the skin usage decided by JCMS and previous plugins
        Parameters:
        data - the working data
        usage - is the current usage
        Returns:
        String the overrided usage
      • getInnerClasses

        java.lang.String getInnerClasses​(PortalElement portlet)
        Hook called by PortalManager to add more classes for the given PortalElement's inside
        Parameters:
        portlet - the working PortalElement
        Returns:
        String the inner classes to add
        See Also:
        PortalManager.getInnerClasses(PortalElement)
      • getOutterClasses

        java.lang.String getOutterClasses​(PortalElement portlet)
        Hook called by PortalManager to add more classes for the given PortalElement's outside
        Parameters:
        portlet - the working PortalElement
        Returns:
        String the outter classes to add
        See Also:
        PortalManager.getOutterClasses(PortalElement)
      • getInnerStyles

        java.lang.String getInnerStyles​(PortalElement portlet)
        Hook called by PortalManager to add more styles for the given PortalElement's inside
        Parameters:
        portlet - the working PortalElement
        Returns:
        String the inner styles to add
        See Also:
        PortalManager.getInnerStyles(PortalElement)
      • getOutterStyles

        java.lang.String getOutterStyles​(PortalElement portlet)
        Hook called by PortalManager to add more styles for the given PortalElement's outside
        Parameters:
        portlet - the working PortalElement
        Returns:
        String the outter styles to add
        See Also:
        PortalManager.getOutterStyles(PortalElement)
      • getCssFiles

        void getCssFiles​(java.util.List<java.io.File> jcmsChoice)
        Hook called by PortalManager to change available css files in the portal editor. It can be used to add files from other place of the jcms webapp.
        Parameters:
        jcmsChoice - files selected by JCMS
        See Also:
        PortalManager.getCssFiles()
      • getConditionLabels

        java.lang.String[] getConditionLabels​(java.lang.String[] labels,
                                              java.lang.Class<? extends PortalElement> clazz,
                                              java.lang.String userLang)
        Hook called by doEditCommonPortlet to update labels to Condition's combo box
        Parameters:
        labels - String[] I18N array of labels
        clazz - the portlet class
        userLang - the lang of the user
        Returns:
        String[] I18N array of labels
      • getConditionValues

        java.lang.String[] getConditionValues​(java.lang.String[] values,
                                              java.lang.Class<? extends PortalElement> clazz)
        Hook called by doEditCommonPortlet to update values to Condition's combo box
        Parameters:
        values - String[] of values
        clazz - he portlet class
        Returns:
        String[] an array of conditional values
      • handleCondition

        void handleCondition​(java.lang.String[] conditions)
        Hook called by doInitPortlet.jsp to handle custom portlet condition.
        Parameters:
        conditions - String array of codition for the given portlet