Interface INewsLetterTemplateDAO
-
- All Known Implementing Classes:
NewsLetterTemplateDAO
public interface INewsLetterTemplateDAO- Author:
- gduge
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voiddelete(int nNewsLetterTemplateId, fr.paris.lutece.portal.service.plugin.Plugin plugin)Remove a record from the tablevoidinsert(NewsLetterTemplate newsletter, fr.paris.lutece.portal.service.plugin.Plugin plugin)Insert a new record in the table.NewsLetterTemplateload(int nTemplateId, fr.paris.lutece.portal.service.plugin.Plugin plugin)loads the data of the newsletter's template from the tablefr.paris.lutece.util.ReferenceListselectTemplatesByRef(fr.paris.lutece.portal.service.plugin.Plugin plugin)Returns the list of all templatesjava.util.List<NewsLetterTemplate>selectTemplatesCollectionByType(java.lang.String strTopicType, fr.paris.lutece.portal.service.plugin.Plugin plugin)Returns a list of templates depending on the given typejava.util.Collection<NewsLetterTemplate>selectTemplatesList(fr.paris.lutece.portal.service.plugin.Plugin plugin)Returns the list of all templatesfr.paris.lutece.util.ReferenceListselectTemplatesListByType(java.lang.String strTopicType, fr.paris.lutece.portal.service.plugin.Plugin plugin)Returns the list of all templatesjava.util.Collection<NewsLetterTemplate>selectTemplatesListByWorkgoup(java.lang.String strWorkgroupKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)Get the list of temmplates associated with a given workgroupvoidstore(NewsLetterTemplate newsLetterTemplate, fr.paris.lutece.portal.service.plugin.Plugin plugin)Update a given record in the table.
-
-
-
Method Detail
-
selectTemplatesList
java.util.Collection<NewsLetterTemplate> selectTemplatesList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Returns the list of all templates- Parameters:
plugin- The plugin- Returns:
- the collection of all templates
-
selectTemplatesListByType
fr.paris.lutece.util.ReferenceList selectTemplatesListByType(java.lang.String strTopicType, fr.paris.lutece.portal.service.plugin.Plugin plugin)Returns the list of all templates- Parameters:
strTopicType- the topic type of templatesplugin- The plugin- Returns:
- the reference list of the templates corresponding to the given type
-
selectTemplatesCollectionByType
java.util.List<NewsLetterTemplate> selectTemplatesCollectionByType(java.lang.String strTopicType, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Returns a list of templates depending on the given type- Parameters:
strTopicType- the topic type of templates to getplugin- The plugin- Returns:
- the collection of the templates corresponding to the given topic type
-
insert
void insert(NewsLetterTemplate newsletter, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Insert a new record in the table.- Parameters:
newsletter- The Instance of the object NewsLetterTemplateplugin- the plugin
-
load
NewsLetterTemplate load(int nTemplateId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
loads the data of the newsletter's template from the table- Parameters:
nTemplateId- the template identifierplugin- the plugin- Returns:
- the object inserted
-
store
void store(NewsLetterTemplate newsLetterTemplate, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update a given record in the table.- Parameters:
newsLetterTemplate- The Instance of the object NewsLetterTemplateplugin- the plugin
-
delete
void delete(int nNewsLetterTemplateId, fr.paris.lutece.portal.service.plugin.Plugin plugin)Remove a record from the table- Parameters:
nNewsLetterTemplateId- the template identifierplugin- the Plugin
-
selectTemplatesByRef
fr.paris.lutece.util.ReferenceList selectTemplatesByRef(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Returns the list of all templates- Parameters:
plugin- The plugin- Returns:
- the reference list of the templates
-
selectTemplatesListByWorkgoup
java.util.Collection<NewsLetterTemplate> selectTemplatesListByWorkgoup(java.lang.String strWorkgroupKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Get the list of temmplates associated with a given workgroup- Parameters:
strWorkgroupKey- The key of the workgroupplugin- The plugin- Returns:
- The list of temmplates associated with a given workgroup
-
-