Package org.ametys.web.source
Class WebViewSelector
java.lang.Object
org.ametys.runtime.plugin.component.AbstractLogEnabled
org.ametys.core.source.DefaultViewSelector
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.core.source.DefaultViewSelector
_resolverFields 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 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.core.source.DefaultViewSelector
getSource, serviceMethods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabled
getLogger, setLogger
-
Constructor Details
-
WebViewSelector
public WebViewSelector()
-
-
Method Details
-
getLocations
Description copied from class:DefaultViewSelectorReturns the ordered list of URI to be tested to find the corresponding view.- Overrides:
getLocationsin classDefaultViewSelector- Parameters:
pluginName- The current plugin namefilePath- the requested location.- Returns:
- a list of possible URIs for the resource.
-
_getDefaultSourceURIs
Description copied from class:DefaultViewSelectorGet the default URIs- Overrides:
_getDefaultSourceURIsin classDefaultViewSelector- Parameters:
pluginName- The current plugin namefilePath- the requested location.- Returns:
- a list of URIs
-