|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectfr.paris.lutece.plugins.greetingscard.business.GreetingsCardHome
public final class GreetingsCardHome
This class provides instances management methods (create, find, ...) for GreetingsCard objects
Method Summary | |
---|---|
static GreetingsCard |
create(GreetingsCard greetingsCard,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Creates a greetings card in the database |
static java.util.Collection<GreetingsCard> |
findAll(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Returns GreetingsCard list |
static java.util.Collection<GreetingsCard> |
findByGreetingsCardTemplateId(int nIdGreetingsCardTemplate,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Returns the list of greetings cards of a greetings card template |
static GreetingsCard |
findByPrimaryKey(java.lang.String strKey,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Returns an instance of the article GreetingsCard whose identifier is specified in parameter |
static java.util.Collection<GreetingsCard> |
findByTemplateAndDate(int nIdGreetingsCardTemplate,
java.util.Date dateMin,
java.util.Date dateMax,
int nResultsLimit,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Get greetings card with a given template and sent between two given dates |
static java.util.Collection<GreetingsCard> |
findCardsToSendNotification(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Get the collection of greetings cards that has been red and that has the notify sender flag set. |
static java.util.List<java.lang.String> |
findDomainNameOfMailSent(GreetingsCardFilter greetingsCardFilter,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Returns the list of domain name of mail sent |
static java.util.Map<java.lang.String,java.lang.Integer> |
findNumberOfMailReadByDomain(GreetingsCardFilter greetingsCardFilter,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Return the number of mail red for each domains |
static java.util.Map<java.lang.String,java.lang.Integer> |
findNumberOfMailSentByDomain(GreetingsCardFilter greetingsCardFilter,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Return the number of mail sent for each domains |
static int |
findNumberTotalOfMailSentWithoutCopy(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Get the total number of cards sent without archives. |
static void |
remove(java.lang.String strIdGC,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
|
static void |
removeList(java.lang.String strIdGC,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Remove a list of greetings card |
static GreetingsCard |
update(GreetingsCard greetingsCard,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static GreetingsCard create(GreetingsCard greetingsCard, fr.paris.lutece.portal.service.plugin.Plugin plugin)
greetingsCard
- An instance of the GreetingsCard which contains the informations to insertplugin
- The plugin
public static GreetingsCard update(GreetingsCard greetingsCard, fr.paris.lutece.portal.service.plugin.Plugin plugin)
greetingsCard
- An instance of the GreetingsCard which contains the informations to storeplugin
- The plugin
public static void remove(java.lang.String strIdGC, fr.paris.lutece.portal.service.plugin.Plugin plugin)
strIdGC
- The Id of the deleted greeting cardplugin
- The pluginpublic static void removeList(java.lang.String strIdGC, fr.paris.lutece.portal.service.plugin.Plugin plugin)
strIdGC
- The comma separated list of greetings cards idsplugin
- The pluginpublic static GreetingsCard findByPrimaryKey(java.lang.String strKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
strKey
- The primary key of the article to find in the databaseplugin
- The plugin
public static java.util.Collection<GreetingsCard> findAll(fr.paris.lutece.portal.service.plugin.Plugin plugin)
plugin
- The plugin
public static java.util.Collection<GreetingsCard> findByGreetingsCardTemplateId(int nIdGreetingsCardTemplate, fr.paris.lutece.portal.service.plugin.Plugin plugin)
nIdGreetingsCardTemplate
- The greetings card template identifierplugin
- The plugin
public static java.util.List<java.lang.String> findDomainNameOfMailSent(GreetingsCardFilter greetingsCardFilter, fr.paris.lutece.portal.service.plugin.Plugin plugin)
greetingsCardFilter
- The greetings card filterplugin
- The plugin
public static java.util.Map<java.lang.String,java.lang.Integer> findNumberOfMailSentByDomain(GreetingsCardFilter greetingsCardFilter, fr.paris.lutece.portal.service.plugin.Plugin plugin)
greetingsCardFilter
- The greetings card filterplugin
- The plugin
public static int findNumberTotalOfMailSentWithoutCopy(fr.paris.lutece.portal.service.plugin.Plugin plugin)
plugin
- The plugin
public static java.util.Map<java.lang.String,java.lang.Integer> findNumberOfMailReadByDomain(GreetingsCardFilter greetingsCardFilter, fr.paris.lutece.portal.service.plugin.Plugin plugin)
greetingsCardFilter
- The greetings card filterplugin
- The plugin
public static java.util.Collection<GreetingsCard> findCardsToSendNotification(fr.paris.lutece.portal.service.plugin.Plugin plugin)
nStatus
- Statusplugin
- The plugin
public static java.util.Collection<GreetingsCard> findByTemplateAndDate(int nIdGreetingsCardTemplate, java.util.Date dateMin, java.util.Date dateMax, int nResultsLimit, fr.paris.lutece.portal.service.plugin.Plugin plugin)
nIdGreetingsCardTemplate
- Id of the template of greetings cardsdateMin
- Minimum sent date. If the date is null, then it is ignoreddateMax
- Maximum sent date. If the date is null, then it is ignorednResultsLimit
- Maximum number of results returned. If the number is 0, then every object is consideredplugin
- The plugin
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |