Package org.ametys.web.clientsideelement
Class ScheduledPageClientSideElement
java.lang.Object
org.ametys.runtime.plugin.component.AbstractLogEnabled
org.ametys.core.ui.StaticFileImportsClientSideElement
org.ametys.core.ui.StaticClientSideElement
org.ametys.web.clientsideelement.AbstractPageClientSideElement
org.ametys.web.clientsideelement.ScheduledPageClientSideElement
- All Implemented Interfaces:
ClientSideElement
,LogEnabled
,PluginAware
,Initializable
,Configurable
,Serviceable
public class ScheduledPageClientSideElement
extends AbstractPageClientSideElement
implements Initializable
This
ClientSideElement
creates a button representing the schedule publication status of a page.-
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.web.clientsideelement.AbstractPageClientSideElement
_resolver, _synchronizeComponent
Fields inherited from class org.ametys.core.ui.StaticFileImportsClientSideElement
_currentUserProvider, _dependencies, _featureName, _id, _pluginName, _rightManager, _rights, _rightsMode, _script
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetPublicationDates
(String pageId) Get the publication dates of a pagevoid
void
service
(ServiceManager smanager) boolean
setPublicationDate
(List<String> pageIds, String startDateAsStr, String endDateAsStr) Set date of publication of pagesMethods inherited from class org.ametys.web.clientsideelement.AbstractPageClientSideElement
getAllRightPageDescription, getNoModifiablePageDescription, getNoRightPageDescription, getPageDefaultParameters, hasRight
Methods inherited from class org.ametys.core.ui.StaticClientSideElement
_configureClass, _configureParameters, _configureScript, configureInitialParameters
Methods inherited from class org.ametys.core.ui.StaticFileImportsClientSideElement
_configureDependencies, _configureImports, _configureRights, _configureRightsMode, configure, getDependencies, getId, getPluginName, getRights, getScripts, getScripts, hasRight, setPluginInfo, toString
Methods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabled
getLogger, setLogger
-
Constructor Details
-
ScheduledPageClientSideElement
public ScheduledPageClientSideElement()
-
-
Method Details
-
service
- Specified by:
service
in interfaceServiceable
- Overrides:
service
in classAbstractPageClientSideElement
- Throws:
ServiceException
-
initialize
- Specified by:
initialize
in interfaceInitializable
- Throws:
Exception
-
getPublicationDates
Get the publication dates of a page- Parameters:
pageId
- the id of the page- Returns:
- a map
-
setPublicationDate
Set date of publication of pages- Parameters:
pageIds
- The ids of pages to updatestartDateAsStr
- The start date. Can be null.endDateAsStr
- The end date. Can be null.- Returns:
- true if operation has succeeded.
-