|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface SIssueProvider
| Field Summary |
|---|
| Fields inherited from interface jetbrains.buildServer.issueTracker.IssueProvider |
|---|
SECURE_PROPERTY_PREFIX |
| Method Summary | |
|---|---|
IssueData |
findPossiblyExpiredIssue(java.lang.String id)
Returns the issue data corresponding to the id. |
java.lang.String |
getConfigurationSummary()
Returns the basic summary of current configuration, for instance, "Jira" provider might return: "Projects: P1, P2". |
PropertiesProcessor |
getPropertiesProcessor()
Returns the properties processor instance (validator). |
IssueTestConnectionSupport |
getTestConnectionSupport()
Returns the test connection support. |
boolean |
isFetched(java.lang.String id)
Returns whether the issue is fetched and can be efficiently returned using IssueProvider.findIssueById(String) method. |
| Methods inherited from interface jetbrains.buildServer.issueTracker.IssueProvider |
|---|
dispose, findIssueById, getCommentTransformationHelper, getProperties, getRelatedIssues, getRelatedIssues, getType, isHasRelatedIssues, isHasRelatedIssues, setProperties |
| Methods inherited from interface jetbrains.buildServer.issueTracker.IssueBatchProviderSupport |
|---|
findIssuesByIds, isBatchFetchSupported |
| Method Detail |
|---|
boolean isFetched(@NotNull
java.lang.String id)
IssueProvider.findIssueById(String) method.
id - the issue id
@Nullable
IssueData findPossiblyExpiredIssue(@NotNull
java.lang.String id)
id.
The main difference from IssueProvider.findIssueById(String) method is that method must be always
fast (should use only cached data) and the result data isn't expected to be up-to-date. So this
method should return the issue data if by chance it can be retrieved fast, even if a provider
consideres it out-dated and IssueProvider.findIssueById(String) method would make an extra call
to the issue-tracking system.
The simpliest (100% legal) implementation of this method:
public IssueData findPossiblyExpiredIssue(@NotNull String id) {
return null;
}
This way TeamCity will always show 'Retrieving...' message, when the issue isn't fetched
(see isFetched(String)).
id - the issue id
null if the it cannot be returned efficiently@NotNull PropertiesProcessor getPropertiesProcessor()
It is guaranteed that IssueProvider.setProperties(java.util.Map) method is called only if
the processor finds no errors.
@NotNull IssueTestConnectionSupport getTestConnectionSupport()
@Nullable java.lang.String getConfigurationSummary()
"Projects: P1, P2".
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||