Class RibbonConfigurationSource
- java.lang.Object
-
- org.ametys.core.ui.ribbonconfiguration.RibbonConfigurationSource
-
public class RibbonConfigurationSource extends Object
A ribbon configuration source and related data
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static RibbonConfigurationSource
createFromUri(String uri, SourceResolver resolver)
Create a new ribbon configuration sourceConfiguration
getConfiguration()
build the configuration from the sourceLong
getLastModified()
Get the last modified dateSource
getSource()
Get the sourceString
getUri()
Get the ribbon configuration URI
-
-
-
Method Detail
-
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
-
getLastModified
public Long getLastModified()
Get the last modified date- Returns:
- The last modified date
-
getConfiguration
public Configuration getConfiguration() throws ConfigurationException, SAXException, IOException
build the configuration from the source- Returns:
- The configuration
- Throws:
ConfigurationException
- If an error occurredSAXException
- If an error occurredIOException
- If an error occurred
-
-