Class VirtualPageConfiguration
java.lang.Object
org.ametys.runtime.plugin.component.AbstractLogEnabled
org.ametys.web.repository.page.virtual.VirtualPageConfiguration
- All Implemented Interfaces:
LogEnabled,PluginAware,Initializable,Configurable,Contextualizable,Serviceable
public class VirtualPageConfiguration
extends AbstractLogEnabled
implements Configurable, Serviceable, Contextualizable, PluginAware, Initializable
This class represents the configuration of a virtual page based on an XML configuration
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected AbstractCacheManagerThe cache managerprotected ContextThe contextprotected FileReloaderUtilsThe file reloader utilsprotected SiteManagerThe site manager -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidconfigure(Configuration configuration) voidcontextualize(Context context) getTemplate(Page rootPage) Get the template's idgetZoneConfiguration(String id, Page rootPage) Get the zone configuration for a zone idgetZonesConfigurations(Page rootPage) Get the zones configurationsbooleanhasZoneConfiguration(String id, Page rootPage) Check if the virtual page has a zone, by its idvoidvoidservice(ServiceManager manager) voidsetPluginInfo(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 -
_cacheManager
The cache manager -
_context
The context
-
-
Constructor Details
-
VirtualPageConfiguration
public VirtualPageConfiguration()
-
-
Method Details
-
contextualize
- Specified by:
contextualizein interfaceContextualizable- Throws:
ContextException
-
setPluginInfo
Description copied from interface:PluginAwareSets 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:
setPluginInfoin 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
-
service
- Specified by:
servicein interfaceServiceable- Throws:
ServiceException
-
configure
- Specified by:
configurein interfaceConfigurable- Throws:
ConfigurationException
-
initialize
- Specified by:
initializein interfaceInitializable- Throws:
Exception
-
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
-