|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.jira.upgrade.tasks.jql.AbsoluteDateXmlHandler
public class AbsoluteDateXmlHandler
Class that reads in old skool AbsoluteDateRangeParameter parameters. For example:
<parameter class='com.atlassian.jira.issue.search.parameters.lucene.AbsoluteDateRangeParameter'> <created name='created:absolute'> <fromDate>1229392800000</fromDate> <toDate>1260975600000</toDate> </created> </parameter>
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface com.atlassian.jira.upgrade.tasks.jql.ClauseXmlHandler |
---|
ClauseXmlHandler.BestGuessConversionResult, ClauseXmlHandler.ConversionResult, ClauseXmlHandler.ConversionResultType, ClauseXmlHandler.FailedConversionNoValuesResult, ClauseXmlHandler.FailedConversionResult, ClauseXmlHandler.FullConversionResult, ClauseXmlHandler.NoOpConversionResult |
Constructor Summary | |
---|---|
AbsoluteDateXmlHandler(Collection<String> supportedXmlFieldNames,
TimeZoneManager timeZoneManager)
|
Method Summary | |
---|---|
ClauseXmlHandler.ConversionResult |
convertXmlToClause(electric.xml.Element el)
Produce a clause from the legacy, SearchParameter, XML storage format. |
protected String |
getLowerBound(String fieldName,
electric.xml.Element element)
Return the lower date from the parameter. |
protected String |
getUpperBound(String fieldName,
electric.xml.Element element)
Return the upper date from the parameters. |
boolean |
isSafeToNamifyValue()
Some search parameters have values which when running through "namification" could lose precision or change the original meaning of the value. |
protected boolean |
xmlFieldIdSupported(String xmlFieldId)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AbsoluteDateXmlHandler(Collection<String> supportedXmlFieldNames, TimeZoneManager timeZoneManager)
Method Detail |
---|
protected String getLowerBound(String fieldName, electric.xml.Element element)
fieldName
- the field name of the generated clauseelement
- the element that is being parsed.
protected String getUpperBound(String fieldName, electric.xml.Element element)
fieldName
- the field name of the generated clauseelement
- the element that is being parsed.
public ClauseXmlHandler.ConversionResult convertXmlToClause(electric.xml.Element el)
ClauseXmlHandler
convertXmlToClause
in interface ClauseXmlHandler
el
- XML element
public boolean isSafeToNamifyValue()
ClauseXmlHandler
isSafeToNamifyValue
in interface ClauseXmlHandler
protected boolean xmlFieldIdSupported(String xmlFieldId)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |