Package com.atlassian.jira.charts.util
Class ChartReportUtils
java.lang.Object
com.atlassian.jira.charts.util.ChartReportUtils
Common utility methods for charting reports
- Since:
- v4.0
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic String
extractProjectOrFilterId
(String projectOrFilterId) Extracts the id component of the 'projectOrFilterId'.static boolean
isValidFilterParamFormat
(String projectOrFilterId) Checks that the projectOrFilterId has a valid format according toisValidFilterParamFormat(String)
with prefixFILTER_PARAM_PREFIX
static boolean
isValidProjectParamFormat
(String projectOrFilterId) Checks that the projectOrFilterId has a valid format according toisValidFilterParamFormat(String)
with prefixPROJECT_PARAM_PREFIX
-
Field Details
-
PROJECT_PARAM_PREFIX
- See Also:
-
FILTER_PARAM_PREFIX
- See Also:
-
-
Method Details
-
isValidProjectParamFormat
Checks that the projectOrFilterId has a valid format according toisValidFilterParamFormat(String)
with prefixPROJECT_PARAM_PREFIX
- Parameters:
projectOrFilterId
- the value from form to validate- Returns:
- true if the projectOrFilterId has
project
-ID format - See Also:
-
isValidFilterParamFormat
Checks that the projectOrFilterId has a valid format according toisValidFilterParamFormat(String)
with prefixFILTER_PARAM_PREFIX
- Parameters:
projectOrFilterId
- the value from form to validate- Returns:
- true if the projectOrFilterId has
filter-
ID format - See Also:
-
extractProjectOrFilterId
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
-