Class ConfigurableVirtualZoneFactory
java.lang.Object
org.ametys.web.repository.page.virtual.ConfigurableVirtualZoneFactory
- All Implemented Interfaces:
AmetysObjectFactory<ConfigurableVirtualZone>,Component,Configurable,Serviceable
public class ConfigurableVirtualZoneFactory
extends Object
implements AmetysObjectFactory<ConfigurableVirtualZone>, Serviceable, Configurable
The factory to manage configurable zones
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected AmetysObjectFactoryExtensionPointThe ametys object factory extension pointprotected I18nUtilsthe i18n utils componentprotected ServiceManagerThe service managerprotected ModelItemTypeExtensionPointThe page data type extension pointprotected AmetysObjectResolverThe ametys object resolverprotected SAXParserExcalibur SaxParserprotected StringThe schemeprotected ServiceExtensionPointThe service extension pointprotected StringThe zone item factory idstatic final StringThe avalon role -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidconfigure(Configuration configuration) createZone(AbstractConfigurableVirtualPage page, String zoneName) Create a zone with its page and nameReturns the protocol of this factory, used to construct unique ids.Get the zone data type extension pointGet the Configurable virtual zone item's factorybooleanReturn true if the specified id correspond to an existingAmetysObject.voidservice(ServiceManager manager)
-
Field Details
-
ROLE
The avalon role -
_manager
The service manager -
_resolver
The ametys object resolver -
_ametysObjectFactoryEP
The ametys object factory extension point -
_i18nUtils
the i18n utils component -
_saxParser
Excalibur SaxParser -
_pageDataTypeExtensionPoint
The page data type extension point -
_serviceExtensionPoint
The service extension point -
_scheme
The scheme -
_zoneItemFactoryId
The zone item factory id
-
-
Constructor Details
-
ConfigurableVirtualZoneFactory
public ConfigurableVirtualZoneFactory()
-
-
Method Details
-
service
- Specified by:
servicein interfaceServiceable- Throws:
ServiceException
-
configure
- Specified by:
configurein interfaceConfigurable- Throws:
ConfigurationException
-
createZone
Create a zone with its page and name- Parameters:
page- The zone's pagezoneName- The zone's name- Returns:
- The created
ConfigurableVirtualZone
-
getAmetysObjectById
Description copied from interface:AmetysObjectFactory- Specified by:
getAmetysObjectByIdin interfaceAmetysObjectFactory<ConfigurableVirtualZone>- Parameters:
id- the identifier.- Returns:
- the corresponding
AmetysObject. - Throws:
AmetysRepositoryException- if an error occurs.
-
hasAmetysObjectForId
Description copied from interface:AmetysObjectFactoryReturn true if the specified id correspond to an existingAmetysObject. Id are like<protocol>://<protocol-specific-part>.- Specified by:
hasAmetysObjectForIdin interfaceAmetysObjectFactory<ConfigurableVirtualZone>- Parameters:
id- the identifier.- Returns:
- true if the specified id correspond to an existing
AmetysObject. - Throws:
AmetysRepositoryException- if an error occurs.
-
getScheme
Description copied from interface:AmetysObjectFactoryReturns the protocol of this factory, used to construct unique ids.- Specified by:
getSchemein interfaceAmetysObjectFactory<ConfigurableVirtualZone>- Returns:
- the protocol of this factory.
-
getZoneDataTypeExtensionPoint
Get the zone data type extension point- Returns:
- The
ModelItemTypeExtensionPoint
-
getZoneItemFactory
Get the Configurable virtual zone item's factory- Returns:
- The ConfigurableVirtualZoneItemFactory
-