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
public class WebSassDependenciesList extends SassDependenciesList
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
Constructors Constructor Description WebSassDependenciesList()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Set<HashCache.UriData>
getDependenciesList(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 URI-
Methods 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 Detail
-
WebSassDependenciesList
public WebSassDependenciesList()
-
-
Method Detail
-
getSassImportInfo
protected SassImportHelper.SassImportInfo getSassImportInfo(String uri)
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
-
-