Class VirtualPageConfiguration
java.lang.Object
org.ametys.runtime.plugin.component.AbstractLogEnabled
org.ametys.web.repository.page.virtual.VirtualPageConfiguration
- All Implemented Interfaces:
LogEnabled
,PluginAware
,Configurable
,Contextualizable
,Serviceable
public class VirtualPageConfiguration
extends AbstractLogEnabled
implements Configurable, Serviceable, Contextualizable, PluginAware
This class represents the configuration of a virtual page based on an XML configuration
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Class representing a virtual page conf file reloader -
Field Summary
Modifier and TypeFieldDescriptionprotected Context
The contextprotected FileReloaderUtils
The file reloader utilsprotected SiteManager
The site manager -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
configure
(Configuration configuration) void
contextualize
(Context context) getId()
Get the idgetPath()
Get the path to override the configuration with a skin configurationgetTemplate
(Page rootPage) Get the template's idgetZoneConfiguration
(String id, Page rootPage) Get the zone configuration for a zone idgetZonesConfigurations
(Page rootPage) Get the zones configurationsboolean
hasZoneConfiguration
(String id, Page rootPage) Check if the virtual page has a zone, by its idvoid
service
(ServiceManager manager) void
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.Methods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabled
getLogger, setLogger
-
Field Details
-
_fileReloaderUtils
The file reloader utils -
_siteManager
The site manager -
_context
The context
-
-
Constructor Details
-
VirtualPageConfiguration
public VirtualPageConfiguration()
-
-
Method Details
-
service
- Specified by:
service
in interfaceServiceable
- Throws:
ServiceException
-
contextualize
- Specified by:
contextualize
in interfaceContextualizable
- Throws:
ContextException
-
setPluginInfo
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
-
configure
- Specified by:
configure
in interfaceConfigurable
- Throws:
ConfigurationException
-
getPath
Get the path to override the configuration with a skin configuration- Returns:
- The path
-
getId
Get the id- Returns:
- The id
-
getTemplate
Get the template's id- Parameters:
rootPage
- The root page- Returns:
- The template's id
-
getZonesConfigurations
Get the zones configurations- Parameters:
rootPage
- The root page- Returns:
- The collection of VirtualPageZoneConfiguration
-
hasZoneConfiguration
Check if the virtual page has a zone, by its id- Parameters:
id
- The zone idrootPage
- The root page- Returns:
- true if the page has a zone of the id given, false otherwise
-
getZoneConfiguration
Get the zone configuration for a zone id- Parameters:
id
- The zone idrootPage
- The root page- Returns:
- The VirtualPageZoneConfiguration, null if none is found
-