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
public class CalendarButtonClientSideElement extends StaticClientSideElement
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
Fields Modifier and Type Field Description protected AmetysObjectResolver
_resolver
The ametys resolverprotected WorkflowProvider
_workflowProvider
The workflow provider-
Fields inherited from class org.ametys.core.ui.StaticFileImportsClientSideElement
_currentUserProvider, _dependencies, _featureName, _id, _pluginName, _rightManager, _rights, _rightsMode, _script
-
-
Constructor Summary
Constructors Constructor Description CalendarButtonClientSideElement()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
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 Detail
-
_workflowProvider
protected WorkflowProvider _workflowProvider
The workflow provider
-
_resolver
protected AmetysObjectResolver _resolver
The ametys resolver
-
-
Constructor Detail
-
CalendarButtonClientSideElement
public CalendarButtonClientSideElement()
-
-
Method Detail
-
service
public void service(ServiceManager serviceManager) throws ServiceException
- Specified by:
service
in interfaceServiceable
- Overrides:
service
in classStaticFileImportsClientSideElement
- Throws:
ServiceException
-
canInitWorkflow
public boolean canInitWorkflow(String calendarId)
Indicates if the current user can initialize the calendar workflow- Parameters:
calendarId
- The calendar identifier- Returns:
- true if initialization is possible
-
canInitWorkflow
public boolean canInitWorkflow(Calendar calendar)
Indicates if the current user can initialize the calendar workflow- Parameters:
calendar
- The calendar- Returns:
- true if initialization is possible
-
canEditWorkflow
public boolean canEditWorkflow(String eventId)
Indicates if the current user can edit an event- Parameters:
eventId
- The event identifier- Returns:
- true if edition is possible
-
canEditWorkflow
public boolean canEditWorkflow(CalendarEvent event)
Indicates if the current user can edit an event- Parameters:
event
- The event- Returns:
- true if edition is possible
-
-