Package org.ametys.web.source
Class WebViewSelector
java.lang.Object
org.ametys.runtime.plugin.component.AbstractLogEnabled
org.ametys.cms.source.DefaultViewSelector
org.ametys.web.source.WebViewSelector
- All Implemented Interfaces:
ViewSelector
,LogEnabled
,Serviceable
Web implementation of
ViewSelector
.
First looks the wanted file in the skin. If it's not present, it will look
in the web plugin, then in the context, then in the cms plugin.-
Field Summary
Fields inherited from class org.ametys.cms.source.DefaultViewSelector
_resolver
Fields inherited from interface org.ametys.cms.source.ViewSelector
ROLE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription_getDefaultSourceURIs
(String pluginName, String filePath) Get the default URIsgetLocations
(String pluginName, String filePath) Returns the ordered list of URI to be tested to find the corresponding view.Methods inherited from class org.ametys.cms.source.DefaultViewSelector
getSource, service
Methods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabled
getLogger, setLogger
-
Constructor Details
-
WebViewSelector
public WebViewSelector()
-
-
Method Details
-
getLocations
Description copied from class:DefaultViewSelector
Returns the ordered list of URI to be tested to find the corresponding view.- Overrides:
getLocations
in classDefaultViewSelector
- Parameters:
pluginName
- The current plugin namefilePath
- the requested location.- Returns:
- a list of possible URIs for the resource.
-
_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
-