Class PortletStyleDAO

  • All Implemented Interfaces:
    IPortletStyleDAO

    public class PortletStyleDAO
    extends java.lang.Object
    implements IPortletStyleDAO
    This implementation is a default implementation, the XSL implementation is available in the xmltransformer plugin.
    • Constructor Summary

      Constructors 
      Constructor Description
      PortletStyleDAO()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      ReferenceList selectStylesList​(java.lang.String strIdPortletType)
      Returns all the styles corresponding to a portlet type
      java.lang.String selectXslFile​(int nIdPortlet, int nIdMode)
      Returns the stylesheet content of the portlet according to the mode
      byte[] selectXslSource​(int nIdPortlet, int nIdMode)
      Returns the stylesheet binary content of the portlet according to the mode
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • PortletStyleDAO

        public PortletStyleDAO()
    • Method Detail

      • selectXslFile

        public java.lang.String selectXslFile​(int nIdPortlet,
                                              int nIdMode)
        Description copied from interface: IPortletStyleDAO
        Returns the stylesheet content of the portlet according to the mode
        Specified by:
        selectXslFile in interface IPortletStyleDAO
        Parameters:
        nIdPortlet - the identifier of the portlet
        nIdMode - the selected mode
        Returns:
        the stylesheet content
      • selectXslSource

        public byte[] selectXslSource​(int nIdPortlet,
                                      int nIdMode)
        Description copied from interface: IPortletStyleDAO
        Returns the stylesheet binary content of the portlet according to the mode
        Specified by:
        selectXslSource in interface IPortletStyleDAO
        Parameters:
        nIdPortlet - the identifier of the portlet
        nIdMode - the selected mode
        Returns:
        the stylesheet binary content
      • selectStylesList

        public ReferenceList selectStylesList​(java.lang.String strIdPortletType)
        Description copied from interface: IPortletStyleDAO
        Returns all the styles corresponding to a portlet type
        Specified by:
        selectStylesList in interface IPortletStyleDAO
        Returns:
        the list of styles in form of ReferenceList