Class LinkPagesPortletHome

  • All Implemented Interfaces:
    fr.paris.lutece.portal.business.portlet.PortletHomeInterface

    public class LinkPagesPortletHome
    extends fr.paris.lutece.portal.business.portlet.PortletHome
    This class provides instances management methods for LinkPagesPortlet objects
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      fr.paris.lutece.portal.business.portlet.IPortletInterfaceDAO getDAO()
      Returns the instance of the LinkPagesPortletDAO singleton
      static fr.paris.lutece.portal.business.portlet.PortletHome getInstance()
      Returns the instance of LinkPagesPortletHome
      static int getLinkPageIdByOrder​(int nPortletId, int nOrder)
      Return the Id of a link page by his order in a portlet
      static int getLinkPageOrder​(int nPortletId, int nLinkPageId)
      Return the order of a link page in a specified portlet
      static List<fr.paris.lutece.portal.business.page.Page> getLinkPagesInPortletList​(int nPortletId)
      Returns the list of linkpages in a specified portlet
      static fr.paris.lutece.util.ReferenceList getLinkPagesList()
      Returns the list of all the pages of the website
      static int getMaxOrder​(int nPortletId)
      Return the max order of a portlet
      String getPortletTypeId()
      Returns the identifier of the link pages portlet type
      static void insertLinkPage​(int nPortletId, int nLinkPageId, int nOrder)
      Insert a specified link page in a specified link page's portlet with a specified order
      static void removeAllLinkPages​(int nPortletId)
      Remove all the link pages of a portlet
      static void removeLinkPage​(int nPortletId, int nLinkPageId)
      Remove a link page of a portlet
      static boolean testDuplicate​(int nPortletId, int nLinkPageId)
      Verify if a link page is already in a portlet
      static void updateLinkPageOrder​(int nOrder, int nPortletId, int nLinkPageId)
      Update the order of a specified link page in a specified portlet
      • Methods inherited from class fr.paris.lutece.portal.business.portlet.PortletHome

        create, findByPrimaryKey, findByType, getAliasList, getLastModifiedPortlet, getPortletListByStyle, getPortletsByRoleKey, getPortletsListbyName, getPortletType, getStylesList, getUsedOrdersForColumns, hasAlias, invalidate, invalidate, notifyListeners, remove, update, updatePosition, updateStatus
    • Constructor Detail

      • LinkPagesPortletHome

        public LinkPagesPortletHome()
        Constructor
    • Method Detail

      • getPortletTypeId

        public String getPortletTypeId()
        Returns the identifier of the link pages portlet type
        Returns:
        the portlet type identifier
      • getInstance

        public static fr.paris.lutece.portal.business.portlet.PortletHome getInstance()
        Returns the instance of LinkPagesPortletHome
        Returns:
        the LinkPagesPortletHome instance
      • getDAO

        public fr.paris.lutece.portal.business.portlet.IPortletInterfaceDAO getDAO()
        Returns the instance of the LinkPagesPortletDAO singleton
        Returns:
        the instance of the LinkPagesPortletDAO
      • getLinkPagesList

        public static fr.paris.lutece.util.ReferenceList getLinkPagesList()
        Returns the list of all the pages of the website
        Returns:
        the list in form of a ReferenceList object
      • getMaxOrder

        public static int getMaxOrder​(int nPortletId)
        Return the max order of a portlet
        Parameters:
        nPortletId - The identifier of the portlet
        Returns:
        The max order
      • getLinkPagesInPortletList

        public static List<fr.paris.lutece.portal.business.page.Page> getLinkPagesInPortletList​(int nPortletId)
        Returns the list of linkpages in a specified portlet
        Parameters:
        nPortletId - The identifier of the portlet to check
        Returns:
        A List of linkpages object
      • getLinkPageOrder

        public static int getLinkPageOrder​(int nPortletId,
                                           int nLinkPageId)
        Return the order of a link page in a specified portlet
        Parameters:
        nPortletId - The identifier of the portlet to check
        nLinkPageId - The identifier of the page
        Returns:
        The order of the page in the portlet
      • getLinkPageIdByOrder

        public static int getLinkPageIdByOrder​(int nPortletId,
                                               int nOrder)
        Return the Id of a link page by his order in a portlet
        Parameters:
        nPortletId - The identifier of the portlet in wich the linkpage is inscribed
        nOrder - The order of the linkpage
        Returns:
        The identifier of the linkpage
      • updateLinkPageOrder

        public static void updateLinkPageOrder​(int nOrder,
                                               int nPortletId,
                                               int nLinkPageId)
        Update the order of a specified link page in a specified portlet
        Parameters:
        nOrder - The new order of the link page
        nPortletId - The identifier of the portlet to update
        nLinkPageId - The identifier of the link page who has a new order
      • removeLinkPage

        public static void removeLinkPage​(int nPortletId,
                                          int nLinkPageId)
        Remove a link page of a portlet
        Parameters:
        nPortletId - The identifier of the portlet from wich the link page is removed
        nLinkPageId - The identifier of the link page to remove
      • removeAllLinkPages

        public static void removeAllLinkPages​(int nPortletId)
        Remove all the link pages of a portlet
        Parameters:
        nPortletId - The identifier of the portlet from wich the link page is removed
      • testDuplicate

        public static boolean testDuplicate​(int nPortletId,
                                            int nLinkPageId)
        Verify if a link page is already in a portlet
        Parameters:
        nPortletId - The identifier of the portlet to check
        nLinkPageId - The identifier of the link page to inscribe
        Returns:
        A boolean of the result
      • insertLinkPage

        public static void insertLinkPage​(int nPortletId,
                                          int nLinkPageId,
                                          int nOrder)
        Insert a specified link page in a specified link page's portlet with a specified order
        Parameters:
        nPortletId - The identifier of the portlet to be inserted
        nLinkPageId - The identifier of the link page to insert
        nOrder - The order of the inserted link page