Class PluginsJSASSResourceURI
- java.lang.Object
-
- org.ametys.plugins.core.ui.resources.css.PluginsJSASSResourceURI
-
- All Implemented Interfaces:
JSASSResourceURI
,PluginAware
public class PluginsJSASSResourceURI extends Object implements JSASSResourceURI, PluginAware
JSASS Resource URI for plugins URI
-
-
Field Summary
Fields Modifier and Type Field Description private String
_pluginName
private static Pattern
PATH_SUPPORTED_PATTERN
private static Pattern
URI_SUPPORTED_PATTERN
-
Constructor Summary
Constructors Constructor Description PluginsJSASSResourceURI()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
resolve(String uri)
Resolve the URI, or returns null if the URI is not supportedString
resolvePath(String path)
Resolve a path and return the URI corresponding, or null if the path is not supportedvoid
setPluginInfo(String pluginName, String featureName, String id)
Sets the plugin info relative to the current component.
Note : The feature name may be null if the targeted component in declared at plugin level.
-
-
-
Field Detail
-
URI_SUPPORTED_PATTERN
private static final Pattern URI_SUPPORTED_PATTERN
-
PATH_SUPPORTED_PATTERN
private static final Pattern PATH_SUPPORTED_PATTERN
-
_pluginName
private String _pluginName
-
-
Constructor Detail
-
PluginsJSASSResourceURI
public PluginsJSASSResourceURI()
-
-
Method Detail
-
setPluginInfo
public void setPluginInfo(String pluginName, String featureName, String id)
Description copied from interface:PluginAware
Sets the plugin info relative to the current component.
Note : The feature name may be null if the targeted component in declared at plugin level.- Specified by:
setPluginInfo
in interfacePluginAware
- Parameters:
pluginName
- Unique identifier for the plugin hosting the extensionfeatureName
- Unique feature identifier (unique for a given pluginName)id
- Unique identifier of this component
-
resolve
public String resolve(String uri) throws URISyntaxException
Description copied from interface:JSASSResourceURI
Resolve the URI, or returns null if the URI is not supported- Specified by:
resolve
in interfaceJSASSResourceURI
- Parameters:
uri
- The URI- Returns:
- The resolved URI
- Throws:
URISyntaxException
- If the URI is not supported
-
resolvePath
public String resolvePath(String path)
Description copied from interface:JSASSResourceURI
Resolve a path and return the URI corresponding, or null if the path is not supported- Specified by:
resolvePath
in interfaceJSASSResourceURI
- Parameters:
path
- The path- Returns:
- The URI
-
-