public class SkinTagProvider extends StaticTagProvider
Modifier and Type | Field and Description |
---|---|
protected SourceResolver |
_resolver
The source resolver
|
private SiteManager |
_siteManager |
protected Map<String,List<String>> |
_skinLocalIds
The tags
|
private SkinsManager |
_skinsManager |
protected Map<String,Map<String,Tag>> |
_skinTags
The tags
|
_context, _description, _featureName, _id, _label, _localIds, _manager, _pluginName, _tags, _targetTypeEP
Constructor and Description |
---|
SkinTagProvider() |
Modifier and Type | Method and Description |
---|---|
private Source |
_getTagsFile(String skin) |
void |
configure(Configuration configuration) |
protected Map<String,Tag> |
configureTags(Configuration configuration,
String skinName,
Tag parent,
String defaultCatalogue)
Configure tag from the passed configuration
|
Map<String,Tag> |
getTags(Map<String,Object> contextualParameters)
Returns the provider's tags.
|
protected void |
initializeTags(String skinName)
Initialize a skin's tags from the tags file.
|
void |
service(ServiceManager smanager) |
configureDescription, configureLabel, configureTags, contextualize, getDescription, getFilteredTags, getId, getLabel, getLocalIds, getPluginName, getTag, getTags, hasTag, setPluginInfo
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
protected SourceResolver _resolver
protected Map<String,List<String>> _skinLocalIds
private SiteManager _siteManager
private SkinsManager _skinsManager
public SkinTagProvider()
public void service(ServiceManager smanager) throws ServiceException
service
in interface Serviceable
service
in class StaticTagProvider
ServiceException
public void configure(Configuration configuration) throws ConfigurationException
configure
in interface Configurable
configure
in class StaticTagProvider
ConfigurationException
public Map<String,Tag> getTags(Map<String,Object> contextualParameters)
TagProvider
getTags
in interface TagProvider
getTags
in class StaticTagProvider
contextualParameters
- contextual parametersprotected void initializeTags(String skinName) throws Exception
skinName
- the name of the skin to initialize tags.Exception
- if an error occurs.private Source _getTagsFile(String skin) throws MalformedURLException, IOException
MalformedURLException
IOException
protected Map<String,Tag> configureTags(Configuration configuration, String skinName, Tag parent, String defaultCatalogue) throws ConfigurationException
configuration
- The configurationskinName
- the skin nameparent
- The parent tag if anydefaultCatalogue
- The default catalog for i18nTag
ConfigurationException
- if configuration is invalid