Class ChartReportUtils

java.lang.Object
com.atlassian.jira.charts.util.ChartReportUtils

public class ChartReportUtils extends Object
Common utility methods for charting reports
Since:
v4.0
  • Field Details

  • Method Details

    • isValidProjectParamFormat

      public static boolean isValidProjectParamFormat(String projectOrFilterId)
      Checks that the projectOrFilterId has a valid format according to isValidFilterParamFormat(String) with prefix PROJECT_PARAM_PREFIX
      Parameters:
      projectOrFilterId - the value from form to validate
      Returns:
      true if the projectOrFilterId has project-ID format
      See Also:
    • isValidFilterParamFormat

      public static boolean isValidFilterParamFormat(String projectOrFilterId)
      Checks that the projectOrFilterId has a valid format according to isValidFilterParamFormat(String) with prefix FILTER_PARAM_PREFIX
      Parameters:
      projectOrFilterId - the value from form to validate
      Returns:
      true if the projectOrFilterId has filter-ID format
      See Also:
    • extractProjectOrFilterId

      public static String extractProjectOrFilterId(String projectOrFilterId)
      Extracts the id component of the 'projectOrFilterId'.
      Parameters:
      projectOrFilterId - the raw value of 'projectOrFilterId' from the request
      Returns:
      the id component of the 'projectOrFilterId', null if projectOrFilterId is null or empty string or has no id