Package org.ametys.plugins.odfweb.source
Class ODFWebView
- java.lang.Object
-
- org.ametys.runtime.plugin.component.AbstractLogEnabled
-
- org.ametys.odf.source.DefaultODFView
-
- org.ametys.plugins.odfweb.source.ODFWebView
-
- All Implemented Interfaces:
ODFViewSelector
,LogEnabled
,Serviceable
public class ODFWebView extends DefaultODFView
This implementation of aODFWebView
looks first in the directory skin://stylesheets/catalog/ then defaults toDefaultODFView
.
-
-
Field Summary
-
Fields inherited from class org.ametys.odf.source.DefaultODFView
_resolver
-
Fields inherited from interface org.ametys.odf.source.ODFViewSelector
ROLE
-
-
Constructor Summary
Constructors Constructor Description ODFWebView()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected List<String>
_getDefaultSourceURIs(String pluginName, String filePath)
Get the default URIsprotected List<String>
getLocations(String pluginName, String filePath)
Returns the ordered list of URI to be tested to find the corresponding view.-
Methods inherited from class org.ametys.odf.source.DefaultODFView
getSource, service
-
Methods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabled
getLogger, setLogger
-
-
-
-
Constructor Detail
-
ODFWebView
public ODFWebView()
-
-
Method Detail
-
getLocations
protected List<String> getLocations(String pluginName, String filePath)
Description copied from class:DefaultODFView
Returns the ordered list of URI to be tested to find the corresponding view.- Overrides:
getLocations
in classDefaultODFView
- Parameters:
pluginName
- the plugin namefilePath
- the requested location.- Returns:
- a list of possible URIs for the resource.
-
_getDefaultSourceURIs
protected List<String> _getDefaultSourceURIs(String pluginName, String filePath)
Description copied from class:DefaultODFView
Get the default URIs- Overrides:
_getDefaultSourceURIs
in classDefaultODFView
- Parameters:
pluginName
- The current plugin namefilePath
- the requested location.- Returns:
- a list of URIs
-
-