public class CalendarButtonClientSideElement extends StaticClientSideElement
ClientSideElement.Script, ClientSideElement.ScriptFile| Modifier and Type | Field and Description |
|---|---|
protected AmetysObjectResolver |
_resolver
The ametys resolver
|
protected WorkflowProvider |
_workflowProvider
The workflow provider
|
_currentUserProvider, _dependencies, _featureName, _id, _pluginName, _rightManager, _rights, _rightsMode, _script| Constructor and Description |
|---|
CalendarButtonClientSideElement() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canEditWorkflow(CalendarEvent event)
Indicates if the current user can edit an event
|
boolean |
canEditWorkflow(String eventId)
Indicates if the current user can edit an event
|
boolean |
canInitWorkflow(Calendar calendar)
Indicates if the current user can initialize the calendar workflow
|
boolean |
canInitWorkflow(String calendarId)
Indicates if the current user can initialize the calendar workflow
|
void |
service(ServiceManager serviceManager) |
_configureClass, _configureParameters, _configureScript, configureInitialParameters_configureDependencies, _configureImports, _configureRights, _configureRightsMode, configure, getDependencies, getId, getPluginName, getRights, getScripts, getScripts, hasRight, setPluginInfo, toStringgetLogger, setLoggerprotected WorkflowProvider _workflowProvider
protected AmetysObjectResolver _resolver
public CalendarButtonClientSideElement()
public void service(ServiceManager serviceManager) throws ServiceException
service in interface Serviceableservice in class StaticFileImportsClientSideElementServiceExceptionpublic boolean canInitWorkflow(String calendarId)
calendarId - The calendar identifierpublic boolean canInitWorkflow(Calendar calendar)
calendar - The calendarpublic boolean canEditWorkflow(String eventId)
eventId - The event identifierpublic boolean canEditWorkflow(CalendarEvent event)
event - The event