Class AbstractConfigurableVirtualPageFactory
java.lang.Object
org.ametys.runtime.plugin.component.AbstractLogEnabled
org.ametys.web.repository.page.virtual.AbstractConfigurableVirtualPageFactory
- All Implemented Interfaces:
DeferredServiceable
,LogEnabled
,Configurable
,Contextualizable
- Direct Known Subclasses:
AbstractOdfPageFactory
,AbstractUGCPageFactory
,AbstractUserDirectoryPageFactory
public abstract class AbstractConfigurableVirtualPageFactory
extends AbstractLogEnabled
implements DeferredServiceable, Configurable, Contextualizable
Common class for factories of virtual pages
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected AmetysObjectFactoryExtensionPoint
The ametys object factory extension pointprotected String
The id in the configuration extension pointprotected Context
The avalon contextprotected ServiceManager
The service managerprotected ModelItemTypeExtensionPoint
The model item type extension pointprotected AmetysObjectResolver
The ametys object resolverprotected SkinsManager
The skins managerprotected VirtualPageConfigurationExtensionPoint
The virtual page configuration extension pointprotected String
The zone factory id -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
configure
(Configuration configuration) void
contextualize
(Context context) void
deferredService
(ServiceManager manager) Pass theServiceManager
used to access other components.Get the configuration for the virtual pageGet the page data type extension pointReturns the current requestGet the ametys object resolver extension pointGet the skins managerGet the Configurable virtual zone's factoryMethods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabled
getLogger, setLogger
-
Field Details
-
_virtualPageConfigurationEP
The virtual page configuration extension point -
_resolver
The ametys object resolver -
_pageDataTypeExtensionPoint
The model item type extension point -
_manager
The service manager -
_ametysObjectFactoryEP
The ametys object factory extension point -
_skinsManager
The skins manager -
_configurationId
The id in the configuration extension point -
_zoneFactoryId
The zone factory id -
_context
The avalon context
-
-
Constructor Details
-
AbstractConfigurableVirtualPageFactory
-
-
Method Details
-
contextualize
- Specified by:
contextualize
in interfaceContextualizable
- Throws:
ContextException
-
configure
- Specified by:
configure
in interfaceConfigurable
- Throws:
ConfigurationException
-
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
-
getConfiguration
Get the configuration for the virtual page- Returns:
- The CourseVirtualPageConfiguraton
-
getSkinsManager
Get the skins manager- Returns:
- The skins manager
-
getZoneFactory
Get the Configurable virtual zone's factory- Returns:
- The ConfigurableVirtualZoneFactory
-
getResolver
Get the ametys object resolver extension point- Returns:
- The
AmetysObjectResolver
-
getPageDataTypeEP
Get the page data type extension point- Returns:
- The
ModelItemTypeExtensionPoint
-
getRequest
Returns the current request- Returns:
- the current request
-