|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface RemoteLinkConversationService
Manages conversation during the remote link creation process.
A conversation associates a token, a user and a status. The user send a page creation to Confluence request with a JIRA Agile entity to link and a token that identifies the conversation created thanks tostartConversation(User)
. Then Confluences calls our link creation REST endpoints
with the token so that we can redeem the stored conversation and create the link on behalf of the user who has
initiated the page creation request.
Nested Class Summary | |
---|---|
static class |
RemoteLinkConversationService.CreationConversation
Represents the "conversation" after a creation request. |
Method Summary | |
---|---|
ServiceOutcome<RemoteLinkConversationService.CreationConversation> |
getConversation(java.lang.String token)
Returns the conversation associated with the given token. |
ServiceOutcome<RemoteLinkConversationService.CreationConversation> |
redeemConversation(java.lang.String token)
Reddeems the conversation associated with the given token. |
ServiceOutcome<RemoteLinkConversationService.CreationConversation> |
startConversation(com.atlassian.crowd.embedded.api.User user)
Starts a new conversation for the logged in user, passes it in the RemoteLinkConversationService.CreationConversation.Status.PENDING
state and returns the conversation token. |
Methods inherited from interface com.atlassian.greenhopper.manager.GreenHopperCache |
---|
flushCache |
Method Detail |
---|
ServiceOutcome<RemoteLinkConversationService.CreationConversation> startConversation(com.atlassian.crowd.embedded.api.User user)
RemoteLinkConversationService.CreationConversation.Status.PENDING
state and returns the conversation token.
The conversation is stored for a duration defined by the implementation.
user
- the user to start the conversation for
ServiceOutcome<RemoteLinkConversationService.CreationConversation> redeemConversation(java.lang.String token)
token
- the token of the previously created conversation
ServiceOutcome<RemoteLinkConversationService.CreationConversation> getConversation(java.lang.String token)
ServiceOutcome
will not be valid.
token
- the token of the previously created conversation
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |