|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.jira.jql.util.JqlTimetrackingDurationSupportImpl
@InjectableComponent public class JqlTimetrackingDurationSupportImpl
The default implementation of JqlTimetrackingDurationSupport
Constructor Summary | |
---|---|
JqlTimetrackingDurationSupportImpl(JiraDurationUtils durationUtils)
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JqlTimetrackingDurationSupportImpl(JiraDurationUtils durationUtils)
Method Detail |
---|
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 convert
public Long convertToDuration(Long durationInMinutes)
convertToDuration(String)
.
Converts the duration in minutes into its duration in seconds.
durationInMinutes
- the duration
public Long convertToDuration(String durationString)
durationString
- the formatted duration string
protected String convertToIndexValue(Long durationInMinutes)
convertToIndexValue(String)
.
Converts the specified duration into the format used by the index.
durationInMinutes
- the duration
protected String convertToIndexValue(String durationString)
durationString
- the formatted duration string
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |