Class LinkPagesPortletHome
- java.lang.Object
-
- fr.paris.lutece.portal.business.portlet.PortletHome
-
- fr.paris.lutece.plugins.linkpages.business.portlet.LinkPagesPortletHome
-
- All Implemented Interfaces:
fr.paris.lutece.portal.business.portlet.PortletHomeInterface
public class LinkPagesPortletHome extends fr.paris.lutece.portal.business.portlet.PortletHomeThis class provides instances management methods for LinkPagesPortlet objects
-
-
Constructor Summary
Constructors Constructor Description LinkPagesPortletHome()Constructor
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description fr.paris.lutece.portal.business.portlet.IPortletInterfaceDAOgetDAO()Returns the instance of the LinkPagesPortletDAO singletonstatic fr.paris.lutece.portal.business.portlet.PortletHomegetInstance()Returns the instance of LinkPagesPortletHomestatic intgetLinkPageIdByOrder(int nPortletId, int nOrder)Return the Id of a link page by his order in a portletstatic intgetLinkPageOrder(int nPortletId, int nLinkPageId)Return the order of a link page in a specified portletstatic java.util.List<fr.paris.lutece.portal.business.page.Page>getLinkPagesInPortletList(int nPortletId)Returns the list of linkpages in a specified portletstatic fr.paris.lutece.util.ReferenceListgetLinkPagesList()Returns the list of all the pages of the websitestatic intgetMaxOrder(int nPortletId)Return the max order of a portletjava.lang.StringgetPortletTypeId()Returns the identifier of the link pages portlet typestatic voidinsertLinkPage(int nPortletId, int nLinkPageId, int nOrder)Insert a specified link page in a specified link page's portlet with a specified orderstatic voidremoveAllLinkPages(int nPortletId)Remove all the link pages of a portletstatic voidremoveLinkPage(int nPortletId, int nLinkPageId)Remove a link page of a portletstatic booleantestDuplicate(int nPortletId, int nLinkPageId)Verify if a link page is already in a portletstatic voidupdateLinkPageOrder(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
-
-
-
-
Method Detail
-
getPortletTypeId
public java.lang.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 java.util.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 checknLinkPageId- 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 inscribednOrder- 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 pagenPortletId- The identifier of the portlet to updatenLinkPageId- 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 removednLinkPageId- 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 checknLinkPageId- 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 insertednLinkPageId- The identifier of the link page to insertnOrder- The order of the inserted link page
-
-