public final class

CachingTrustedApplicationManager

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

Class Overview

TrustedApplicationManager that caches the info objects in memory.

Summary

Public Constructors
CachingTrustedApplicationManager(TrustedApplicationManager delegate, CacheManager cacheManager)
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.
@EventListener void onClearCache(ClearCacheEvent event)
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 CachingTrustedApplicationManager (TrustedApplicationManager delegate, CacheManager cacheManager)

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

@EventListener public void onClearCache (ClearCacheEvent event)

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.