Class BlogListPortletDAO
- java.lang.Object
-
- fr.paris.lutece.plugins.blog.business.portlet.BlogListPortletDAO
-
- All Implemented Interfaces:
IBlogListPortletDAO,fr.paris.lutece.portal.business.portlet.IPortletInterfaceDAO
public final class BlogListPortletDAO extends Object implements IBlogListPortletDAO
This class provides Data Access methods for BlogsListPortlet objects
-
-
Constructor Summary
Constructors Constructor Description BlogListPortletDAO()
-
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 Blogs_list_portletvoidinsert(fr.paris.lutece.portal.business.portlet.Portlet portlet)Insert a new record in the table Blogs_list_portletfr.paris.lutece.portal.business.portlet.Portletload(int nPortletId)Loads the data of Document List Portlet whose identifier is specified in parameterMap<Integer,String>loadPages(String strPortletType)Load the portlet template whose type is specified in parameterfr.paris.lutece.util.ReferenceListselectBlogListPortletReferenceList(fr.paris.lutece.portal.service.plugin.Plugin plugin)intselectMinDocumentBlogOrder()Get the min of document blog orderCollection<fr.paris.lutece.util.ReferenceItem>selectPortletByType(int nDocumentId, PortletOrder pOrder, PortletFilter pFilter)Load the list of portletvoidstore(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 Blogs_list_portlet- Specified by:
insertin interfaceIBlogListPortletDAO- 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 Blogs_list_portlet- Specified by:
deletein interfaceIBlogListPortletDAO- 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 interfaceIBlogListPortletDAO- Specified by:
loadin interfacefr.paris.lutece.portal.business.portlet.IPortletInterfaceDAO- Parameters:
nPortletId- The Portlet identifier- Returns:
- theDocumentListPortlet object
-
loadPages
public Map<Integer,String> loadPages(String strPortletType)
Load the portlet template whose type is specified in parameter- Specified by:
loadPagesin interfaceIBlogListPortletDAO- Returns:
- Map template
-
store
public void store(fr.paris.lutece.portal.business.portlet.Portlet portlet)
Update the record in the table- Specified by:
storein interfaceIBlogListPortletDAO- Specified by:
storein interfacefr.paris.lutece.portal.business.portlet.IPortletInterfaceDAO- Parameters:
portlet- A portlet
-
checkIsAliasPortlet
public boolean checkIsAliasPortlet(int nPortletId)
Tests if is a portlet is portlet type alias- Specified by:
checkIsAliasPortletin interfaceIBlogListPortletDAO- Parameters:
nPortletId- The identifier of the document- Returns:
- true if the portlet is alias, false otherwise
-
selectBlogListPortletReferenceList
public fr.paris.lutece.util.ReferenceList selectBlogListPortletReferenceList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
- Specified by:
selectBlogListPortletReferenceListin interfaceIBlogListPortletDAO- Returns:
-
selectPortletByType
public Collection<fr.paris.lutece.util.ReferenceItem> selectPortletByType(int nDocumentId, PortletOrder pOrder, PortletFilter pFilter)
Load the list of portlet- Specified by:
selectPortletByTypein interfaceIBlogListPortletDAO- Parameters:
nDocumentId- the document IDpOrder- order of the portlets- Returns:
- The Collection of the ReferenceItem
-
selectMinDocumentBlogOrder
public int selectMinDocumentBlogOrder()
Get the min of document blog order- Specified by:
selectMinDocumentBlogOrderin interfaceIBlogListPortletDAO- Returns:
- The minimum order from blog list portlet
-
-