Package org.ametys.web.source
Class WebContentView
- java.lang.Object
-
- org.apache.avalon.framework.logger.AbstractLogEnabled
-
- org.ametys.cms.source.DefaultContentView
-
- org.ametys.web.source.WebContentView
-
- All Implemented Interfaces:
ContentView,Contextualizable,LogEnabled,Serviceable
public class WebContentView extends DefaultContentView
This implementation of aContentViewlooks first in the directory skin://stylesheets/content/[cType]/[cType]-[view].[extension] then skin://stylesheets/content/[cType]/[cType].[extension] then defaults toDefaultContentView.
-
-
Field Summary
-
Fields inherited from class org.ametys.cms.source.DefaultContentView
_contentTypeEP, _contentTypesHelper, _context, _dynamicContentTypeDescriptorEP, _resolver
-
Fields inherited from interface org.ametys.cms.source.ContentView
ROLE
-
-
Constructor Summary
Constructors Constructor Description WebContentView()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected List<String>_getDefaultSourceURIs(String pluginName, String formatSuffix, String extension)Get the URIs of default stylesheetsprotected List<String>_getSourceURIsForContentType(String contentTypeAlias, String contentTypeId, String view, String formatSuffix, String extension)get source for a non dynamic content typeprotected List<String>_getSourceURIsForDynamicContentType(String contentTypeAlias, String view, String formatSuffix, String pluginName, String extension)get source for a dynamic content type-
Methods inherited from class org.ametys.cms.source.DefaultContentView
_getDefaultSourceURIsForContentType, _getSourceURIs, _getSourceURIsForSuperTypes, contextualize, getSource, service
-
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
-
-
-
-
Constructor Detail
-
WebContentView
public WebContentView()
-
-
Method Detail
-
_getDefaultSourceURIs
protected List<String> _getDefaultSourceURIs(String pluginName, String formatSuffix, String extension)
Description copied from class:DefaultContentViewGet the URIs of default stylesheets- Overrides:
_getDefaultSourceURIsin classDefaultContentView- Parameters:
pluginName- The current plugin nameformatSuffix- the format of the output (html, pdf, ...)extension- the extension (xsl, xml, ...)- Returns:
- a list of URIs
-
_getSourceURIsForDynamicContentType
protected List<String> _getSourceURIsForDynamicContentType(String contentTypeAlias, String view, String formatSuffix, String pluginName, String extension)
Description copied from class:DefaultContentViewget source for a dynamic content type- Overrides:
_getSourceURIsForDynamicContentTypein classDefaultContentView- Parameters:
contentTypeAlias- the content type alias for renderingview- the content viewformatSuffix- the format of the output (html, pdf, ...)pluginName- the plugin nameextension- the extension (xsl, xml, ...)- Returns:
- the list
-
_getSourceURIsForContentType
protected List<String> _getSourceURIsForContentType(String contentTypeAlias, String contentTypeId, String view, String formatSuffix, String extension)
Description copied from class:DefaultContentViewget source for a non dynamic content type- Overrides:
_getSourceURIsForContentTypein classDefaultContentView- Parameters:
contentTypeAlias- the content type alias for renderingcontentTypeId- the content type full IDview- the content viewformatSuffix- the format of the output (html, pdf, ...)extension- the extension (xsl, xml, ...)- Returns:
- the list
-
-