Class CalendarButtonClientSideElement
java.lang.Object
org.ametys.runtime.plugin.component.AbstractLogEnabled
org.ametys.core.ui.StaticFileImportsClientSideElement
org.ametys.core.ui.StaticClientSideElement
org.ametys.plugins.explorer.calendars.clientside.CalendarButtonClientSideElement
- All Implemented Interfaces:
ClientSideElement
,LogEnabled
,PluginAware
,Configurable
,Serviceable
Button client side element for calendars
Used for add and edit event buttons
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.ametys.core.ui.ClientSideElement
ClientSideElement.Script, ClientSideElement.ScriptFile
-
Field Summary
Modifier and TypeFieldDescriptionprotected AmetysObjectResolver
The ametys resolverprotected WorkflowProvider
The workflow providerFields inherited from class org.ametys.core.ui.StaticFileImportsClientSideElement
_currentUserProvider, _dependencies, _featureName, _id, _pluginName, _rightManager, _rights, _rightsMode, _script
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
canEditWorkflow
(String eventId) Indicates if the current user can edit an eventboolean
canEditWorkflow
(CalendarEvent event) Indicates if the current user can edit an eventboolean
canInitWorkflow
(String calendarId) Indicates if the current user can initialize the calendar workflowboolean
canInitWorkflow
(Calendar calendar) Indicates if the current user can initialize the calendar workflowvoid
service
(ServiceManager serviceManager) 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
-
Field Details
-
_workflowProvider
The workflow provider -
_resolver
The ametys resolver
-
-
Constructor Details
-
CalendarButtonClientSideElement
public CalendarButtonClientSideElement()
-
-
Method Details
-
service
- Specified by:
service
in interfaceServiceable
- Overrides:
service
in classStaticFileImportsClientSideElement
- Throws:
ServiceException
-
canInitWorkflow
Indicates if the current user can initialize the calendar workflow- Parameters:
calendarId
- The calendar identifier- Returns:
- true if initialization is possible
-
canInitWorkflow
Indicates if the current user can initialize the calendar workflow- Parameters:
calendar
- The calendar- Returns:
- true if initialization is possible
-
canEditWorkflow
Indicates if the current user can edit an event- Parameters:
eventId
- The event identifier- Returns:
- true if edition is possible
-
canEditWorkflow
Indicates if the current user can edit an event- Parameters:
event
- The event- Returns:
- true if edition is possible
-