Class VirtualYearPageFactory
java.lang.Object
org.ametys.plugins.blog.repository.VirtualYearPageFactory
- All Implemented Interfaces:
AmetysObjectFactory<VirtualYearPage>
,PluginAware
,Component
,Serviceable
public class VirtualYearPageFactory
extends Object
implements AmetysObjectFactory<VirtualYearPage>, Serviceable, PluginAware
AmetysObjectFactory
handling VirtualYearPage
.-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns the protocol of this factory, used to construct unique ids.boolean
Return true if the specified id correspond to an existingAmetysObject
.void
service
(ServiceManager manager) void
setPluginInfo
(String pluginName, String featureName, String id) Sets the plugin info relative to the current component.
Note : The feature name may be null if the targeted component in declared at plugin level.Get a translated i18n message from the cache.
-
Field Details
-
_i18nUtils
The i18n cache. -
_pluginName
The plugin name. -
_i18nCatalogue
The i18n catalogue.
-
-
Constructor Details
-
VirtualYearPageFactory
public VirtualYearPageFactory()
-
-
Method Details
-
service
- Specified by:
service
in interfaceServiceable
- Throws:
ServiceException
-
setPluginInfo
Description copied from interface:PluginAware
Sets the plugin info relative to the current component.
Note : The feature name may be null if the targeted component in declared at plugin level.- Specified by:
setPluginInfo
in interfacePluginAware
- Parameters:
pluginName
- Unique identifier for the plugin hosting the extensionfeatureName
- Unique feature identifier (unique for a given pluginName)id
- Unique identifier of this component
-
getScheme
Description copied from interface:AmetysObjectFactory
Returns the protocol of this factory, used to construct unique ids.- Specified by:
getScheme
in interfaceAmetysObjectFactory<VirtualYearPage>
- Returns:
- the protocol of this factory.
-
getAmetysObjectById
Description copied from interface:AmetysObjectFactory
- Specified by:
getAmetysObjectById
in interfaceAmetysObjectFactory<VirtualYearPage>
- 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<VirtualYearPage>
- Parameters:
id
- the identifier.- Returns:
- true if the specified id correspond to an existing
AmetysObject
. - Throws:
AmetysRepositoryException
- if an error occurs.
-
translate
Get a translated i18n message from the cache.- Parameters:
language
- the language.key
- the i18n message key.- Returns:
- the translated text.
-