Class StaticTemplatesAssignmentHandler.AssignmentCondition

java.lang.Object
org.ametys.web.skin.StaticTemplatesAssignmentHandler.AssignmentCondition
Enclosing class:
StaticTemplatesAssignmentHandler

Class representing the condition for a template assignment
  • Constructor Details

    • AssignmentCondition

      public AssignmentCondition(String skinName, String templateName)
      Constructor
      Parameters:
      skinName - the skin name
      templateName - the template name
  • Method Details

    • setRegExpPath

      public void setRegExpPath(String rePath, boolean reverse)
      Set the RegExp for path
      Parameters:
      rePath - the RegExp for path
      reverse - 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

      Get the template name
      Returns:
      the template name