public class

DefaultTrustedApplicationManager

extends Object
implements TrustedApplicationManager
java.lang.Object
   ↳ com.atlassian.jira.security.auth.trustedapps.DefaultTrustedApplicationManager

Summary

Public Constructors
DefaultTrustedApplicationManager(TrustedApplicationStore store)
Public Methods
boolean delete(ApplicationUser user, String applicationId)
Deletes the TrustedApplicationInfo with the specified application ID.
boolean delete(ApplicationUser user, long id)
Deletes the TrustedApplicationInfo with the specified ID.
TrustedApplicationInfo get(long id)
Find a TrustedApplicationInfo given an ID.
TrustedApplicationInfo get(String applicationId)
Find a TrustedApplicationInfo given an application ID.
Set<TrustedApplicationInfo> getAll()
Find all TrustedApplicationInfo objects in the system.
TrustedApplicationInfo store(String user, TrustedApplicationInfo info)
TrustedApplicationInfo store(ApplicationUser user, TrustedApplicationInfo info)
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.atlassian.jira.security.auth.trustedapps.TrustedApplicationManager

Public Constructors

public DefaultTrustedApplicationManager (TrustedApplicationStore store)

Public Methods

public boolean delete (ApplicationUser user, String applicationId)

Deletes the TrustedApplicationInfo with the specified application ID.

Parameters
user the user who is performing the delete
applicationId the id of the application to delete
Returns
  • true if the application was successfully deleted, false otherwise.

public boolean delete (ApplicationUser user, long id)

Deletes the TrustedApplicationInfo with the specified ID.

Parameters
user the user who is performing the delete
id the id of the application to delete
Returns
  • true if the application was successfully deleted, false otherwise.

public TrustedApplicationInfo get (long id)

Find a TrustedApplicationInfo given an ID.

Parameters
id the id of the application
Returns

public TrustedApplicationInfo get (String applicationId)

Find a TrustedApplicationInfo given an application ID.

Parameters
applicationId the id of the application
Returns

public Set<TrustedApplicationInfo> getAll ()

Find all TrustedApplicationInfo objects in the system.

Returns

public TrustedApplicationInfo store (String user, TrustedApplicationInfo info)

Parameters
user the user who is performing the store
info the thing to save (create or update). Must not be null.
Returns
  • the updated or created business object.

public TrustedApplicationInfo store (ApplicationUser user, TrustedApplicationInfo info)

Parameters
user the user who is performing the store
info the thing to save (create or update). Must not be null.
Returns
  • the updated or created business object.