public class DefaultContentView extends AbstractLogEnabled implements ContentView, Serviceable
ContentView
Will first look in directory context://WEB-INF/stylesheets/content/article/article-[view].xsl
And if the file does not exist will search in plugin:[currentPluginName]://stylesheets/content/article/article-[view].xsl| Modifier and Type | Field and Description |
|---|---|
protected ContentTypesHelper |
_contentTypesHelper
Helper for content types
|
protected SourceResolver |
_resolver
The source resolver
|
ROLE| Constructor and Description |
|---|
DefaultContentView() |
| Modifier and Type | Method and Description |
|---|---|
protected List<String> |
_getSourceURIs(String location,
String contentType,
String view,
String format,
String pluginName)
Returns the ordered list of URI to be tested to find a stylesheet to render the Content.
|
Source |
getSource(String location,
String contentType,
String view,
String format,
String pluginName)
Get the file source for rendering a content
|
void |
service(ServiceManager manager) |
enableLogging, getLogger, setupLogger, setupLogger, setupLoggerprotected SourceResolver _resolver
protected ContentTypesHelper _contentTypesHelper
public DefaultContentView()
public void service(ServiceManager manager) throws ServiceException
service in interface ServiceableServiceExceptionpublic Source getSource(String location, String contentType, String view, String format, String pluginName) throws IOException
ContentViewgetSource in interface ContentViewlocation - the requested locationcontentType - the type of the current Contentview - the content viewformat - the format of the output (html, pdf, ...)pluginName - the plugin nameIOException - if the Source cannot be resolvedprotected List<String> _getSourceURIs(String location, String contentType, String view, String format, String pluginName)
location - the requested locationcontentType - the content type for renderingview - the content viewformat - the format of the output (html, pdf, ...)pluginName - the plugin name