| com.atlassian.jira.bc.issue.link.RemoteIssueLinkService |
Known Indirect Subclasses
|
@PublicApi
Clients of @PublicApi can expect
that programs compiled against a given version will remain binary compatible with later versions of the
@PublicApi as per each product's API policy as long as the client does not implement/extend
@PublicApi interfaces or classes (refer to each product's API policy for the exact
guarantee---usually binary compatibility is guaranteed at least across minor versions).
@PublicApi interfaces and classes are not designed to be implemented or extended by clients,
we may perform certain types of binary-incompatible changes to these classes and interfaces, but these will not
affect well-behaved clients that do not extend/implement these types (in general, only classes and interfaces
annotated with @PublicSpi are safe to extend/implement).
This is used to perform create, update and delete operations in JIRA with remote issue links. This
service's methods will make sure that when dealing with remote issue links that all of JIRA's business
rules are enforced. This means that permissions and data validation will be checked, proper events will be fired,
and notifications will be triggered.
| Nested Classes | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| RemoteIssueLinkService.CreateValidationResult | Holds the information about validating a create remote issue link operation. | ||||||||||
| RemoteIssueLinkService.DeleteByGlobalIdValidationResult | Holds the information about validating a delete remote issue link operation. | ||||||||||
| RemoteIssueLinkService.DeleteValidationResult | Holds the information about validating a delete remote issue link operation. | ||||||||||
| RemoteIssueLinkService.RemoteIssueLinkListResult | Holds the information about performing a remote issue link operation, when a list result is expected. | ||||||||||
| RemoteIssueLinkService.RemoteIssueLinkResult | Holds the information about performing a remote issue link operation. | ||||||||||
| RemoteIssueLinkService.UpdateValidationResult | Holds the information about validating an update remote issue link operation. | ||||||||||
| user | user who the permission checks will be run against (can be null, indicating an anonymous user). |
|---|---|
| createValidationResult | contains the remote issue link to store. This should have been created by the
validateCreate(User, RemoteIssueLink) method. The result must have
isValid() return true. If false this method will throw an
IllegalStateException. |
RemoteIssueLink if all went well. If there was an error
creating the remote issue link then the remote issue link will be null and the error collection will contain details of what
went wrong.
This method is deprecated.
as of v6.1. Use create(com.atlassian.jira.user.ApplicationUser, com.atlassian.jira.bc.issue.link.RemoteIssueLinkService.CreateValidationResult) instead.
Stores the given remote issue link in the JIRA datastore, if the current user has permission to do so.
| user | user who the permission checks will be run against (can be null, indicating an anonymous user). |
|---|---|
| createValidationResult | contains the remote issue link to store. This should have been created by the
validateCreate(User, RemoteIssueLink) method. The result must have
isValid() return true. If false this method will throw an
IllegalStateException. |
RemoteIssueLink if all went well. If there was an error
creating the remote issue link then the remote issue link will be null and the error collection will contain details of what
went wrong.Deletes the remote issue link with the given id from the JIRA datastore, if the current user has permission to do so.
| user | user user who the permission checks will be run against (can be null, indicating an anonymous user). |
|---|---|
| deleteValidationResult | contains the remote issue link id to delete. This should have been created by the
validateDelete(User, Long) method. The result must have
isValid() return true. If false this method will throw an
IllegalStateException.
|
This method is deprecated.
as of v6.1. Use delete(com.atlassian.jira.user.ApplicationUser, com.atlassian.jira.bc.issue.link.RemoteIssueLinkService.DeleteValidationResult) instead.
Deletes the remote issue link with the given id from the JIRA datastore, if the current user has permission to do so.
| user | user user who the permission checks will be run against (can be null, indicating an anonymous user). |
|---|---|
| deleteValidationResult | contains the remote issue link id to delete. This should have been created by the
validateDelete(User, Long) method. The result must have
isValid() return true. If false this method will throw an
IllegalStateException. |
Deletes the remote issue link that links with the given JIRA issue and has the given global id, if the current user has permission to do so.
| user | user user who the permission checks will be run against (can be null, indicating an anonymous user). |
|---|---|
| deleteValidationResult | contains the remote issue link id to delete. This should have been created by the
validateDeleteByGlobalId(User, Issue, String) method. The result must have
isValid() return true. If false this method will throw an
IllegalStateException.
|
This method is deprecated.
as of v6.1. Use deleteByGlobalId(com.atlassian.jira.user.ApplicationUser, com.atlassian.jira.bc.issue.link.RemoteIssueLinkService.DeleteByGlobalIdValidationResult) instead.
Deletes the remote issue link that links with the given JIRA issue and has the given global id, if the current user has permission to do so.
| user | user user who the permission checks will be run against (can be null, indicating an anonymous user). |
|---|---|
| deleteValidationResult | contains the remote issue link id to delete. This should have been created by the
validateDeleteByGlobalId(User, Issue, String) method. The result must have
isValid() return true. If false this method will throw an
IllegalStateException. |
Retrieves the list of remote issue links that have any of the given globalIds.
| user | user who the permission checks will be run against (can be null, indicating an anonymous user). |
|---|---|
| globalIds | the globalIds to get the remote issue links for. Should not contain null values. |
RemoteIssueLinks if all went well. If no remote issue links are
stored with any of the given globalIds, the list will be empty. If there was an error the remote issue links list will be null
and the error collection will contain details of what went wrong. Some possible error cases include the given collection
of globalIds is empty, issue linking being disabled, the user not having permissions, or any of the globalIds is null.
BROWSE permission for the linked issue.Retrieves the remote issue link with the given id.
| user | who the permission checks will be run against (can be null, indicating an anonymous user). |
|---|---|
| remoteIssueLinkId | the database ID of the remote issue link |
RemoteIssueLink if all went well. If there was an error the remote issue link
will be null and the error collection will contain details of what went wrong. Some possible error cases include
a remote issue link with the given id not existing, issue linking being disabled, or the user not having
BROWSE permission for the linked issue.
This method is deprecated.
as of v6.1. Use getRemoteIssueLink(com.atlassian.jira.user.ApplicationUser, Long) instead.
Retrieves the remote issue link with the given id.
| user | who the permission checks will be run against (can be null, indicating an anonymous user). |
|---|---|
| remoteIssueLinkId | the database ID of the remote issue link |
RemoteIssueLink if all went well. If there was an error the remote issue link
will be null and the error collection will contain details of what went wrong. Some possible error cases include
a remote issue link with the given id not existing, issue linking being disabled, or the user not having
BROWSE permission for the linked issue.Retrieves the remote issue link that links with the given JIRA issue and has the given globalId.
| user | user who the permission checks will be run against (can be null, indicating an anonymous user). |
|---|---|
| issue | the issue to get the remote issue link for |
| globalId | the globalId to get the remote issue link for |
RemoteIssueLink if all went well. If there was an error the remote issue link
will be null and the error collection will contain details of what went wrong. Some possible error cases include
a remote issue link with the given globalId not existing, issue linking being disabled, or the user not having
BROWSE permission for the linked issue.
This method is deprecated.
as of v6.1. Use getRemoteIssueLinkByGlobalId(com.atlassian.jira.user.ApplicationUser, com.atlassian.jira.issue.Issue, String) instead.
Retrieves the remote issue link that links with the given JIRA issue and has the given globalId.
| user | user who the permission checks will be run against (can be null, indicating an anonymous user). |
|---|---|
| issue | the issue to get the remote issue link for |
| globalId | the globalId to get the remote issue link for |
RemoteIssueLink if all went well. If there was an error the remote issue link
will be null and the error collection will contain details of what went wrong. Some possible error cases include
a remote issue link with the given globalId not existing, issue linking being disabled, or the user not having
BROWSE permission for the linked issue.
This method is deprecated.
as of v6.1. Use getRemoteIssueLinksForIssue(com.atlassian.jira.user.ApplicationUser, com.atlassian.jira.issue.Issue) instead.
Retrieves the remote issue links that link with the given JIRA issue.
| user | user who the permission checks will be run against (can be null, indicating an anonymous user). |
|---|---|
| issue | the issue to get the remote issue links for |
RemoteIssueLinks if all went well. If no remote issue links are
stored against the issue, the list will be empty. If there was an error the remote issue links list will be null
and the error collection will contain details of what went wrong. Some possible error cases include the given
issue not existing, linking being disabled, or the user not having
BROWSE permission for the linked issue.Retrieves the remote issue links that link with the given JIRA issue.
| user | user who the permission checks will be run against (can be null, indicating an anonymous user). |
|---|---|
| issue | the issue to get the remote issue links for |
RemoteIssueLinks if all went well. If no remote issue links are
stored against the issue, the list will be empty. If there was an error the remote issue links list will be null
and the error collection will contain details of what went wrong. Some possible error cases include the given
issue not existing, linking being disabled, or the user not having
BROWSE permission for the linked issue.
This method is deprecated.
as of v6.1. Use update(com.atlassian.jira.user.ApplicationUser, com.atlassian.jira.bc.issue.link.RemoteIssueLinkService.UpdateValidationResult) instead.
Updates the given remote issue link in the JIRA datastore, if the current user has permission to do so.
| user | user user who the permission checks will be run against (can be null, indicating an anonymous user). |
|---|---|
| updateValidationResult | contains the remote issue link to update. This should have been created by the
validateUpdate(User, RemoteIssueLink) method. The result must have
isValid() return true. If false this method will throw an
IllegalStateException. The remote issue link is updated using all of the values in this object. Null values are written
as null, and must adhere to the required field constraints. |
RemoteIssueLink if all went well. If there was an error
updating the remote issue link then the remote issue link will be null and the error collection will contain details of what
went wrong.Updates the given remote issue link in the JIRA datastore, if the current user has permission to do so.
| user | user user who the permission checks will be run against (can be null, indicating an anonymous user). |
|---|---|
| updateValidationResult | contains the remote issue link to update. This should have been created by the
validateUpdate(User, RemoteIssueLink) method. The result must have
isValid() return true. If false this method will throw an
IllegalStateException. The remote issue link is updated using all of the values in this object. Null values are written
as null, and must adhere to the required field constraints. |
RemoteIssueLink if all went well. If there was an error
updating the remote issue link then the remote issue link will be null and the error collection will contain details of what
went wrong.
This method is deprecated.
as of v6.1. Use validateCreate(com.atlassian.jira.user.ApplicationUser, com.atlassian.jira.issue.link.RemoteIssueLink) instead.
Validates parameters and checks permissions, and if all checks pass it will create a
RemoteIssueLinkService.CreateValidationResult that can be passed to the create(User, CreateValidationResult) method.
If any validation fails the result will contain a null RemoteIssueLink.
| user | user who the permission checks will be run against (can be null, indicating an anonymous user). |
|---|---|
| remoteIssueLink | the remote issue link to create |
RemoteIssueLink, otherwise the RemoteIssueLink will be null.
The result also contains an error collection that will contain any error messages that may have been generated
when performing the operation.Validates parameters and checks permissions, and if all checks pass it will create a
RemoteIssueLinkService.CreateValidationResult that can be passed to the create(User, CreateValidationResult) method.
If any validation fails the result will contain a null RemoteIssueLink.
| user | user who the permission checks will be run against (can be null, indicating an anonymous user). |
|---|---|
| remoteIssueLink | the remote issue link to create |
RemoteIssueLink, otherwise the RemoteIssueLink will be null.
The result also contains an error collection that will contain any error messages that may have been generated
when performing the operation.
This method is deprecated.
as of v6.1. Use validateDelete(com.atlassian.jira.user.ApplicationUser, Long) instead.
Validates parameters and checks permissions, and if all checks pass it will create a
RemoteIssueLinkService.DeleteValidationResult that can be passed to the delete(User, DeleteValidationResult) method.
| user | who the permission checks will be run against (can be null, indicating an anonymous user). |
|---|---|
| remoteIssueLinkId | the id of the remote issue link to delete |
Validates parameters and checks permissions, and if all checks pass it will create a
RemoteIssueLinkService.DeleteValidationResult that can be passed to the delete(User, DeleteValidationResult) method.
| user | who the permission checks will be run against (can be null, indicating an anonymous user). |
|---|---|
| remoteIssueLinkId | the id of the remote issue link to delete |
This method is deprecated.
as of v6.1. Use validateDeleteByGlobalId(com.atlassian.jira.user.ApplicationUser, com.atlassian.jira.issue.Issue, String) instead.
Validates parameters and checks permissions, and if all checks pass it will create a
RemoteIssueLinkService.DeleteByGlobalIdValidationResult that can be passed to the
deleteByGlobalId(User, DeleteByGlobalIdValidationResult) method.
| user | who the permission checks will be run against (can be null, indicating an anonymous user). |
|---|---|
| issue | the issue to get the remote issue link for |
| globalId | the global id to get the remote issue link for |
Validates parameters and checks permissions, and if all checks pass it will create a
RemoteIssueLinkService.DeleteByGlobalIdValidationResult that can be passed to the
deleteByGlobalId(User, DeleteByGlobalIdValidationResult) method.
| user | who the permission checks will be run against (can be null, indicating an anonymous user). |
|---|---|
| issue | the issue to get the remote issue link for |
| globalId | the global id to get the remote issue link for |
This method is deprecated.
as of v6.1. Use validateUpdate(com.atlassian.jira.user.ApplicationUser, com.atlassian.jira.issue.link.RemoteIssueLink) instead.
Validates parameters and checks permissions, and if all checks pass it will create a
RemoteIssueLinkService.UpdateValidationResult that can be passed to the update(User, UpdateValidationResult) method.
Remote link are updated using all of the values in the given remote issue link object. Null values are written as null, and must adhere to the required field constraints.
If any validation fails the result will contain a null RemoteIssueLink.
| user | user who the permission checks will be run against (can be null, indicating an anonymous user). |
|---|---|
| remoteIssueLink | the remote issue link to update |
RemoteIssueLink, otherwise the RemoteIssueLink will be null.
The result also contains an error collection that will contain any error messages that may have been generated
when performing the operation.Validates parameters and checks permissions, and if all checks pass it will create a
RemoteIssueLinkService.UpdateValidationResult that can be passed to the update(User, UpdateValidationResult) method.
Remote link are updated using all of the values in the given remote issue link object. Null values are written as null, and must adhere to the required field constraints.
If any validation fails the result will contain a null RemoteIssueLink.
| user | user who the permission checks will be run against (can be null, indicating an anonymous user). |
|---|---|
| remoteIssueLink | the remote issue link to update |
RemoteIssueLink, otherwise the RemoteIssueLink will be null.
The result also contains an error collection that will contain any error messages that may have been generated
when performing the operation.