Package org.ametys.web.content
Class ContentHelper
java.lang.Object
org.ametys.runtime.plugin.component.AbstractLogEnabled
org.ametys.cms.content.ContentHelper
org.ametys.web.content.ContentHelper
- All Implemented Interfaces:
LogEnabled,Initializable,Component,Contextualizable,Serviceable
Helper for
Content-
Field Summary
Fields inherited from class org.ametys.cms.content.ContentHelper
_baseURL, _context, _resolver, ROLE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetContentBOUrl(Content content, Map<String, Object> contextualParameters) Get the content URL in back officegetContentViewUrlParameters(Content content, String viewName, String format, Map<String, String> additionalParams) Get the needed url parameters for a content viewvoidservice(ServiceManager smanager) Methods inherited from class org.ametys.cms.content.ContentHelper
addContentType, addMixinType, contextualize, getContentAttributeDefinitionsAsJSON, getContentAttributeDefinitionsAsJSON, getContentEditionInformation, getContentHtmlViewUrl, getContentHtmlViewUrl, getContentTypes, getContentTypes, getContentViewAsJSON, getContentViewUrl, getContentViewUrl, getContentViewUrlParameters, getDefaultWorkflowName, getGlobalValidators, getReferencingContents, getTargetContent, getTargetContents, getTitle, getTitleVariants, getUnknownContentTypeIds, getUnknownContentTypeIds, getValue, hasIndexingReferences, hasReferencingContents, initialize, isArchivedContent, isMultilingual, isReferenceTable, isSimple, removeContentType, removeMixinType, validateContentMethods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabled
getLogger, setLogger
-
Constructor Details
-
ContentHelper
public ContentHelper()
-
-
Method Details
-
service
- Specified by:
servicein interfaceServiceable- Overrides:
servicein classContentHelper- Throws:
ServiceException
-
getContentViewUrlParameters
public Map<String,String> getContentViewUrlParameters(Content content, String viewName, String format, Map<String, String> additionalParams) Description copied from class:ContentHelperGet the needed url parameters for a content view- Overrides:
getContentViewUrlParametersin classContentHelper- Parameters:
content- the contentviewName- the view nameformat- the output format (html, xml, doc, pdf, ...)additionalParams- the additional parameters. Can be empty- Returns:
- the uri parameters
-
getContentBOUrl
Description copied from class:ContentHelperGet the content URL in back office- Overrides:
getContentBOUrlin classContentHelper- Parameters:
content- the contentcontextualParameters- the contextual parameters- Returns:
- the content URL
-