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
Modifier and TypeFieldDescriptionprotected ContentHelper
The content helperprotected ContentTypeExtensionPoint
The extension point for content typesprotected ContentTypesHelper
Content types helperprotected LanguagesManager
Language Managerprotected AmetysObjectResolver
The ametys object resolverprotected ServerCommHelper
Server comm helperprotected UserHelper
User helperprotected WorkflowProvider
Workflow providerFields inherited from class org.apache.cocoon.acting.ServiceableAction
manager
Fields inherited from class org.apache.cocoon.acting.AbstractAction
EMPTY_MAP
-
Constructor Summary
-
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) Get the contents referencing the entry of a reference tablevoid
service
(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
-
-
Constructor Details
-
GetReferencingContentsAction
public GetReferencingContentsAction()
-
-
Method Details
-
service
- Specified by:
service
in interfaceServiceable
- Overrides:
service
in 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) 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 table- Returns:
- The referencing contents
-
getContentData
Get the JSON representation of content- Parameters:
content
- The contentdefaultLocale
- The default locale- Returns:
- The content data
-