Class DocumentListPortletDAO
- java.lang.Object
-
- fr.paris.lutece.plugins.document.business.portlet.DocumentListPortletDAO
-
- All Implemented Interfaces:
IDocumentListPortletDAO,fr.paris.lutece.portal.business.portlet.IPortletInterfaceDAO
public final class DocumentListPortletDAO extends Object implements IDocumentListPortletDAO
This class provides Data Access methods for ArticlesListPortlet objects
-
-
Constructor Summary
Constructors Constructor Description DocumentListPortletDAO()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancheckIsAliasPortlet(int nPortletId)Tests if is a portlet is portlet type aliasvoiddelete(int nPortletId)Deletes records for a portlet identifier in the tables document_list_portlet, document_published, document_category_list_portletvoidinsert(fr.paris.lutece.portal.business.portlet.Portlet portlet)Insert a new record in the table portlet_articles_listfr.paris.lutece.portal.business.portlet.Portletload(int nPortletId)Loads the data of Document List Portlet whose identifier is specified in parameterCollection<fr.paris.lutece.util.ReferenceItem>selectByDocumentIdAndDocumentType(int nDocumentId, String strCodeDocumentType, PortletOrder pOrder, PortletFilter pFilter)Load the list of documentTypesvoidstore(fr.paris.lutece.portal.business.portlet.Portlet portlet)Update the record in the table
-
-
-
Method Detail
-
insert
public void insert(fr.paris.lutece.portal.business.portlet.Portlet portlet)
Insert a new record in the table portlet_articles_list- Specified by:
insertin interfaceIDocumentListPortletDAO- 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_list_portlet, document_published, document_category_list_portlet- Specified by:
deletein interfaceIDocumentListPortletDAO- 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 List Portlet whose identifier is specified in parameter- Specified by:
loadin interfaceIDocumentListPortletDAO- Specified by:
loadin interfacefr.paris.lutece.portal.business.portlet.IPortletInterfaceDAO- Parameters:
nPortletId- The Portlet identifier- Returns:
- theDocumentListPortlet object
-
store
public void store(fr.paris.lutece.portal.business.portlet.Portlet portlet)
Update the record in the table- Specified by:
storein interfaceIDocumentListPortletDAO- Specified by:
storein interfacefr.paris.lutece.portal.business.portlet.IPortletInterfaceDAO- Parameters:
portlet- A portlet
-
selectByDocumentIdAndDocumentType
public Collection<fr.paris.lutece.util.ReferenceItem> selectByDocumentIdAndDocumentType(int nDocumentId, String strCodeDocumentType, PortletOrder pOrder, PortletFilter pFilter)
Load the list of documentTypes- Specified by:
selectByDocumentIdAndDocumentTypein interfaceIDocumentListPortletDAO- Parameters:
nDocumentId- the document IDstrCodeDocumentType- The codepOrder- order of the portletspFilter- The portlet filter- Returns:
- The Collection of the ReferenceItem
-
checkIsAliasPortlet
public boolean checkIsAliasPortlet(int nPortletId)
Tests if is a portlet is portlet type alias- Specified by:
checkIsAliasPortletin interfaceIDocumentListPortletDAO- Parameters:
nPortletId- The identifier of the document- Returns:
- true if the portlet is alias, false otherwise
-
-