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
public class GetReferencingContentsAction extends ServiceableAction
Action for getting information about the referencing contents of a content
-
-
Field Summary
Fields Modifier and Type Field Description protected ContentHelper
_contentHelper
The content helperprotected ContentTypeExtensionPoint
_contentTypeExtensionPoint
The extension point for content typesprotected ContentTypesHelper
_contentTypesHelper
Content types helperprotected LanguagesManager
_languagesManager
Language Managerprotected AmetysObjectResolver
_resolver
The ametys object resolverprotected ServerCommHelper
_serverCommHelper
Server comm helperprotected UserHelper
_userHelper
User helperprotected WorkflowProvider
_workflowProvider
Workflow provider-
Fields inherited from class org.apache.cocoon.acting.ServiceableAction
manager
-
Fields inherited from class org.apache.cocoon.acting.AbstractAction
EMPTY_MAP
-
-
Constructor Summary
Constructors Constructor Description GetReferencingContentsAction()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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 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 Detail
-
_contentTypeExtensionPoint
protected ContentTypeExtensionPoint _contentTypeExtensionPoint
The extension point for content types
-
_contentTypesHelper
protected ContentTypesHelper _contentTypesHelper
Content types helper
-
_contentHelper
protected ContentHelper _contentHelper
The content helper
-
_serverCommHelper
protected ServerCommHelper _serverCommHelper
Server comm helper
-
_languagesManager
protected LanguagesManager _languagesManager
Language Manager
-
_workflowProvider
protected WorkflowProvider _workflowProvider
Workflow provider
-
_userHelper
protected UserHelper _userHelper
User helper
-
_resolver
protected AmetysObjectResolver _resolver
The ametys object resolver
-
-
Constructor Detail
-
GetReferencingContentsAction
public GetReferencingContentsAction()
-
-
Method Detail
-
service
public void service(ServiceManager smanager) throws ServiceException
- 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
-
-