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
AmetysObjectFactoryhandlingVirtualYearPage.
-
-
Field Summary
Fields Modifier and Type Field Description protected String_i18nCatalogueThe i18n catalogue.protected I18nUtils_i18nUtilsThe i18n cache.protected String_pluginNameThe plugin name.
-
Constructor Summary
Constructors Constructor Description VirtualYearPageFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description VirtualYearPagegetAmetysObjectById(String id)StringgetScheme()Returns the protocol of this factory, used to construct unique ids.booleanhasAmetysObjectForId(String id)Return true if the specified id correspond to an existingAmetysObject.voidservice(ServiceManager manager)voidsetPluginInfo(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.Stringtranslate(String language, String key)Get a translated i18n message from the cache.
-
-
-
Field Detail
-
_i18nUtils
protected I18nUtils _i18nUtils
The i18n cache.
-
_pluginName
protected String _pluginName
The plugin name.
-
_i18nCatalogue
protected String _i18nCatalogue
The i18n catalogue.
-
-
Constructor Detail
-
VirtualYearPageFactory
public VirtualYearPageFactory()
-
-
Method Detail
-
service
public void service(ServiceManager manager) throws ServiceException
- Specified by:
servicein interfaceServiceable- Throws:
ServiceException
-
setPluginInfo
public void setPluginInfo(String pluginName, String featureName, String id)
Description copied from interface:PluginAwareSets 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:
setPluginInfoin 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
public String getScheme()
Description copied from interface:AmetysObjectFactoryReturns the protocol of this factory, used to construct unique ids.- Specified by:
getSchemein interfaceAmetysObjectFactory<VirtualYearPage>- Returns:
- the protocol of this factory.
-
getAmetysObjectById
public VirtualYearPage getAmetysObjectById(String id) throws AmetysRepositoryException
Description copied from interface:AmetysObjectFactory- Specified by:
getAmetysObjectByIdin interfaceAmetysObjectFactory<VirtualYearPage>- Parameters:
id- the identifier.- Returns:
- the corresponding
AmetysObject. - Throws:
AmetysRepositoryException- if an error occurs.
-
hasAmetysObjectForId
public boolean hasAmetysObjectForId(String id) throws AmetysRepositoryException
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<VirtualYearPage>- Parameters:
id- the identifier.- Returns:
- true if the specified id correspond to an existing
AmetysObject. - Throws:
AmetysRepositoryException- if an error occurs.
-
-