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
Modifier and TypeFieldDescriptionprotected AmetysObjectFactoryExtensionPoint
The ametys object factory extension pointprotected I18nUtils
the i18n utils componentprotected ServiceManager
The service managerprotected ModelItemTypeExtensionPoint
The page data type extension pointprotected AmetysObjectResolver
The ametys object resolverprotected SAXParser
Excalibur SaxParserprotected String
The schemeprotected ServiceExtensionPoint
The service extension pointprotected String
The zone item factory idstatic final String
The avalon role -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
configure
(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 factoryboolean
Return true if the specified id correspond to an existingAmetysObject
.void
service
(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:
service
in interfaceServiceable
- Throws:
ServiceException
-
configure
- Specified by:
configure
in 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:
getAmetysObjectById
in interfaceAmetysObjectFactory<ConfigurableVirtualZone>
- Parameters:
id
- the identifier.- Returns:
- the corresponding
AmetysObject
. - Throws:
AmetysRepositoryException
- if an error occurs.
-
hasAmetysObjectForId
Description copied from interface:AmetysObjectFactory
Return true if the specified id correspond to an existingAmetysObject
. Id are like<protocol>://<protocol-specific-part>
.- Specified by:
hasAmetysObjectForId
in 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:AmetysObjectFactory
Returns the protocol of this factory, used to construct unique ids.- Specified by:
getScheme
in 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
-