@InjectableComponent public class JqlTimetrackingDurationSupportImpl extends Object implements JqlTimetrackingDurationSupport
JqlTimetrackingDurationSupport
Constructor and Description |
---|
JqlTimetrackingDurationSupportImpl(JiraDurationUtils durationUtils) |
Modifier and Type | Method and Description |
---|---|
Long |
convertToDuration(Long durationInMinutes)
Convenience method.
|
Long |
convertToDuration(String durationString)
Converts the formatted duration string into its duration in seconds.
|
protected String |
convertToIndexValue(Long durationInMinutes)
Convenience method.
|
String |
convertToIndexValue(QueryLiteral rawValue) |
protected String |
convertToIndexValue(String durationString)
Converts the specified duration into the format used by the index.
|
boolean |
validate(String durationString)
Check to see if the passed string is a valid duration according to JQL.
|
public JqlTimetrackingDurationSupportImpl(JiraDurationUtils durationUtils)
public boolean validate(String durationString)
JqlTimetrackingDurationSupport
validate
in interface JqlTimetrackingDurationSupport
durationString
- the string to check; cannot be null.public String convertToIndexValue(QueryLiteral rawValue)
convertToIndexValue
in interface IndexValueConverter
rawValue
- the query literal to convertpublic Long convertToDuration(Long durationInMinutes)
convertToDuration(String)
.
Converts the duration in minutes into its duration in seconds.
durationInMinutes
- the durationpublic Long convertToDuration(String durationString)
durationString
- the formatted duration stringprotected String convertToIndexValue(Long durationInMinutes)
convertToIndexValue(String)
.
Converts the specified duration into the format used by the index.
durationInMinutes
- the durationCopyright © 2002-2022 Atlassian. All Rights Reserved.