Class RibbonConfigurationSource
java.lang.Object
org.ametys.core.ui.ribbonconfiguration.RibbonConfigurationSource
A ribbon configuration source and related data
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic RibbonConfigurationSource
createFromUri
(String uri, SourceResolver resolver) Create a new ribbon configuration sourcebuild the configuration from the sourceGet the last modified dateGet the sourcegetUri()
Get the ribbon configuration URI
-
Constructor Details
-
RibbonConfigurationSource
Constructor- Parameters:
uri
- The source urisource
- The sourcereturnedParameters
- The resolve parameters for additional data
-
-
Method Details
-
createFromUri
public static RibbonConfigurationSource createFromUri(String uri, SourceResolver resolver) throws IOException Create a new ribbon configuration source- Parameters:
uri
- The uriresolver
- The source resolver- Returns:
- the ribbon configuration source
- Throws:
IOException
- If an error occurred when resolving the URI
-
getSource
Get the source- Returns:
- The source
-
getUri
Get the ribbon configuration URI- Returns:
- The uri
-
getLastModified
Get the last modified date- Returns:
- The last modified date
-
getConfiguration
build the configuration from the source- Returns:
- The configuration
- Throws:
ConfigurationException
- If an error occurredSAXException
- If an error occurredIOException
- If an error occurred
-