public class GetContentTypesListAction extends ServiceableAction
Modifier and Type | Field and Description |
---|---|
protected ContentTypeExtensionPoint |
_contentTypeExtensionPoint
Content type extension point.
|
protected RightManager |
_rightManager
The rights manager
|
protected RootContentHelper |
_rootContentHelper
Helper for root content
|
protected CurrentUserProvider |
_userProvider
The current user provider
|
manager
EMPTY_MAP
Constructor and Description |
---|
GetContentTypesListAction() |
Modifier and Type | Method and Description |
---|---|
private void |
_addIfNotPresent(Collection<String> collection,
String value) |
protected boolean |
_hasRight(ContentType contentType)
Test if the current user has the right needed by the content type to create a content.
|
Map |
act(Redirector redirector,
SourceResolver resolver,
Map objectModel,
String source,
Parameters parameters) |
protected Map<String,Object> |
getContentTypeProperties(ContentType contentType)
Get the content type properties
|
void |
service(ServiceManager smanager) |
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
protected ContentTypeExtensionPoint _contentTypeExtensionPoint
protected CurrentUserProvider _userProvider
protected RightManager _rightManager
protected RootContentHelper _rootContentHelper
public GetContentTypesListAction()
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> getContentTypeProperties(ContentType contentType)
contentType
- The content typeprotected boolean _hasRight(ContentType contentType)
contentType
- The content typeprivate void _addIfNotPresent(Collection<String> collection, String value)