Class ScheduledSurveyClientSideElement
java.lang.Object
org.ametys.runtime.plugin.component.AbstractLogEnabled
org.ametys.core.ui.StaticFileImportsClientSideElement
org.ametys.core.ui.StaticClientSideElement
org.ametys.plugins.survey.clientsideelement.ScheduledSurveyClientSideElement
- All Implemented Interfaces:
ClientSideElement,LogEnabled,PluginAware,Configurable,Contextualizable,Serviceable
public class ScheduledSurveyClientSideElement
extends StaticClientSideElement
implements Contextualizable
ClientSideElement for the Scheduled Survey
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.ametys.core.ui.ClientSideElement
ClientSideElement.Script, ClientSideElement.ScriptFile -
Field Summary
Fields inherited from class org.ametys.core.ui.StaticFileImportsClientSideElement
_currentUserProvider, _dependencies, _featureName, _id, _pluginName, _rightManager, _rights, _rightsMode, _script -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcontextualize(Context context) getScheduledDates(String surveyId) Get the scheduled dates of a surveyGet the survey statusvoidservice(ServiceManager smanager) booleansetScheduledDate(List<String> surveyIds, String startDateAsStr, String endDateAsStr) Set date of publication of surveysMethods inherited from class org.ametys.core.ui.StaticClientSideElement
_configureClass, _configureParameters, _configureScript, configureInitialParametersMethods inherited from class org.ametys.core.ui.StaticFileImportsClientSideElement
_configureDependencies, _configureImports, _configureRights, _configureRightsMode, configure, getDependencies, getId, getPluginName, getRights, getScripts, getScripts, hasRight, setPluginInfo, toStringMethods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabled
getLogger, setLogger
-
Constructor Details
-
ScheduledSurveyClientSideElement
public ScheduledSurveyClientSideElement()
-
-
Method Details
-
contextualize
- Specified by:
contextualizein interfaceContextualizable- Throws:
ContextException
-
service
- Specified by:
servicein interfaceServiceable- Overrides:
servicein classStaticFileImportsClientSideElement- Throws:
ServiceException
-
getScheduledDates
Get the scheduled dates of a survey- Parameters:
surveyId- the id of the survey- Returns:
- a map
-
setScheduledDate
Set date of publication of surveys- Parameters:
surveyIds- The ids of surveys to updatestartDateAsStr- The start date. Can be null.endDateAsStr- The end date. Can be null.- Returns:
- true if operation has succeeded.
-
getStatus
Get the survey status- Parameters:
surveysId- The survey ids- Returns:
- the surveys status
-