public class SprintArgumentTransformer extends AbstractArgumentTransformer<Long> implements ArgumentTransformer
jiraManagersService
Constructor and Description |
---|
SprintArgumentTransformer(JiraManagersService jiraManagersService) |
Modifier and Type | Method and Description |
---|---|
protected void |
collectReference(String key,
Long reference,
com.botronsoft.cmj.spi.configuration.ConfigurationReferenceCollector referenceCollector)
Collects the referenced Jira object.
|
protected Long |
findReferenceById(String value)
Implementations should provide means for resolving a Jira object when the value is treated as an ID.
|
protected Long |
findReferenceByName(String value)
Implementations should provide means for resolving a Jira object when the value is treated as a name.
|
protected String |
getReferenceId(Long reference)
Returns the ID of the referenced object.
|
protected String |
getReferenceName(Long reference)
Returns the name of the referenced object.
|
protected Optional<Long> |
lookupReference(String key,
com.botronsoft.cmj.spi.configuration.ConfigurationReferenceLookup referenceLookup)
Resolves a reference by its key using the SPI reference lookup implementation.
|
findFirstMatch, findReferenceByKey, getReferenceKey, transformArgumentForExport, transformArgumentForImport
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
transformArgumentForExport, transformArgumentForImport
public SprintArgumentTransformer(JiraManagersService jiraManagersService)
protected Long findReferenceById(String value)
AbstractArgumentTransformer
findReferenceById
in class AbstractArgumentTransformer<Long>
value
- the id of the object.null
if not found. Intentionally returns null
to keep implementations clean.protected Long findReferenceByName(String value)
AbstractArgumentTransformer
findReferenceByName
in class AbstractArgumentTransformer<Long>
value
- the name of the object.null
if not found. Intentionally returns null
to keep implementations clean.protected void collectReference(String key, Long reference, com.botronsoft.cmj.spi.configuration.ConfigurationReferenceCollector referenceCollector)
AbstractArgumentTransformer
collectReference
in class AbstractArgumentTransformer<Long>
key
- the reference key.reference
- the referenced Jira object.referenceCollector
- the SPI reference collector implementation.protected String getReferenceId(Long reference)
AbstractArgumentTransformer
getReferenceId
in class AbstractArgumentTransformer<Long>
reference
- the Jira object.protected String getReferenceName(Long reference)
AbstractArgumentTransformer
getReferenceName
in class AbstractArgumentTransformer<Long>
reference
- the Jira object.protected Optional<Long> lookupReference(String key, com.botronsoft.cmj.spi.configuration.ConfigurationReferenceLookup referenceLookup)
AbstractArgumentTransformer
lookupReference
in class AbstractArgumentTransformer<Long>
key
- the lookup key.referenceLookup
- the SPI reference lookup implementation.Optional
.Copyright © 2022. All rights reserved.