public interface

JaacsService

com.atlassian.jira.crowd.embedded.JaacsService
Known Indirect Subclasses

Class Overview

Service to support configuration of JIRA as a Crowd Service.

Summary

Public Methods
boolean addRemoteAddress(JiraServiceContext jiraServiceContext, String remoteAddress, long applicationId)
Adding a new remote address.
void create(ApplicationUser remoteUser, Application application)
Creates a new Application
boolean deleteApplication(JiraServiceContext jiraServiceContext, long applicationId)
Delete a remote address.
List<Application> findAll(ApplicationUser remoteUser)
Returns a list containing all non-permanent Crowd applications.
ApplicationImpl findById(ApplicationUser remoteUser, Long applicationId)
Returns the Application having the given id.
Set<RemoteAddress> getRemoteAddresses(JiraServiceContext jiraServiceContext, long applicationId)
Retrieve a list of configured remote addresses.
boolean resetPassword(JiraServiceContext jiraServiceContext, String password, long applicationId)
Reset a password.
void update(ApplicationUser remoteUser, Application updatedApplication)
Updates an Application.
boolean validateAddRemoteAddress(JiraServiceContext jiraServiceContext, String remoteAddress, long applicationId)
Validate adding a new remote address.
boolean validateDeleteApplication(JiraServiceContext jiraServiceContext, long applicationId)
Validate deleting a remote address.
boolean validateResetPassword(JiraServiceContext jiraServiceContext, String password, long applicationId)
Validate resetting a password.

Public Methods

public boolean addRemoteAddress (JiraServiceContext jiraServiceContext, String remoteAddress, long applicationId)

Adding a new remote address.

Parameters
jiraServiceContext The service context.
remoteAddress A new address to add
applicationId Application Id
Returns
  • true if validation passes

public void create (ApplicationUser remoteUser, Application application)

Creates a new Application

Parameters
remoteUser a User representing the user on whose behalf to perform the call
application an Application to create
Throws
ValidationFailureException if there is a problem

public boolean deleteApplication (JiraServiceContext jiraServiceContext, long applicationId)

Delete a remote address.

Parameters
jiraServiceContext The service context.
applicationId Application Id
Returns
  • true if validation passes

public List<Application> findAll (ApplicationUser remoteUser)

Returns a list containing all non-permanent Crowd applications.

Parameters
remoteUser a User representing the user on whose behalf to perform the call
Returns
  • a new List
Throws
ValidationFailureException if there is a problem

public ApplicationImpl findById (ApplicationUser remoteUser, Long applicationId)

Returns the Application having the given id.

Parameters
remoteUser a User representing the user on whose behalf to perform the call
applicationId a Long containing an application id, or null if it doesn't exist
Returns
  • an Application
Throws
ValidationFailureException if there is a problem

public Set<RemoteAddress> getRemoteAddresses (JiraServiceContext jiraServiceContext, long applicationId)

Retrieve a list of configured remote addresses.

Parameters
jiraServiceContext The service context.
applicationId Application Id
Returns
  • List of configured remote addresses.

public boolean resetPassword (JiraServiceContext jiraServiceContext, String password, long applicationId)

Reset a password.

Parameters
jiraServiceContext The service context.
password A password string
applicationId Application Id
Returns
  • true if validation passes and action succeeds

public void update (ApplicationUser remoteUser, Application updatedApplication)

Updates an Application. The application having the given id will be updated with the remaining contents.

Parameters
remoteUser a User representing the user on whose behalf to perform the call
updatedApplication an Application to update
Throws
ValidationFailureException if there is a problem

public boolean validateAddRemoteAddress (JiraServiceContext jiraServiceContext, String remoteAddress, long applicationId)

Validate adding a new remote address.

Parameters
jiraServiceContext The service context.
remoteAddress A new address to add
applicationId Application Id
Returns
  • true if validation passes

public boolean validateDeleteApplication (JiraServiceContext jiraServiceContext, long applicationId)

Validate deleting a remote address.

Parameters
jiraServiceContext The service context.
applicationId Application Id
Returns
  • true if validation passes and action succeeds

public boolean validateResetPassword (JiraServiceContext jiraServiceContext, String password, long applicationId)

Validate resetting a password.

Parameters
jiraServiceContext The service context.
password A password string
applicationId Application Id
Returns
  • true if validation passes