public interface

TrustedApplicationStore

com.atlassian.jira.security.auth.trustedapps.TrustedApplicationStore
Known Indirect Subclasses

Class Overview

Persistent store for TrustedApplicationData

Summary

Nested Classes
class TrustedApplicationStore.Fields  
Constants
String ENTITY_NAME
Public Methods
boolean delete(long id)
Deletes the TrustedApplicationData with the specified ID.
boolean delete(String applicationId)
Deletes the TrustedApplicationData with the specified application ID.
Set<TrustedApplicationData> getAll()
Find all TrustedApplicationData objects in the database.
TrustedApplicationData getByApplicationId(String applicationId)
Find a TrustedApplicationData given an application ID.
TrustedApplicationData getById(long id)
Find a TrustedApplicationData given an ID.
TrustedApplicationData store(TrustedApplicationData trustedApplicationData)
Persist a TrustedApplicationData

Constants

public static final String ENTITY_NAME

Constant Value: "TrustedApplication"

Public Methods

public boolean delete (long id)

Deletes the TrustedApplicationData with the specified ID.

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

public boolean delete (String applicationId)

Deletes the TrustedApplicationData with the specified application ID.

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

public Set<TrustedApplicationData> getAll ()

Find all TrustedApplicationData objects in the database.

Returns
  • a Collection of all TrustedApplicationData in the database. Empty (not null) if none exist.

public TrustedApplicationData getByApplicationId (String applicationId)

Find a TrustedApplicationData given an application ID.

Parameters
applicationId the id of the application
Returns
  • the TrustedApplicationData if found, null otherwise.

public TrustedApplicationData getById (long id)

Find a TrustedApplicationData given an ID.

Parameters
id the id of the application
Returns
  • the TrustedApplicationData if found, null otherwise.

public TrustedApplicationData store (TrustedApplicationData trustedApplicationData)

Persist a TrustedApplicationData

Parameters
trustedApplicationData the thing to save (create or update). Must not be null.
Returns
  • the updated or created data object.