Class CmsStaticExportExportRule

    • Constructor Detail

      • CmsStaticExportExportRule

        public CmsStaticExportExportRule​(java.lang.String name,
                                         java.lang.String description)
        Default constructor.

        Parameters:
        name - the name of the rule
        description - the description for the rule
      • CmsStaticExportExportRule

        public CmsStaticExportExportRule​(java.lang.String name,
                                         java.lang.String description,
                                         java.util.List<java.util.regex.Pattern> modifiedResources,
                                         java.util.List<java.lang.String> exportResourcePatterns)
        Full Constructor.

        Parameters:
        name - the name of the rule
        description - the description of the rule
        modifiedResources - a list of patterns to identify modified resources
        exportResourcePatterns - a list of strings to export resources
    • Method Detail

      • addExportResourcePattern

        public void addExportResourcePattern​(java.lang.String exportResource)
        Adds a export Resource expression.

        Parameters:
        exportResource - the export Resource expression to add
      • addModifiedResource

        public void addModifiedResource​(java.lang.String modifiedRegex)
        Adds a modified Resource regular expression.

        Parameters:
        modifiedRegex - the modified Resource regular expression to add
      • getDescription

        public java.lang.String getDescription()
        Returns the description.

        Returns:
        the description
      • getExportResourcePatterns

        public java.util.List<java.lang.String> getExportResourcePatterns()
        Returns the export Resources list.

        Returns:
        the export Resources list
      • getModifiedResources

        public java.util.List<java.util.regex.Pattern> getModifiedResources()
        Returns the modified Resources list as list of Pattern.

        Returns:
        the modified Resources list as list of Pattern
      • getName

        public java.lang.String getName()
        Returns the name.

        Returns:
        the name
      • match

        public boolean match​(java.lang.String vfsName)
        Checks if a vfsName matches the given modified resource patterns.

        Parameters:
        vfsName - the vfs name of a resource to check
        Returns:
        true if the name matches one of the given modified resource patterns
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
        See Also:
        Object.toString()