Class DefaultResourceDependenciesList
java.lang.Object
org.ametys.plugins.core.ui.resources.DefaultResourceDependenciesList
- All Implemented Interfaces:
ResourceDependenciesList
,Prioritizable
,Serviceable
- Direct Known Subclasses:
WebDefaultResourceDependenciesList
public class DefaultResourceDependenciesList
extends Object
implements ResourceDependenciesList, Serviceable
Default resource dependencies listing for unsupported resource. Only returns self as a dependency
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetDependenciesList
(String uri, Map<String, String> data, boolean onlyFirstLevel) Get the list of dependenciesint
Get the priority for the component.boolean
isSupported
(String uri) Is the uri supported to get the list of dependenciesvoid
service
(ServiceManager manager)
-
Field Details
-
_requestAttributesHelper
RequestAttributesHelper
-
-
Constructor Details
-
DefaultResourceDependenciesList
public DefaultResourceDependenciesList()
-
-
Method Details
-
service
- Specified by:
service
in interfaceServiceable
- Throws:
ServiceException
-
isSupported
Description copied from interface:ResourceDependenciesList
Is the uri supported to get the list of dependencies- Specified by:
isSupported
in interfaceResourceDependenciesList
- Parameters:
uri
- The uri- Returns:
- True if the uri is supported
-
getPriority
Description copied from interface:Prioritizable
Get the priority for the component. On components usingPrioritizable
interface, each implementation define the order. In most cases, less is the number, more prior is the component.- Specified by:
getPriority
in interfacePrioritizable
- Returns:
- the priority
-
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
- 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
-