|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfr.paris.lutece.plugins.newsletter.modules.document.business.NewsletterDocumentHome
public final class NewsletterDocumentHome
Home for newsletter document
| Method Summary | |
|---|---|
static void |
associateNewsLetterDocumentCategory(int nTopicId,
int nDocumentCategoryId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Associate a document category to a newsletter topic |
static void |
associateNewsLetterDocumentPortlet(int nTopicId,
int nPortletId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Associate a new portlet to a newsletter topic |
static void |
createDocumentTopic(NewsletterDocument topic,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Insert a new newsletter document topic into the database |
static void |
deleteDocumentTopic(int nIdTopic,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Remove a newsletter document topic from the database |
static NewsletterDocument |
findByPrimaryKey(int nIdTopic,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Get a newsletter document topic from its id |
static Collection<fr.paris.lutece.plugins.document.business.Document> |
findDocumentsByDateAndCategory(int nDocumentCategoryId,
Timestamp dtDernierEnvoi,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Returns the list of documents published by date and by topic |
static int[] |
findNewsletterCategoryIds(int nTopicId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
loads the list of categories of the newsletter |
static int[] |
findNewsletterPortletsIds(int nTopicId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
loads the list of document list portlets linked to the newsletter |
static boolean |
findTemplate(int nIdNewsletterTemplate,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Check if a template is used by a topic |
static fr.paris.lutece.util.ReferenceList |
getAllCategories(fr.paris.lutece.portal.business.user.AdminUser user)
Fetches all the categories defined |
static fr.paris.lutece.util.ReferenceList |
getDocumentListPortlets(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Returns the collection of any portlet containing at least a published document |
static List<Integer> |
getPublishedDocumentsIdsListByPortletIds(int[] nPortletsIds,
Date datePublishing,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Get the list of id of published documents associated with a given collection of portlets. |
static void |
removeNewsLetterDocumentCategories(int nTopicId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Removes the relationship between a list of document categories and a newsletter topic |
static void |
removeNewsLetterDocumentPortlet(int nTopicId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Remove the relationship between a topic and the list of portlets |
static void |
updateDocumentTopic(NewsletterDocument topic,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update a newsletter document topic |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static NewsletterDocument findByPrimaryKey(int nIdTopic,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
nIdTopic - the id of the topic to getplugin - The plugin
public static void updateDocumentTopic(NewsletterDocument topic,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
topic - The topic to updateplugin - The plugin
public static void deleteDocumentTopic(int nIdTopic,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
nIdTopic - The id of the newsletter document topic to removeplugin - The plugin
public static void createDocumentTopic(NewsletterDocument topic,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
topic - The newsletter document topic to insertplugin - the plugin
public static Collection<fr.paris.lutece.plugins.document.business.Document> findDocumentsByDateAndCategory(int nDocumentCategoryId,
Timestamp dtDernierEnvoi,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
nDocumentCategoryId - the id of the categorydtDernierEnvoi - the date of the last sendingplugin - The plugin
public static fr.paris.lutece.util.ReferenceList getAllCategories(fr.paris.lutece.portal.business.user.AdminUser user)
user - the current user
public static fr.paris.lutece.util.ReferenceList getDocumentListPortlets(fr.paris.lutece.portal.service.plugin.Plugin plugin)
plugin - The plugin
public static void associateNewsLetterDocumentCategory(int nTopicId,
int nDocumentCategoryId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
nTopicId - the topic identifiernDocumentCategoryId - the id of the document category to associateplugin - the Plugin
public static void removeNewsLetterDocumentCategories(int nTopicId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
nTopicId - the newsletter identifierplugin - the Plugin
public static int[] findNewsletterCategoryIds(int nTopicId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
nTopicId - the topic identifierplugin - the plugin
public static void associateNewsLetterDocumentPortlet(int nTopicId,
int nPortletId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
nTopicId - the topic idnPortletId - the portlet identifierplugin - the newsletter document plugin
public static void removeNewsLetterDocumentPortlet(int nTopicId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
nTopicId - the topic idplugin - the newsletter document plugin
public static int[] findNewsletterPortletsIds(int nTopicId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
nTopicId - the topic identifierplugin - the plugin
public static List<Integer> getPublishedDocumentsIdsListByPortletIds(int[] nPortletsIds,
Date datePublishing,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
nPortletsIds - The list of portlet ids.datePublishing - TODOplugin - The document plugin
public static boolean findTemplate(int nIdNewsletterTemplate,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
nIdNewsletterTemplate - The id of the templateplugin - The newsletter plugin
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||