Package org.ametys.web.skin
Class StaticTemplatesAssignmentHandler.AssignmentCondition
- java.lang.Object
-
- org.ametys.web.skin.StaticTemplatesAssignmentHandler.AssignmentCondition
-
- Enclosing class:
- StaticTemplatesAssignmentHandler
public static class StaticTemplatesAssignmentHandler.AssignmentCondition extends Object
Class representing the condition for a template assignment
-
-
Constructor Summary
Constructors Constructor Description AssignmentCondition(String skinName, String templateName)Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetSkinName()Get the skin nameStringgetTemplateName()Get the template namebooleanmatchCondition(Page page)Test if page matches conditionvoidsetRegExpPath(String rePath, boolean reverse)Set the RegExp for path
-
-
-
Constructor Detail
-
AssignmentCondition
public AssignmentCondition(String skinName, String templateName)
Constructor- Parameters:
skinName- the skin nametemplateName- the template name
-
-
Method Detail
-
setRegExpPath
public void setRegExpPath(String rePath, boolean reverse)
Set the RegExp for path- Parameters:
rePath- the RegExp for pathreverse- true to reverse mode
-
matchCondition
public boolean matchCondition(Page page)
Test if page matches condition- Parameters:
page- the page to test- Returns:
- true if page matches condition
-
getSkinName
public String getSkinName()
Get the skin name- Returns:
- the skin name
-
getTemplateName
public String getTemplateName()
Get the template name- Returns:
- the template name
-
-