|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectfr.paris.lutece.plugins.greetingscard.business.GreetingsCardDAO
public final class GreetingsCardDAO
This class provides Data Access methods for GreetingsCard objects
Method Summary | |
---|---|
void |
delete(java.lang.String strIdGC,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Delete a record from the table |
void |
deleteList(java.lang.String strIdGC,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Remove a list of greetings card |
java.util.Collection<GreetingsCard> |
findAll(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Finds all objects of this type |
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 |
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 |
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. |
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 |
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 |
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 |
int |
findNumberTotalOfMailSentWithoutCopy(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Get the total number of cards sent without archives. |
void |
insert(GreetingsCard greetingsCard,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Insert a new record in the table. |
GreetingsCard |
load(java.lang.String strIdGC,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
load the data of GreetingsCard from the table |
void |
store(GreetingsCard greetingsCard,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update the record in the table |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public void insert(GreetingsCard greetingsCard, fr.paris.lutece.portal.service.plugin.Plugin plugin)
insert
in interface IGreetingsCardDAO
greetingsCard
- The Instance of the GreetingsCard objectplugin
- The pluginpublic void delete(java.lang.String strIdGC, fr.paris.lutece.portal.service.plugin.Plugin plugin)
delete
in interface IGreetingsCardDAO
strIdGC
- The indentifier of the object GreetingsCardplugin
- The pluginpublic void deleteList(java.lang.String strIdGC, fr.paris.lutece.portal.service.plugin.Plugin plugin)
deleteList
in interface IGreetingsCardDAO
strIdGC
- The comma separated list of greetings cards idsplugin
- The pluginpublic GreetingsCard load(java.lang.String strIdGC, fr.paris.lutece.portal.service.plugin.Plugin plugin)
load
in interface IGreetingsCardDAO
strIdGC
- The identifier of the object GreetingsCardplugin
- The plugin
public void store(GreetingsCard greetingsCard, fr.paris.lutece.portal.service.plugin.Plugin plugin)
store
in interface IGreetingsCardDAO
greetingsCard
- The instance of the GreetingsCard to updateplugin
- The pluginpublic java.util.Collection<GreetingsCard> findAll(fr.paris.lutece.portal.service.plugin.Plugin plugin)
findAll
in interface IGreetingsCardDAO
plugin
- The plugin
public java.util.Collection<GreetingsCard> findByGreetingsCardTemplateId(int nIdGreetingsCardTemplate, fr.paris.lutece.portal.service.plugin.Plugin plugin)
findByGreetingsCardTemplateId
in interface IGreetingsCardDAO
nIdGreetingsCardTemplate
- The greetings card template identifierplugin
- The plugin
public java.util.List<java.lang.String> findDomainNameOfMailSent(GreetingsCardFilter greetingsCardFilter, fr.paris.lutece.portal.service.plugin.Plugin plugin)
findDomainNameOfMailSent
in interface IGreetingsCardDAO
greetingsCardFilter
- The greetings card filterplugin
- The plugin
public java.util.Map<java.lang.String,java.lang.Integer> findNumberOfMailSentByDomain(GreetingsCardFilter greetingsCardFilter, fr.paris.lutece.portal.service.plugin.Plugin plugin)
findNumberOfMailSentByDomain
in interface IGreetingsCardDAO
greetingsCardFilter
- The greetings card filterplugin
- The plugin
public int findNumberTotalOfMailSentWithoutCopy(fr.paris.lutece.portal.service.plugin.Plugin plugin)
findNumberTotalOfMailSentWithoutCopy
in interface IGreetingsCardDAO
plugin
- The plugin
public java.util.Map<java.lang.String,java.lang.Integer> findNumberOfMailReadByDomain(GreetingsCardFilter greetingsCardFilter, fr.paris.lutece.portal.service.plugin.Plugin plugin)
findNumberOfMailReadByDomain
in interface IGreetingsCardDAO
greetingsCardFilter
- The greetings card filterplugin
- The plugin
public java.util.Collection<GreetingsCard> findCardsToSendNotification(fr.paris.lutece.portal.service.plugin.Plugin plugin)
findCardsToSendNotification
in interface IGreetingsCardDAO
plugin
- The plugin
public 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)
findByTemplateAndDate
in interface IGreetingsCardDAO
nIdGreetingsCardTemplate
- Id of the template of greetings cardsdateMin
- Minimum sent datedateMax
- Maximum sent datenResultsLimit
- 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 |