|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfr.paris.lutece.portal.business.portlet.PortletHome
fr.paris.lutece.plugins.links.business.portlet.LinksPortletHome
public class LinksPortletHome
This class provides instances management methods for LinkPortlet objects
| Constructor Summary | |
|---|---|
LinksPortletHome()
Constructor |
|
| Method Summary | |
|---|---|
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 java.util.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 java.util.Collection<fr.paris.lutece.portal.business.portlet.Portlet> |
getPortletsInLinksPage()
Returns a Collection of all the portlets of the links page |
java.lang.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 |
| Methods inherited from class fr.paris.lutece.portal.business.portlet.PortletHome |
|---|
create, findByPrimaryKey, findByType, getAliasList, getLastModifiedPortlet, getPortletListByStyle, getPortletsByRoleKey, getPortletsListbyName, getPortletType, getStylesList, hasAlias, invalidate, invalidate, notifyListeners, remove, update, updateStatus |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LinksPortletHome()
| Method Detail |
|---|
public java.lang.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 java.util.Collection<Link> getLinksInPortletList(int nPortletId)
nPortletId - The identifier of the portlet to check
public 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 link
public 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 link
public static boolean testDuplicate(int nPortletId,
int nLinkId)
nPortletId - The identifier of the portlet to checknLinkId - The identifier of the link to inscribe
public static int getLinkOrder(int nPortletId,
int nLinkId)
nPortletId - The identifier of the portlet to checknLinkId - The identifier of the link
public static int getMaxOrder(int nPortletId)
nPortletId - The identifier of the portlet
public 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 order
public static int getLinkIdByOrder(int nPortletId,
int nOrder)
nPortletId - The identifier of the portlet in wich the link is inscribednOrder - The order of the link
public static fr.paris.lutece.util.ReferenceList findUnselectedPortlets()
public static java.util.Collection<fr.paris.lutece.portal.business.portlet.Portlet> getPortletsInLinksPage()
public static int getPortletOrder(int nPortletId)
nPortletId - The identifier of the portlet
public static void removePortlet(int nPortletId)
nPortletId - The identifier of the portlet
public 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 portlet
public static void updatePortletOrder(int nOrder,
int nPortletId)
nOrder - The order of the portletnPortletId - The identifier of the portlet
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||