public class LinksPortletHome
extends fr.paris.lutece.portal.business.portlet.PortletHome
| Constructor and Description |
|---|
LinksPortletHome()
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
static fr.paris.lutece.util.ReferenceList |
findUnselectedPortlets()
Returns Links portlet list
|
fr.paris.lutece.portal.business.portlet.IPortletInterfaceDAO |
getDAO()
Returns the instance of the Link portlet DAO singleton
|
static fr.paris.lutece.portal.business.portlet.PortletHome |
getInstance()
Returns the instance of LinksPortletHome
|
static int |
getLinkIdByOrder(int nPortletId,
int nOrder)
Return the Id of an link by is order in a portlet
|
static int |
getLinkOrder(int nPortletId,
int nLinkId)
Return the order of an link in a specified portlet
|
static Collection<Link> |
getLinksInPortletList(int nPortletId)
Returns the list of links in a specified portlet
|
static fr.paris.lutece.util.ReferenceList |
getLinksList()
Returns a list of all the links
|
static int |
getMaxOrder(int nPortletId)
Return the max order of a portlet
|
static int |
getPortletIdByOrder(int nOrder)
Returns the Id of a portlet from its order in the links page
|
static int |
getPortletMaxOrder()
Returns the maximum order of the portlets in the links page
|
static int |
getPortletOrder(int nPortletId)
Returns the order of a portlet in the links page
|
static Collection<fr.paris.lutece.portal.business.portlet.Portlet> |
getPortletsInLinksPage()
Returns a Collection of all the portlets of the links page
|
String |
getPortletTypeId()
Returns The type of the portlet
|
static void |
insertLink(int nPortletId,
int nLinkId,
int nOrder)
Insert a specified link in a specified Links portlet with a specified order
|
static void |
insertPortlet(int nPortletId,
int nOrder)
Inserts a portlet in the links page
|
static void |
removeLink(int nPortletId,
int nLinkId)
Remove a link from a portlet
|
static void |
removeLinkFromPortlets(int nLinkId)
Removes a link from all the portlets
|
static void |
removePortlet(int nPortletId)
Removes a portlet from the links page
|
static boolean |
testDuplicate(int nPortletId,
int nLinkId)
Verify if an link is already in a portlet
|
static void |
updateLinkOrder(int nOrder,
int nPortletId,
int nLinkId)
Update the order of a specified link in a specified portlet
|
static void |
updatePortletOrder(int nOrder,
int nPortletId)
Updates the order of a portlet in the links page
|
create, findByPrimaryKey, findByType, getAliasList, getLastModifiedPortlet, getPortletListByStyle, getPortletsByRoleKey, getPortletsListbyName, getPortletType, getStylesList, getUsedOrdersForColumns, hasAlias, invalidate, invalidate, notifyListeners, remove, update, updateStatuspublic String getPortletTypeId()
public static fr.paris.lutece.portal.business.portlet.PortletHome getInstance()
public fr.paris.lutece.portal.business.portlet.IPortletInterfaceDAO getDAO()
public static fr.paris.lutece.util.ReferenceList getLinksList()
public static Collection<Link> getLinksInPortletList(int nPortletId)
nPortletId - The identifier of the portlet to checkpublic static void insertLink(int nPortletId,
int nLinkId,
int nOrder)
nPortletId - The identifier of the portlet to be insertednLinkId - The identifier of the link to insertnOrder - The order of the inserted linkpublic static void removeLink(int nPortletId,
int nLinkId)
nPortletId - The identifier of the portlet from wich the link is removednLinkId - The identifier of the link to removepublic static void removeLinkFromPortlets(int nLinkId)
nLinkId - The identifier of the linkpublic static boolean testDuplicate(int nPortletId,
int nLinkId)
nPortletId - The identifier of the portlet to checknLinkId - The identifier of the link to inscribepublic static int getLinkOrder(int nPortletId,
int nLinkId)
nPortletId - The identifier of the portlet to checknLinkId - The identifier of the linkpublic static int getMaxOrder(int nPortletId)
nPortletId - The identifier of the portletpublic static int getPortletMaxOrder()
public static void updateLinkOrder(int nOrder,
int nPortletId,
int nLinkId)
nOrder - The new order of the linknPortletId - The identifier of the portlet to updatenLinkId - The identifier of the link who has a new orderpublic static int getLinkIdByOrder(int nPortletId,
int nOrder)
nPortletId - The identifier of the portlet in wich the link is inscribednOrder - The order of the linkpublic static fr.paris.lutece.util.ReferenceList findUnselectedPortlets()
public static Collection<fr.paris.lutece.portal.business.portlet.Portlet> getPortletsInLinksPage()
public static int getPortletOrder(int nPortletId)
nPortletId - The identifier of the portletpublic static void removePortlet(int nPortletId)
nPortletId - The identifier of the portletpublic static void insertPortlet(int nPortletId,
int nOrder)
nPortletId - The identifier of the portletnOrder - The order of the portletpublic static int getPortletIdByOrder(int nOrder)
nOrder - The order of the portletpublic static void updatePortletOrder(int nOrder,
int nPortletId)
nOrder - The order of the portletnPortletId - The identifier of the portletCopyright © 2021 City of Paris. All rights reserved.