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 AmetysObjectFactoryExtensionPointThe ametys object factory extension pointprotected ModelItemTypeExtensionPointThe page data type extension pointprotected AmetysObjectResolverThe ametys object resolverprotected StringThe schemeprotected 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 namevoiddeferredService(ServiceManager manager) Pass theServiceManagerused 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 factorybooleanReturn 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:DeferredServiceablePass theServiceManagerused to access other components.- Specified by:
deferredServicein interfaceDeferredServiceable- Parameters:
manager- TheServiceManagerwhich thisDeferredServiceableuses. Must not benull.- Throws:
ServiceException- if an error occurs
-
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
-