Class DocumentPortletDAO
java.lang.Object
fr.paris.lutece.plugins.document.business.portlet.DocumentPortletDAO
- All Implemented Interfaces:
IDocumentPortletDAO,fr.paris.lutece.portal.business.portlet.IPortletInterfaceDAO
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancheckIsAliasPortlet(int nPortletId) Tests if is a portlet is portlet type aliasvoiddelete(int nPortletId) Deletes records for a portlet identifier in the tables document_portlet, document_published, document_category_portletvoidinsert(fr.paris.lutece.portal.business.portlet.Portlet portlet) Insert a new record in the table document_portletfr.paris.lutece.portal.business.portlet.Portletload(int nPortletId) Loads the data of Document Portlet whose identifier is specified in parameterCollection<fr.paris.lutece.util.ReferenceItem>selectByDocumentOdAndDocumentType(int nDocumentId, String strCodeDocumentType, PortletOrder pOrder, PortletFilter pFilter) Returns a list of couple id_portlet/name filtered by documentType and categoryselectPortletsByDocumentId(int nDocumentId) Find all portlets that contain the documentvoidstore(fr.paris.lutece.portal.business.portlet.Portlet portlet) Update the record in the table
-
Constructor Details
-
DocumentPortletDAO
public DocumentPortletDAO()
-
-
Method Details
-
insert
public void insert(fr.paris.lutece.portal.business.portlet.Portlet portlet) Insert a new record in the table document_portlet- Specified by:
insertin interfacefr.paris.lutece.portal.business.portlet.IPortletInterfaceDAO- Parameters:
portlet- the instance of the Portlet object to insert
-
delete
public void delete(int nPortletId) Deletes records for a portlet identifier in the tables document_portlet, document_published, document_category_portlet- Specified by:
deletein interfacefr.paris.lutece.portal.business.portlet.IPortletInterfaceDAO- Parameters:
nPortletId- the portlet identifier
-
load
public fr.paris.lutece.portal.business.portlet.Portlet load(int nPortletId) Loads the data of Document Portlet whose identifier is specified in parameter- Specified by:
loadin interfacefr.paris.lutece.portal.business.portlet.IPortletInterfaceDAO- Parameters:
nPortletId- The Portlet identifier- Returns:
- the DocumentPortlet object
-
store
public void store(fr.paris.lutece.portal.business.portlet.Portlet portlet) Update the record in the table- Specified by:
storein interfacefr.paris.lutece.portal.business.portlet.IPortletInterfaceDAO- Parameters:
portlet- A portlet
-
selectByDocumentOdAndDocumentType
public Collection<fr.paris.lutece.util.ReferenceItem> selectByDocumentOdAndDocumentType(int nDocumentId, String strCodeDocumentType, PortletOrder pOrder, PortletFilter pFilter) Returns a list of couple id_portlet/name filtered by documentType and category- Specified by:
selectByDocumentOdAndDocumentTypein interfaceIDocumentPortletDAO- Parameters:
nDocumentId- the Document IDstrCodeDocumentType- the codepOrder- the order of the portletspFilter- The portlet filter- Returns:
- A collection of referenceItem
-
checkIsAliasPortlet
public boolean checkIsAliasPortlet(int nPortletId) Tests if is a portlet is portlet type alias- Specified by:
checkIsAliasPortletin interfaceIDocumentPortletDAO- Parameters:
nPortletId- The identifier of the document- Returns:
- true if the portlet is alias, false otherwise
-
selectPortletsByDocumentId
Find all portlets that contain the document- Specified by:
selectPortletsByDocumentIdin interfaceIDocumentPortletDAO- Parameters:
nDocumentId- the document id- Returns:
- all portlets id that contain the document
-