public final class NewsLetterTemplateDAO extends Object implements INewsLetterTemplateDAO
Constructor and Description |
---|
NewsLetterTemplateDAO() |
Modifier and Type | Method and Description |
---|---|
void |
delete(int nNewsLetterTemplateId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Remove a record from the table
|
void |
insert(NewsLetterTemplate newsletter,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Insert a new record in the table.
|
NewsLetterTemplate |
load(int nTemplateId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
loads the data of the newsletter's template from the table
|
fr.paris.lutece.util.ReferenceList |
selectTemplatesByRef(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Returns the list of all templates
|
List<NewsLetterTemplate> |
selectTemplatesCollectionByType(String strTopicType,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Returns a list of templates depending on the given type
|
Collection<NewsLetterTemplate> |
selectTemplatesList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Returns the list of all templates
|
fr.paris.lutece.util.ReferenceList |
selectTemplatesListByType(String strTopicType,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Returns the list of all templates
|
Collection<NewsLetterTemplate> |
selectTemplatesListByWorkgoup(String strWorkgroupKey,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Get the list of temmplates associated with a given workgroup
|
void |
store(NewsLetterTemplate newsLetterTemplate,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update a given record in the table.
|
public Collection<NewsLetterTemplate> selectTemplatesList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectTemplatesList
in interface INewsLetterTemplateDAO
plugin
- The pluginpublic fr.paris.lutece.util.ReferenceList selectTemplatesListByType(String strTopicType, fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectTemplatesListByType
in interface INewsLetterTemplateDAO
strTopicType
- the topic type of templatesplugin
- The pluginpublic List<NewsLetterTemplate> selectTemplatesCollectionByType(String strTopicType, fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectTemplatesCollectionByType
in interface INewsLetterTemplateDAO
strTopicType
- the topic type of templates to getplugin
- The pluginpublic void insert(NewsLetterTemplate newsletter, fr.paris.lutece.portal.service.plugin.Plugin plugin)
insert
in interface INewsLetterTemplateDAO
newsletter
- The Instance of the object NewsLetterTemplateplugin
- the pluginpublic NewsLetterTemplate load(int nTemplateId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
load
in interface INewsLetterTemplateDAO
nTemplateId
- the template identifierplugin
- the pluginpublic void store(NewsLetterTemplate newsLetterTemplate, fr.paris.lutece.portal.service.plugin.Plugin plugin)
store
in interface INewsLetterTemplateDAO
newsLetterTemplate
- The Instance of the object NewsLetterTemplateplugin
- the pluginpublic void delete(int nNewsLetterTemplateId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
delete
in interface INewsLetterTemplateDAO
nNewsLetterTemplateId
- the template identifierplugin
- the Pluginpublic fr.paris.lutece.util.ReferenceList selectTemplatesByRef(fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectTemplatesByRef
in interface INewsLetterTemplateDAO
plugin
- The pluginpublic Collection<NewsLetterTemplate> selectTemplatesListByWorkgoup(String strWorkgroupKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectTemplatesListByWorkgoup
in interface INewsLetterTemplateDAO
strWorkgroupKey
- The key of the workgroupplugin
- The pluginCopyright © 2019 City of Paris. All rights reserved.