Class ConfigurableVirtualZoneFactory
java.lang.Object
org.ametys.web.repository.page.virtual.ConfigurableVirtualZoneFactory
- All Implemented Interfaces:
AmetysObjectFactory<ConfigurableVirtualZone>
,DeferredServiceable
,Component
,Configurable
public class ConfigurableVirtualZoneFactory
extends Object
implements AmetysObjectFactory<ConfigurableVirtualZone>, DeferredServiceable, Configurable
The factory to manage configurable zones
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected AmetysObjectFactoryExtensionPoint
The ametys object factory extension pointprotected ModelItemTypeExtensionPoint
The page data type extension pointprotected AmetysObjectResolver
The ametys object resolverprotected String
The schemeprotected String
The zone item factory idstatic final String
The avalon role -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
configure
(Configuration configuration) createZone
(AbstractConfigurableVirtualPage page, String zoneName) Create a zone with its page and namevoid
deferredService
(ServiceManager manager) Pass theServiceManager
used to access other components.Returns 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
.
-
Field Details
-
ROLE
The avalon role -
_resolver
The ametys object resolver -
_ametysObjectFactoryEP
The ametys object factory extension point -
_pageDataTypeExtensionPoint
The page data type extension point -
_scheme
The scheme -
_zoneItemFactoryId
The zone item factory id
-
-
Constructor Details
-
ConfigurableVirtualZoneFactory
public ConfigurableVirtualZoneFactory()
-
-
Method Details
-
deferredService
Description copied from interface:DeferredServiceable
Pass theServiceManager
used to access other components.- Specified by:
deferredService
in interfaceDeferredServiceable
- Parameters:
manager
- TheServiceManager
which thisDeferredServiceable
uses. Must not benull
.- Throws:
ServiceException
- if an error occurs
-
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
-