public class StaticTemplatesAssignmentHandler extends AbstractLogEnabled implements TemplatesAssignmentHandler, Serviceable
Modifier and Type | Class and Description |
---|---|
class |
StaticTemplatesAssignmentHandler.AssignmentCondition
Class representing the condition for a template assignment
|
Modifier and Type | Field and Description |
---|---|
private Map<String,Long> |
_lastConfUpdate |
protected SkinsManager |
_skinsManager
The skins manager
|
protected SourceResolver |
_srcResolver
The source resolver
|
private Map<String,Map<String,StaticTemplatesAssignmentHandler.AssignmentCondition>> |
_tplCache |
ROLE
Constructor and Description |
---|
StaticTemplatesAssignmentHandler() |
Modifier and Type | Method and Description |
---|---|
private void |
_getAllTemplatesWithoutCondition(Skin skin) |
private Pattern |
_getPattern(String pattern) |
private void |
_parseAvailableTemplates(Skin skin,
Configuration configuration) |
protected void |
_refreshValues(Skin skin)
Get the available templates for assignment
|
Set<String> |
getAvailablesTemplates(Page page)
Returns the list of available templates for a given Page.
|
Set<String> |
getAvailablesTemplates(String skinName)
Returns the list of available templates for a skin
|
void |
service(ServiceManager smanager) |
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
protected SkinsManager _skinsManager
protected SourceResolver _srcResolver
private Map<String,Map<String,StaticTemplatesAssignmentHandler.AssignmentCondition>> _tplCache
private Map<String,Long> _lastConfUpdate
public StaticTemplatesAssignmentHandler()
public void service(ServiceManager smanager) throws ServiceException
service
in interface Serviceable
ServiceException
public Set<String> getAvailablesTemplates(String skinName)
TemplatesAssignmentHandler
getAvailablesTemplates
in interface TemplatesAssignmentHandler
skinName
- the name of the skin to considerpublic Set<String> getAvailablesTemplates(Page page)
TemplatesAssignmentHandler
getAvailablesTemplates
in interface TemplatesAssignmentHandler
page
- the Page to considerprotected void _refreshValues(Skin skin)
skin
- The skinprivate void _parseAvailableTemplates(Skin skin, Configuration configuration) throws ConfigurationException
ConfigurationException
private void _getAllTemplatesWithoutCondition(Skin skin)
private Pattern _getPattern(String pattern)