Class CmsCollectorData

java.lang.Object
org.opencms.file.collectors.CmsCollectorData
Direct Known Subclasses:
CmsExtendedCollectorData

public class CmsCollectorData extends Object
Data structure for the collector, parsed from the collector parameters.

The input data String must have the following format:
"{VFS URI}|{Resource type}|{Count}|excludeTimerange".
The {Count} and excludeTimerange values are optional.
Example:
"/my/folder/|xmlcontent|5|excludeTimerange".

Since:
6.0.0
See Also:
  • Field Details

  • Constructor Details

    • CmsCollectorData

      public CmsCollectorData(String data)
      Creates a new extended collector data set.

      The input data String must have the following format:
      "{VFS URI}|{Resource type}|{Count}|excludeTimerange", for example:
      "/my/folder/|xmlcontent|5|excludeTimerange".

      Parameters:
      data - the data to parse
    • CmsCollectorData

      protected CmsCollectorData()
      Required constructor for subclasses.

  • Method Details

    • getCount

      public int getCount()
      Returns the count.

      Returns:
      the count
    • getFileName

      public String getFileName()
      Returns the file name.

      Returns:
      the file name
    • getType

      public int getType()
      Returns the type.

      Returns:
      the type
    • isExcludeTimerange

      public boolean isExcludeTimerange()
      Returns the flag to exclude the time range in an offline project.

      Returns:
      the flag to exclude the time range in an offline project
    • setExcludeTimerange

      public void setExcludeTimerange(boolean excludeTimerange)
      Sets the flag to exclude the time range in an offline project.

      Parameters:
      excludeTimerange - the flag to exclude the time range in an offline project
    • setFileName

      public void setFileName(String fileName)
      Sets the fileName.

      Parameters:
      fileName - the file name to set
    • setType

      public void setType(int type)
      Sets the type.

      Parameters:
      type - the type to set
    • setCount

      protected void setCount(int count)
      Sets the count.

      Parameters:
      count - the count