Class ConfigurableVirtualZoneItemFactory
java.lang.Object
org.ametys.web.repository.page.virtual.ConfigurableVirtualZoneItemFactory
- All Implemented Interfaces:
AmetysObjectFactory<ConfigurableVirtualZoneItem>,Component,Configurable,Serviceable
- Direct Known Subclasses:
UserZoneItemFactory
public class ConfigurableVirtualZoneItemFactory
extends Object
implements AmetysObjectFactory<ConfigurableVirtualZoneItem>, Serviceable, Configurable
The factory for configurable zone item
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected AmetysObjectFactoryExtensionPointThe ametys object factory extension pointprotected I18nUtilsthe i18n utils componentprotected ServiceManagerThe service managerprotected ModelItemTypeExtensionPointThe model item epprotected AmetysObjectResolverThe AmetysObject resolverprotected StringThe scheme for the ametys object prefixprotected ServiceExtensionPointThe service epprotected StringThe zone factory idstatic final StringThe avalon role -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidconfigure(Configuration configuration) createZoneItem(AbstractConfigurableVirtualPage page, String zoneName, String zoneItemId) Create a zone item with its page, zoneName and idGet the i18n utilsReturns the protocol of this factory, used to construct unique ids.Get the service extension pointGet the Configurable virtual zone's factoryGet the zone item data type extension pointbooleanReturn true if the specified id correspond to an existingAmetysObject.voidservice(ServiceManager manager)
-
Field Details
-
ROLE
The avalon role -
_manager
The service manager -
_resolver
The AmetysObject resolver -
_ametysObjectFactoryEP
The ametys object factory extension point -
_i18nUtils
the i18n utils component -
_pageDataTypeExtensionPoint
The model item ep -
_serviceExtensionPoint
The service ep -
_scheme
The scheme for the ametys object prefix -
_zoneFactoryId
The zone factory id
-
-
Constructor Details
-
ConfigurableVirtualZoneItemFactory
public ConfigurableVirtualZoneItemFactory()
-
-
Method Details
-
service
- Specified by:
servicein interfaceServiceable- Throws:
ServiceException
-
configure
- Specified by:
configurein interfaceConfigurable- Throws:
ConfigurationException
-
createZoneItem
public ConfigurableVirtualZoneItem createZoneItem(AbstractConfigurableVirtualPage page, String zoneName, String zoneItemId) Create a zone item with its page, zoneName and id- Parameters:
page- The zone item's pagezoneName- The zone's namezoneItemId- The zone item's id- Returns:
- The created
ConfigurableVirtualZoneItem
-
getAmetysObjectById
Description copied from interface:AmetysObjectFactory- Specified by:
getAmetysObjectByIdin interfaceAmetysObjectFactory<ConfigurableVirtualZoneItem>- 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<ConfigurableVirtualZoneItem>- 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<ConfigurableVirtualZoneItem>- Returns:
- the protocol of this factory.
-
getServiceExtensionPoint
Get the service extension point- Returns:
- The
ServiceExtensionPoint
-
getZoneItemDataTypeExtensionPoint
Get the zone item data type extension point- Returns:
- The
ModelItemTypeExtensionPoint
-
getZoneFactory
Get the Configurable virtual zone's factory- Returns:
- The ConfigurableVirtualZoneFactory
-
getI18nUtils
Get the i18n utils- Returns:
- The
I18nUtils
-