public class VirtualYearPageFactory extends Object implements AmetysObjectFactory<VirtualYearPage>, Serviceable, PluginAware
AmetysObjectFactory
handling VirtualYearPage
.Modifier and Type | Field and Description |
---|---|
private BlogCacheManager |
_cacheManager |
protected String |
_i18nCatalogue
The i18n catalogue.
|
protected I18nUtils |
_i18nUtils
The i18n cache.
|
protected String |
_pluginName
The plugin name.
|
private AmetysObjectResolver |
_resolver |
private SiteConfigurationExtensionPoint |
_siteConf |
private SkinsManager |
_skinsManager |
Constructor and Description |
---|
VirtualYearPageFactory() |
Modifier and Type | Method and Description |
---|---|
VirtualYearPage |
getAmetysObjectById(String id)
|
String |
getScheme()
Returns the protocol of this factory, used to construct unique ids.
|
boolean |
hasAmetysObjectForId(String id)
Return true if the specified id correspond to an existing
AmetysObject . |
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. |
String |
translate(String language,
String key)
Get a translated i18n message from the cache.
|
protected I18nUtils _i18nUtils
protected String _pluginName
protected String _i18nCatalogue
private AmetysObjectResolver _resolver
private BlogCacheManager _cacheManager
private SiteConfigurationExtensionPoint _siteConf
private SkinsManager _skinsManager
public VirtualYearPageFactory()
public void service(ServiceManager manager) throws ServiceException
service
in interface Serviceable
ServiceException
public void setPluginInfo(String pluginName, String featureName, String id)
PluginAware
setPluginInfo
in interface PluginAware
pluginName
- Unique identifier for the plugin hosting the extensionfeatureName
- Unique feature identifier (unique for a given pluginName)id
- Unique identifier of this componentpublic String getScheme()
AmetysObjectFactory
getScheme
in interface AmetysObjectFactory<VirtualYearPage>
public VirtualYearPage getAmetysObjectById(String id) throws AmetysRepositoryException
AmetysObjectFactory
getAmetysObjectById
in interface AmetysObjectFactory<VirtualYearPage>
id
- the identifier.AmetysObject
.AmetysRepositoryException
- if an error occurs.public boolean hasAmetysObjectForId(String id) throws AmetysRepositoryException
AmetysObjectFactory
AmetysObject
.
Id are like <protocol>://<protocol-specific-part>
.hasAmetysObjectForId
in interface AmetysObjectFactory<VirtualYearPage>
id
- the identifier.AmetysObject
.AmetysRepositoryException
- if an error occurs.