java.lang.Object | |
↳ | com.atlassian.jira.rest.v2.entity.AbstractRemoteEntityLinkResource<S, T extends com.atlassian.jira.entity.remotelink.RemoteEntityLink<S>> |
Known Direct Subclasses |
Common toolkit for implementing remote entity link services.
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
contextUriInfo | |||||||||||
i18n | |||||||||||
jiraAuthenticationContext | |||||||||||
jsonEntityPropertyManager |
Protected Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Forms the
self URI for a link. | |||||||||||
Returns the currently logged in user.
| |||||||||||
Creates a list of JSON beans for the provided remote entity links.
| |||||||||||
Creates a JSON bean for the provided remote entity link.
| |||||||||||
Turns a bean into an normal response object.
| |||||||||||
Responds with a single remote entity link.
| |||||||||||
Responds with a list of remote entity links.
| |||||||||||
Forms a
204 response with no content to acknowledge the successful deletion. | |||||||||||
Forms a
201 response with a Location: header pointing to link 's self URI. | |||||||||||
Verifies that the provided service result is error-free.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
Forms the self
URI for a link.
link | the link to be rendered as a URI |
---|
Returns the currently logged in user.
Creates a list of JSON beans for the provided remote entity links.
links | the remote entity links to be written out |
---|
Creates a JSON bean for the provided remote entity link.
link | the remote entity link to be written out |
---|
Turns a bean into an normal response object.
entity | the object to respond with |
---|
Responds with a single remote entity link. This convenience method is equivalent to
toResponse
(toBean
(link)).
link | the remote entity link to write |
---|
Responds with a list of remote entity links. This convenience method is equivalent to
toResponse
(toBean
(links)).
links | the remote entity links to be written out |
---|
Forms a 204
response with no content to acknowledge the successful deletion.
Forms a 201
response with a Location:
header pointing to link
's self URI.
link | the newly created link |
---|
Verifies that the provided service result is error-free. If it is invalid, then we throw
the appropriate RESTException
containing the error collection instead of returning
the result.
result | the service result to validate |
---|
result
itself