|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfr.paris.lutece.plugins.newsletter.business.topic.NewsletterTopicHome
public final class NewsletterTopicHome
Home for NewsletterTopic objects
| Method Summary | |
|---|---|
static 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. |
static List<NewsletterTopic> |
findAllByIdNewsletter(int nIdNewsletter,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Get the list of NewsletterTopic associated with a given
newsletter. |
static NewsletterTopic |
findByPrimaryKey(int nId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Get a NewsletterTopic by its primary key from the database |
static 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 |
static 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 |
static void |
insertNewsletterTopic(NewsletterTopic newsletterTopic,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Insert a new NewsletterTopic into the database |
static void |
removeAllByIdNewsletter(int nIdNewsletter,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Get the list of NewsletterTopic associated with a given
newsletter. |
static void |
removeNewsletterTopic(int nId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Delete a NewsletterTopic from the database |
static void |
updateNewsletterTopic(NewsletterTopic newsletterTopic,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update a NewsletterTopic in the database |
static void |
updateNewsletterTopicOrder(NewsletterTopic newsletterTopic,
int nNewOrder,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update topic orders of a newsletter. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static NewsletterTopic findByPrimaryKey(int nId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
NewsletterTopic by its primary key from the database
nId - The id of the NewsletterTopic to getplugin - The plugin
NewsletterTopic with the given id, or null if no
NewsletterTopic has this id.
public static void insertNewsletterTopic(NewsletterTopic newsletterTopic,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
NewsletterTopic into the database
newsletterTopic - The NewsletterTopic to insert.plugin - The plugin
public static void updateNewsletterTopic(NewsletterTopic newsletterTopic,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
NewsletterTopic in the database
newsletterTopic - The new values of the NewsletterTopic.plugin - The plugin
public static void removeNewsletterTopic(int nId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
NewsletterTopic from the database
nId - The id of the NewsletterTopic to delete.plugin - The plugin
public static void removeAllByIdNewsletter(int nIdNewsletter,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
NewsletterTopic associated with a given
newsletter.
nIdNewsletter - The id of the newsletterplugin - The plugin
public static List<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 plugin
NewsletterTopic found.
public static void updateNewsletterTopicOrder(NewsletterTopic newsletterTopic,
int nNewOrder,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
newsletterTopic - The topic to move. The order attribute of the
topic MUST be its old order.nNewOrder - The new order of the topicplugin - The plugin
public static int getNewOrder(int nIdNewsletter,
int nSection,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
nIdNewsletter - The id of the newsletternSection - The sectionplugin - The plugin
public static int 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 plugin
public static void 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 plugin
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||