Class GetReferencingContentsAction
java.lang.Object
org.apache.avalon.framework.logger.AbstractLogEnabled
org.apache.cocoon.acting.AbstractAction
org.apache.cocoon.acting.ServiceableAction
org.ametys.cms.content.referencetable.search.GetReferencingContentsAction
- All Implemented Interfaces:
Component,LogEnabled,Serviceable,Action
Action for getting information about the referencing contents of a content
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ContentHelperThe content helperprotected ContentTypeExtensionPointThe extension point for content typesprotected ContentTypesHelperContent types helperprotected JSONUtilsJSON Utilsprotected LanguagesManagerLanguage Managerprotected AmetysObjectResolverThe ametys object resolverprotected ServerCommHelperServer comm helperprotected UserHelperUser helperprotected WorkflowProviderWorkflow providerFields inherited from class org.apache.cocoon.acting.ServiceableAction
managerFields inherited from class org.apache.cocoon.acting.AbstractAction
EMPTY_MAP -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionact(Redirector redirector, SourceResolver resolver, Map objectModel, String source, Parameters parameters) getContentData(Content content, Locale defaultLocale) Get the JSON representation of contentprotected Collection<Content> getReferencingContents(String contentId, boolean excludeContentOfSameType, Set<String> filteredCTypes) Get the contents referencing the entry of a reference tablevoidservice(ServiceManager smanager) Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
-
Field Details
-
_contentTypeExtensionPoint
The extension point for content types -
_contentTypesHelper
Content types helper -
_contentHelper
The content helper -
_serverCommHelper
Server comm helper -
_languagesManager
Language Manager -
_workflowProvider
Workflow provider -
_userHelper
User helper -
_resolver
The ametys object resolver -
_jsonUtils
JSON Utils
-
-
Constructor Details
-
GetReferencingContentsAction
public GetReferencingContentsAction()
-
-
Method Details
-
service
- Specified by:
servicein interfaceServiceable- Overrides:
servicein classServiceableAction- Throws:
ServiceException
-
act
public Map act(Redirector redirector, SourceResolver resolver, Map objectModel, String source, Parameters parameters) throws Exception - Throws:
Exception
-
getReferencingContents
protected Collection<Content> getReferencingContents(String contentId, boolean excludeContentOfSameType, Set<String> filteredCTypes) Get the contents referencing the entry of a reference table- Parameters:
contentId- The id of the entryexcludeContentOfSameType- true to exclude the contents of the same reference tablefilteredCTypes- The filtered content types. If empty no filter on content types should be applied- Returns:
- The referencing contents
-
getContentData
Get the JSON representation of content- Parameters:
content- The contentdefaultLocale- The default locale- Returns:
- The content data
-