public class ProjectComponentArgumentTransformer extends AbstractArgumentTransformer<com.atlassian.jira.bc.project.component.ProjectComponent> implements ArgumentTransformer
jiraManagersService
Constructor and Description |
---|
ProjectComponentArgumentTransformer(JiraManagersService jiraManagersService) |
Modifier and Type | Method and Description |
---|---|
protected void |
collectReference(String key,
com.atlassian.jira.bc.project.component.ProjectComponent projectComponent,
com.botronsoft.cmj.spi.configuration.ConfigurationReferenceCollector referenceCollector)
Collects the referenced Jira object.
|
protected com.atlassian.jira.bc.project.component.ProjectComponent |
findReferenceById(String value)
Implementations should provide means for resolving a Jira object when the value is treated as an ID.
|
protected com.atlassian.jira.bc.project.component.ProjectComponent |
findReferenceByName(String value)
Implementations should provide means for resolving a Jira object when the value is treated as a name.
|
protected String |
getReferenceId(com.atlassian.jira.bc.project.component.ProjectComponent projectComponent)
Returns the ID of the referenced object.
|
protected String |
getReferenceName(com.atlassian.jira.bc.project.component.ProjectComponent projectComponent)
Returns the name of the referenced object.
|
protected Optional<com.atlassian.jira.bc.project.component.ProjectComponent> |
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 ProjectComponentArgumentTransformer(JiraManagersService jiraManagersService)
protected com.atlassian.jira.bc.project.component.ProjectComponent findReferenceById(String value)
AbstractArgumentTransformer
findReferenceById
in class AbstractArgumentTransformer<com.atlassian.jira.bc.project.component.ProjectComponent>
value
- the id of the object.null
if not found. Intentionally returns null
to keep implementations clean.protected com.atlassian.jira.bc.project.component.ProjectComponent findReferenceByName(String value)
AbstractArgumentTransformer
findReferenceByName
in class AbstractArgumentTransformer<com.atlassian.jira.bc.project.component.ProjectComponent>
value
- the name of the object.null
if not found. Intentionally returns null
to keep implementations clean.protected void collectReference(String key, com.atlassian.jira.bc.project.component.ProjectComponent projectComponent, com.botronsoft.cmj.spi.configuration.ConfigurationReferenceCollector referenceCollector)
AbstractArgumentTransformer
collectReference
in class AbstractArgumentTransformer<com.atlassian.jira.bc.project.component.ProjectComponent>
key
- the reference key.projectComponent
- the referenced Jira object.referenceCollector
- the SPI reference collector implementation.protected String getReferenceId(com.atlassian.jira.bc.project.component.ProjectComponent projectComponent)
AbstractArgumentTransformer
getReferenceId
in class AbstractArgumentTransformer<com.atlassian.jira.bc.project.component.ProjectComponent>
projectComponent
- the Jira object.protected String getReferenceName(com.atlassian.jira.bc.project.component.ProjectComponent projectComponent)
AbstractArgumentTransformer
getReferenceName
in class AbstractArgumentTransformer<com.atlassian.jira.bc.project.component.ProjectComponent>
projectComponent
- the Jira object.protected Optional<com.atlassian.jira.bc.project.component.ProjectComponent> lookupReference(String key, com.botronsoft.cmj.spi.configuration.ConfigurationReferenceLookup referenceLookup)
AbstractArgumentTransformer
lookupReference
in class AbstractArgumentTransformer<com.atlassian.jira.bc.project.component.ProjectComponent>
key
- the lookup key.referenceLookup
- the SPI reference lookup implementation.Optional
.Copyright © 2022. All rights reserved.