public class GetCommentsAction extends ServiceableAction
Modifier and Type | Field and Description |
---|---|
protected ContentHelper |
_contentHelper
The content helper
|
protected CurrentUserProvider |
_currentUserProvider
The current user provider
|
protected AmetysObjectResolver |
_resolver
The ametys object resolver
|
protected RightManager |
_rightManager
The right manager
|
manager
EMPTY_MAP
Constructor and Description |
---|
GetCommentsAction() |
Modifier and Type | Method and Description |
---|---|
protected Map<String,Object> |
_comment2json(Comment comment,
Content content)
Get the JSON representation of a comment
|
protected Map<String,Object> |
_content2json(Content content,
UserIdentity user)
Get the JSON representation of a content
|
Map |
act(Redirector redirector,
SourceResolver resolver,
Map objectModel,
String source,
Parameters parameters) |
void |
service(ServiceManager smanager) |
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
protected AmetysObjectResolver _resolver
protected RightManager _rightManager
protected CurrentUserProvider _currentUserProvider
protected ContentHelper _contentHelper
public GetCommentsAction()
public void service(ServiceManager smanager) throws ServiceException
service
in interface Serviceable
service
in class ServiceableAction
ServiceException
public Map act(Redirector redirector, SourceResolver resolver, Map objectModel, String source, Parameters parameters) throws Exception
Exception
protected Map<String,Object> _content2json(Content content, UserIdentity user)
content
- The contentuser
- the current user