Package org.ametys.cms.source
Class DefaultViewSelector
java.lang.Object
org.ametys.runtime.plugin.component.AbstractLogEnabled
org.ametys.core.source.DefaultViewSelector
org.ametys.cms.source.DefaultViewSelector
- All Implemented Interfaces:
ViewSelector
,LogEnabled
,Serviceable
- Direct Known Subclasses:
WebViewSelector
CMS implementation of
ViewSelector
.
First looks the wanted file in context://WEB-INF/param/view/path_to_file
If it's not present, it will look in the current plugin, then in cms plugin-
Field Summary
Fields inherited from class org.ametys.core.source.DefaultViewSelector
_resolver
Fields inherited from interface org.ametys.core.source.ViewSelector
ROLE
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription_getDefaultSourceURIs
(String pluginName, String filePath) Get the default URIsMethods inherited from class org.ametys.core.source.DefaultViewSelector
getLocations, getSource, service
Methods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabled
getLogger, setLogger
-
Constructor Details
-
DefaultViewSelector
public DefaultViewSelector()
-
-
Method Details
-
_getDefaultSourceURIs
Description copied from class:DefaultViewSelector
Get the default URIs- Overrides:
_getDefaultSourceURIs
in classDefaultViewSelector
- Parameters:
pluginName
- The current plugin namefilePath
- the requested location.- Returns:
- a list of URIs
-