public class GetReferencingContentsAction extends ServiceableAction
| Modifier and Type | Field and Description |
|---|---|
protected ContentHelper |
_contentHelper
The content helper
|
protected ContentTypeExtensionPoint |
_contentTypeExtensionPoint
The extension point for content types
|
protected ContentTypesHelper |
_contentTypesHelper
Content types helper
|
protected LanguagesManager |
_languagesManager
Language Manager
|
protected AmetysObjectResolver |
_resolver
The ametys object resolver
|
protected ServerCommHelper |
_serverCommHelper
Server comm helper
|
protected UserHelper |
_userHelper
User helper
|
protected WorkflowProvider |
_workflowProvider
Workflow provider
|
managerEMPTY_MAP| Constructor and Description |
|---|
GetReferencingContentsAction() |
| Modifier and Type | Method and Description |
|---|---|
private List<I18nizableText> |
_contentTypes2json(Content content) |
private boolean |
_filter(Content content,
Content refContent) |
private com.opensymphony.workflow.loader.StepDescriptor |
_getStepDescriptor(WorkflowAwareContent content,
int stepId) |
private Map<String,Object> |
_language2json(Content content) |
private Map<String,Object> |
_workflowStep2json(Content content) |
Map |
act(Redirector redirector,
SourceResolver resolver,
Map objectModel,
String source,
Parameters parameters) |
protected Map<String,Object> |
getContentData(Content content,
Locale defaultLocale)
Get the JSON representation of content
|
protected Collection<Content> |
getReferencingContents(String contentId,
boolean excludeContentOfSameType)
Get the contents referencing the entry of a reference table
|
void |
service(ServiceManager smanager) |
enableLogging, getLogger, setupLogger, setupLogger, setupLoggerprotected ContentTypeExtensionPoint _contentTypeExtensionPoint
protected ContentTypesHelper _contentTypesHelper
protected ContentHelper _contentHelper
protected ServerCommHelper _serverCommHelper
protected LanguagesManager _languagesManager
protected WorkflowProvider _workflowProvider
protected UserHelper _userHelper
protected AmetysObjectResolver _resolver
public GetReferencingContentsAction()
public void service(ServiceManager smanager) throws ServiceException
service in interface Serviceableservice in class ServiceableActionServiceExceptionpublic Map act(Redirector redirector, SourceResolver resolver, Map objectModel, String source, Parameters parameters) throws Exception
Exceptionprotected Collection<Content> getReferencingContents(String contentId, boolean excludeContentOfSameType)
contentId - The id of the entryexcludeContentOfSameType - true to exclude the contents of the same reference tableprotected Map<String,Object> getContentData(Content content, Locale defaultLocale)
content - The contentdefaultLocale - The default localeprivate List<I18nizableText> _contentTypes2json(Content content)
private Map<String,Object> _language2json(Content content)
private Map<String,Object> _workflowStep2json(Content content)
private com.opensymphony.workflow.loader.StepDescriptor _getStepDescriptor(WorkflowAwareContent content, int stepId)