Package org.ametys.web.resources
Class WebSassDependenciesList
java.lang.Object
org.ametys.runtime.plugin.component.AbstractLogEnabled
org.ametys.plugins.core.ui.resources.css.sass.SassDependenciesList
org.ametys.web.resources.WebSassDependenciesList
- All Implemented Interfaces:
ResourceDependenciesList
,LogEnabled
,Prioritizable
,Serviceable
Web implementation of the Sass resource dependencies list component
Allow /preview and /live URIs
-
Field Summary
Fields inherited from class org.ametys.plugins.core.ui.resources.css.sass.SassDependenciesList
__SASS_EXTENSION, _requestAttributesHelper, _sassImportHelper, _sourceResolver
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetDependenciesList
(String uri, Map<String, String> data, boolean onlyFirstLevel) Get the list of dependenciesprotected SassImportHelper.SassImportInfo
getSassImportInfo
(String uri) Get the Sass import informations from the URIMethods inherited from class org.ametys.plugins.core.ui.resources.css.sass.SassDependenciesList
getPriority, isSupported, service
Methods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabled
getLogger, setLogger
-
Constructor Details
-
WebSassDependenciesList
public WebSassDependenciesList()
-
-
Method Details
-
getSassImportInfo
Description copied from class:SassDependenciesList
Get the Sass import informations from the URI- Overrides:
getSassImportInfo
in classSassDependenciesList
- Parameters:
uri
- The URI- Returns:
- The information
-
getDependenciesList
public Set<HashCache.UriData> getDependenciesList(String uri, Map<String, String> data, boolean onlyFirstLevel) Description copied from interface:ResourceDependenciesList
Get the list of dependencies- Specified by:
getDependenciesList
in interfaceResourceDependenciesList
- Overrides:
getDependenciesList
in classSassDependenciesList
- Parameters:
uri
- The input sourcedata
- Additional data, specific per ResourceDependenciesList implementationsonlyFirstLevel
- if true, only data corresponding to the given uris should be returned- Returns:
- The list of dependencies URIs
-