Class NewsLetterArchivePortletDAO
java.lang.Object
fr.paris.lutece.plugins.newsletter.business.portlet.NewsLetterArchivePortletDAO
- All Implemented Interfaces:
INewsLetterArchivePortletDAO,fr.paris.lutece.portal.business.portlet.IPortletInterfaceDAO
@ApplicationScoped
@Named("newsletter.newsLetterArchivePortletDAO")
public class NewsLetterArchivePortletDAO
extends Object
implements INewsLetterArchivePortletDAO
This class provides Data Access methods for NewsLetterArchivePortlet objects
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddelete(int nPortletId) Deletes a record from the table.findSendingsInPortlet(int nPortletId, fr.paris.lutece.portal.service.plugin.Plugin plugin) Returns all the sendings associated with a given portlet.voidinsert(fr.paris.lutece.portal.business.portlet.Portlet portlet) Inserts a new record in the table.voidinsertSending(int nPortletId, int nSendingId, fr.paris.lutece.portal.service.plugin.Plugin plugin) Associates a new sending to a given portlet.fr.paris.lutece.portal.business.portlet.Portletload(int nPortletId) Loads the data of the portlet from the table.voidremoveSending(int nPortletId, int nSendingId, fr.paris.lutece.portal.service.plugin.Plugin plugin) De-associate a sending from a given portlet.voidstore(fr.paris.lutece.portal.business.portlet.Portlet portlet) Updates the record in the table.
-
Constructor Details
-
NewsLetterArchivePortletDAO
public NewsLetterArchivePortletDAO()
-
-
Method Details
-
insert
public void insert(fr.paris.lutece.portal.business.portlet.Portlet portlet) Inserts a new record in the table. Not implemented.- Specified by:
insertin interfacefr.paris.lutece.portal.business.portlet.IPortletInterfaceDAO- Parameters:
portlet- the object to be inserted
-
delete
public void delete(int nPortletId) Deletes a record from the table.- Specified by:
deletein interfacefr.paris.lutece.portal.business.portlet.IPortletInterfaceDAO- Parameters:
nPortletId- the portlet id
-
load
public fr.paris.lutece.portal.business.portlet.Portlet load(int nPortletId) Loads the data of the portlet from the table.- Specified by:
loadin interfacefr.paris.lutece.portal.business.portlet.IPortletInterfaceDAO- Parameters:
nPortletId- the portlet id- Returns:
- the Portlet object
-
store
public void store(fr.paris.lutece.portal.business.portlet.Portlet portlet) Updates the record in the table. Not implemented.- Specified by:
storein interfacefr.paris.lutece.portal.business.portlet.IPortletInterfaceDAO- Parameters:
portlet- the instance of Portlet class to be updated
-
insertSending
public void insertSending(int nPortletId, int nSendingId, fr.paris.lutece.portal.service.plugin.Plugin plugin) Associates a new sending to a given portlet.- Specified by:
insertSendingin interfaceINewsLetterArchivePortletDAO- Parameters:
nPortletId- the identifier of the portlet.nSendingId- the identifier of the sending.plugin- the Plugin
-
removeSending
public void removeSending(int nPortletId, int nSendingId, fr.paris.lutece.portal.service.plugin.Plugin plugin) De-associate a sending from a given portlet.- Specified by:
removeSendingin interfaceINewsLetterArchivePortletDAO- Parameters:
nPortletId- the identifier of the portlet.nSendingId- the identifier of the sending.plugin- the Plugin
-
findSendingsInPortlet
public ArrayList<Integer> findSendingsInPortlet(int nPortletId, fr.paris.lutece.portal.service.plugin.Plugin plugin) Returns all the sendings associated with a given portlet.- Specified by:
findSendingsInPortletin interfaceINewsLetterArchivePortletDAO- Parameters:
nPortletId- the identifier of the portlet.plugin- the Plugin- Returns:
- a list of Integer objects containing the identifiers of the sendings.
-