public class CampaignService extends Object implements ICampaignService
| Modifier and Type | Field and Description |
|---|---|
static String |
LAST_CAMPAIGN_ID |
| Constructor and Description |
|---|
CampaignService() |
| Modifier and Type | Method and Description |
|---|---|
fr.paris.lutece.util.ReferenceList |
getCampaignsReferenceList()
Load the data of all the campaign objects and returns them as a referenceList
|
static ICampaignService |
getInstance() |
Campaign |
getLastCampaign() |
boolean |
isAfterBeginning(String phase) |
boolean |
isAfterBeginning(String campain,
String phase) |
boolean |
isAfterEnd(String phase) |
boolean |
isAfterEnd(String campain,
String phase) |
boolean |
isBeforeBeginning(String phase) |
boolean |
isBeforeBeginning(String campain,
String phase) |
boolean |
isBeforeEnd(String phase) |
boolean |
isBeforeEnd(String campain,
String phase) |
boolean |
isDuring(String phase) |
boolean |
isDuring(String campain,
String phase) |
void |
reset() |
public static final String LAST_CAMPAIGN_ID
public static ICampaignService getInstance()
public void reset()
reset in interface ICampaignServicepublic boolean isDuring(String campain, String phase)
isDuring in interface ICampaignServicecampain - Dataphase - Datapublic boolean isDuring(String phase)
isDuring in interface ICampaignServicephase - Datapublic boolean isBeforeEnd(String campain, String phase)
isBeforeEnd in interface ICampaignServicecampain - Dataphase - Datapublic boolean isBeforeEnd(String phase)
isBeforeEnd in interface ICampaignServicephase - Datapublic boolean isAfterBeginning(String campain, String phase)
isAfterBeginning in interface ICampaignServicecampain - Dataphase - Datapublic boolean isAfterBeginning(String phase)
isAfterBeginning in interface ICampaignServicephase - Datapublic boolean isBeforeBeginning(String campain, String phase)
isBeforeBeginning in interface ICampaignServicecampain - Dataphase - Datapublic boolean isBeforeBeginning(String phase)
isBeforeBeginning in interface ICampaignServicephase - Datapublic boolean isAfterEnd(String campain, String phase)
isAfterEnd in interface ICampaignServicecampain - Dataphase - Datapublic boolean isAfterEnd(String phase)
isAfterEnd in interface ICampaignServicephase - Datapublic Campaign getLastCampaign()
getLastCampaign in interface ICampaignServicepublic fr.paris.lutece.util.ReferenceList getCampaignsReferenceList()
ICampaignServicegetCampaignsReferenceList in interface ICampaignServiceCopyright © 2022 City of Paris. All rights reserved.