public interface INewsletterTopicDAO
| Modifier and Type | Method and Description |
|---|---|
void |
fillBlankInOrder(int nIdNewsletter,
int nOrder,
int nSection,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Fill a blank in the order of topics of a newsletter.
|
List<NewsletterTopic> |
findAllByIdNewsletter(int nIdNewsletter,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Get the list of
NewsletterTopic associated with a given newsletter. |
List<NewsletterTopic> |
findByNewsletterIdAndOrder(int nIdNewsletter,
int nOrder,
int nSection,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Get the list of newsletter topics associated to a given newsletter and with the given order in a section
|
NewsletterTopic |
findByPrimaryKey(int nId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Get a
NewsletterTopic by its primary key from the database |
int |
getLastOrder(int nIdNewsletter,
int nSection,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Get the highest order for a given newsletter and a given section
|
int |
getNewOrder(int nIdNewsletter,
int nSection,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Get the next available order value for topics of a newsletter
|
void |
insert(NewsletterTopic newsletterTopic,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Insert a new
NewsletterTopic into the database |
void |
remove(int nId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Delete a
NewsletterTopic from the database |
void |
removeAllByIdNewsletter(int nIdNewsletter,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Remove every topic associated with a given newsletter
|
void |
update(NewsletterTopic newsletterTopic,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update a
NewsletterTopic in the database |
void |
updateNewsletterTopicOrder(int nIdNewsletterTopic,
int nNewOrder,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update the order of a newsletter topic
|
NewsletterTopic findByPrimaryKey(int nId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
NewsletterTopic by its primary key from the databasenId - The id of the NewsletterTopic to getplugin - The pluginNewsletterTopic with the given id, or null if no NewsletterTopic has this id.void insert(NewsletterTopic newsletterTopic, fr.paris.lutece.portal.service.plugin.Plugin plugin)
NewsletterTopic into the databasenewsletterTopic - The NewsletterTopic to insert.plugin - The pluginvoid update(NewsletterTopic newsletterTopic, fr.paris.lutece.portal.service.plugin.Plugin plugin)
NewsletterTopic in the databasenewsletterTopic - The new values of the NewsletterTopic.plugin - The pluginvoid remove(int nId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
NewsletterTopic from the databasenId - The id of the NewsletterTopic to delete.plugin - The pluginList<NewsletterTopic> findAllByIdNewsletter(int nIdNewsletter, fr.paris.lutece.portal.service.plugin.Plugin plugin)
NewsletterTopic associated with a given newsletter.nIdNewsletter - The id of the newsletterplugin - The pluginNewsletterTopic found.void updateNewsletterTopicOrder(int nIdNewsletterTopic,
int nNewOrder,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
nIdNewsletterTopic - The id of the newsletter topic to updatenNewOrder - The new order of the topicplugin - The pluginList<NewsletterTopic> findByNewsletterIdAndOrder(int nIdNewsletter, int nOrder, int nSection, fr.paris.lutece.portal.service.plugin.Plugin plugin)
nIdNewsletter - The id of the newsletter the topic must be associated with.nOrder - The order the topics must havenSection - The section of the Topicplugin - The pluginint getNewOrder(int nIdNewsletter,
int nSection,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
nIdNewsletter - The id of the newsletternSection - The section of the newsletterplugin - The pluginint getLastOrder(int nIdNewsletter,
int nSection,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
nIdNewsletter - The id of the newsletternSection - The id of the sectionplugin - The pluginvoid fillBlankInOrder(int nIdNewsletter,
int nOrder,
int nSection,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
nIdNewsletter - The newsletter to update the topics ofnOrder - The order with no topicnSection - The section of topics to updateplugin - the pluginvoid removeAllByIdNewsletter(int nIdNewsletter,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
nIdNewsletter - The id of the newsletter to remove the topics of.plugin - The pluginCopyright © 2023 City of Paris. All rights reserved.