Class TaskJSONHelper
java.lang.Object
org.ametys.runtime.plugin.component.AbstractLogEnabled
org.ametys.plugins.workspaces.tasks.json.TaskJSONHelper
- All Implemented Interfaces:
LogEnabled
,Component
,Serviceable
Helper to convert task to JSON
-
Field Summary
Modifier and TypeFieldDescriptionprotected PopulationContextHelper
The population context helperprotected ProjectMemberManager
The project member managerprotected ProjectTagProviderExtensionPoint
The tag provider extension pointprotected UserHelper
The user helperprotected UserManager
The user managerstatic final String
The Avalon role -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
service
(ServiceManager manager) taskAsJSON
(Task task, String lang, String siteName) Task as JSONMethods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabled
getLogger, setLogger
-
Field Details
-
ROLE
The Avalon role -
_userHelper
The user helper -
_projectMemberManager
The project member manager -
_userManager
The user manager -
_populationContextHelper
The population context helper -
_tagProviderExtensionPoint
The tag provider extension point
-
-
Constructor Details
-
TaskJSONHelper
public TaskJSONHelper()
-
-
Method Details
-
service
- Specified by:
service
in interfaceServiceable
- Throws:
ServiceException
-
taskAsJSON
Task as JSON- Parameters:
task
- the tasklang
- the languagesiteName
- the site name- Returns:
- the task as JSON
-