Class DocumentPortletHome
java.lang.Object
fr.paris.lutece.portal.business.portlet.PortletHome
fr.paris.lutece.plugins.document.business.portlet.DocumentPortletHome
- All Implemented Interfaces:
fr.paris.lutece.portal.business.portlet.PortletHomeInterface
public class DocumentPortletHome
extends fr.paris.lutece.portal.business.portlet.PortletHome
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleancheckIsAliasPortlet(int nPortletId) Check whether a portlet is an alias portletstatic Collection<fr.paris.lutece.util.ReferenceItem>findByCodeDocumentTypeAndCategory(int nDocumentId, String strCodeDocumentType, PortletOrder pOrder, PortletFilter pFilter) Returns a list of couple id_portlet/name filtered by documentType and categoryfindPortletForDocument(int nDocumentId) Finds all portlets that contains the documentfr.paris.lutece.portal.business.portlet.IPortletInterfaceDAOgetDAO()Returns the instance of the portlet DAO singletonstatic fr.paris.lutece.portal.business.portlet.PortletHomeReturns the instance of DocumentPortletHomeReturns the identifier of the portlet typeMethods 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 Details
-
DocumentPortletHome
public DocumentPortletHome()Constructor
-
-
Method Details
-
getInstance
public static fr.paris.lutece.portal.business.portlet.PortletHome getInstance()Returns the instance of DocumentPortletHome- Returns:
- the DocumentPortletHome instance
-
getPortletTypeId
Returns the identifier of the portlet type- Returns:
- the portlet type identifier
-
getDAO
public fr.paris.lutece.portal.business.portlet.IPortletInterfaceDAO getDAO()Returns the instance of the portlet DAO singleton- Returns:
- the instance of the DAO singleton
-
findByCodeDocumentTypeAndCategory
public static Collection<fr.paris.lutece.util.ReferenceItem> findByCodeDocumentTypeAndCategory(int nDocumentId, String strCodeDocumentType, PortletOrder pOrder, PortletFilter pFilter) Returns a list of couple id_portlet/name filtered by documentType and category- Parameters:
nDocumentId- the Document IDstrCodeDocumentType- the codepOrder- the order of the portletspFilter- The portlet filter- Returns:
- A collection of referenceItem
-
checkIsAliasPortlet
public static boolean checkIsAliasPortlet(int nPortletId) Check whether a portlet is an alias portlet- Parameters:
nPortletId- The id of the portlet- Returns:
- True if the portlet is an alias portlet, false otherwise
-
findPortletForDocument
Finds all portlets that contains the document- Parameters:
nDocumentId- document id- Returns:
- all portlets id.
-