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
Modifier and TypeFieldDescriptionprotected AmetysObjectFactoryExtensionPoint
The ametys object factory extension pointprotected I18nUtils
the i18n utils componentprotected ServiceManager
The service managerprotected ModelItemTypeExtensionPoint
The model item epprotected AmetysObjectResolver
The AmetysObject resolverprotected String
The scheme for the ametys object prefixprotected ServiceExtensionPoint
The service epprotected String
The zone factory idstatic final String
The avalon role -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
configure
(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 pointboolean
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 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:
service
in interfaceServiceable
- Throws:
ServiceException
-
configure
- Specified by:
configure
in 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:
getAmetysObjectById
in interfaceAmetysObjectFactory<ConfigurableVirtualZoneItem>
- 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<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:AmetysObjectFactory
Returns the protocol of this factory, used to construct unique ids.- Specified by:
getScheme
in 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
-