public class ScheduledSurveyClientSideElement extends StaticClientSideElement implements Contextualizable
ClientSideElement.Script, ClientSideElement.ScriptFile| Modifier and Type | Field and Description |
|---|---|
private Context |
_context |
private AmetysObjectResolver |
_resolver |
_currentUserProvider, _dependencies, _featureName, _id, _pluginName, _rightManager, _rights, _rightsMode, _script| Constructor and Description |
|---|
ScheduledSurveyClientSideElement() |
| Modifier and Type | Method and Description |
|---|---|
private I18nizableText |
_getDateValidDescription(Survey survey) |
private I18nizableText |
_getForthComingDescription(Survey survey,
Date startDate,
Date endDate,
Locale locale) |
private I18nizableText |
_getOutOfDateDescription(Survey survey,
Date endDate,
Locale locale) |
void |
contextualize(Context context) |
Map<String,Object> |
getScheduledDates(String surveyId)
Get the scheduled dates of a survey
|
Map<String,Object> |
getStatus(List<String> surveysId)
Get the survey status
|
void |
service(ServiceManager smanager) |
boolean |
setScheduledDate(List<String> surveyIds,
String startDateAsStr,
String endDateAsStr)
Set date of publication of surveys
|
_configureClass, _configureParameters, _configureScript, configureInitialParameters_configureDependencies, _configureImports, _configureRights, _configureRightsMode, configure, getDependencies, getId, getPluginName, getRights, getScripts, getScripts, hasRight, setPluginInfo, toStringgetLogger, setLoggerprivate AmetysObjectResolver _resolver
public ScheduledSurveyClientSideElement()
public void contextualize(Context context) throws ContextException
contextualize in interface ContextualizableContextExceptionpublic void service(ServiceManager smanager) throws ServiceException
service in interface Serviceableservice in class StaticFileImportsClientSideElementServiceExceptionpublic Map<String,Object> getScheduledDates(String surveyId)
surveyId - the id of the surveypublic boolean setScheduledDate(List<String> surveyIds, String startDateAsStr, String endDateAsStr)
surveyIds - The ids of surveys to updatestartDateAsStr - The start date. Can be null.endDateAsStr - The end date. Can be null.public Map<String,Object> getStatus(List<String> surveysId)
surveysId - The survey idsprivate I18nizableText _getDateValidDescription(Survey survey)
private I18nizableText _getOutOfDateDescription(Survey survey, Date endDate, Locale locale)
private I18nizableText _getForthComingDescription(Survey survey, Date startDate, Date endDate, Locale locale)