Class TaskJSONHelper
- java.lang.Object
-
- org.ametys.runtime.plugin.component.AbstractLogEnabled
-
- org.ametys.plugins.workspaces.tasks.json.TaskJSONHelper
-
- All Implemented Interfaces:
LogEnabled
,Component
,Serviceable
public class TaskJSONHelper extends AbstractLogEnabled implements Serviceable, Component
Helper to convert task to JSON
-
-
Field Summary
Fields Modifier and Type Field Description protected PopulationContextHelper
_populationContextHelper
The population context helperprotected ProjectMemberManager
_projectMemberManager
The project member managerprotected ProjectTagProviderExtensionPoint
_tagProviderExtensionPoint
The tag provider extension pointprotected UserHelper
_userHelper
The user helperprotected UserManager
_userManager
The user managerstatic String
ROLE
The Avalon role
-
Constructor Summary
Constructors Constructor Description TaskJSONHelper()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
service(ServiceManager manager)
Map<String,Object>
taskAsJSON(Task task, String lang, String siteName)
Task as JSON-
Methods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabled
getLogger, setLogger
-
-
-
-
Field Detail
-
_userHelper
protected UserHelper _userHelper
The user helper
-
_projectMemberManager
protected ProjectMemberManager _projectMemberManager
The project member manager
-
_userManager
protected UserManager _userManager
The user manager
-
_populationContextHelper
protected PopulationContextHelper _populationContextHelper
The population context helper
-
_tagProviderExtensionPoint
protected ProjectTagProviderExtensionPoint _tagProviderExtensionPoint
The tag provider extension point
-
-
Constructor Detail
-
TaskJSONHelper
public TaskJSONHelper()
-
-
Method Detail
-
service
public void service(ServiceManager manager) throws ServiceException
- Specified by:
service
in interfaceServiceable
- Throws:
ServiceException
-
-