Package com.atlassian.bitbucket.jira
Interface JiraSetupService
public interface JiraSetupService
Encapsulates Jira interactions for:
- creating a reciprocated (2-way) Application Link;
- authenticating that link with Trusted Applications; and
- (optionally) creating a user directory from the selected Jira server.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
createLink
(URI remoteRpcUrl, URI localRpcUrl, String username, String password, boolean setupUserManagement) Create an authenticated, reciprocated Application Link to a Jira server, and optionally set up a Jira user directory for it.
-
Method Details
-
createLink
void createLink(URI remoteRpcUrl, URI localRpcUrl, String username, String password, boolean setupUserManagement) throws JiraSetupException Create an authenticated, reciprocated Application Link to a Jira server, and optionally set up a Jira user directory for it.- Parameters:
remoteRpcUrl
- RPC URL of the remote Jira applicationlocalRpcUrl
- RPC URL of the local Jira application that is resolvable by the remote Jira applicationusername
- Jira administrator usernamepassword
- password corresponding to the supplied usernamesetupUserManagement
- if true, create a local user directory backed by the remote Jira server- Throws:
JiraSetupException
- if something goes wrong with link creation, authentication or Crowd delegation. Clients should display the exception message to the user and log the exception.
-