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 AmetysObjectFactoryExtensionPointThe ametys object factory extension pointprotected StringThe id in the configuration extension pointprotected ContextThe avalon contextprotected ServiceManagerThe service managerprotected ModelItemTypeExtensionPointThe model item type extension pointprotected AmetysObjectResolverThe ametys object resolverprotected SkinsManagerThe skins managerprotected VirtualPageConfigurationExtensionPointThe virtual page configuration extension pointprotected StringThe zone factory id -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidconfigure(Configuration configuration) voidcontextualize(Context context) voiddeferredService(ServiceManager manager) Pass theServiceManagerused to access other components.Get the configuration for the virtual pageRetrieves the extension point with available modelItem types for handled pageprotected StringRetrieves the identifier of extension point with available modelItem types for handled pageReturns 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:
contextualizein interfaceContextualizable- Throws:
ContextException
-
configure
- Specified by:
configurein interfaceConfigurable- Throws:
ConfigurationException
-
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
-
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
-
getPageDataTypeExtensionPoint
Retrieves the extension point with available modelItem types for handled page- Returns:
- the model item type extension point
-
getPageDataTypeExtensionPointId
Retrieves the identifier of extension point with available modelItem types for handled page- Returns:
- the identifier of the model item type extension point
-
getRequest
Returns the current request- Returns:
- the current request
-