Interface TrustedApplicationStore

All Known Implementing Classes:
CachingTrustedApplicationStore, DefaultTrustedApplicationStore

public interface TrustedApplicationStore
Persistent store for TrustedApplicationData
Since:
v3.12
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static final class 
     
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    delete(long id)
    Deletes the TrustedApplicationData with the specified ID.
    boolean
    delete(String applicationId)
    Deletes the TrustedApplicationData with the specified application ID.
    Set<com.atlassian.jira.security.auth.trustedapps.TrustedApplicationData>
    Find all TrustedApplicationData objects in the database.
    com.atlassian.jira.security.auth.trustedapps.TrustedApplicationData
    getByApplicationId(String applicationId)
    Find a TrustedApplicationData given an application ID.
    com.atlassian.jira.security.auth.trustedapps.TrustedApplicationData
    getById(long id)
    Find a TrustedApplicationData given an ID.
    com.atlassian.jira.security.auth.trustedapps.TrustedApplicationData
    store(com.atlassian.jira.security.auth.trustedapps.TrustedApplicationData trustedApplicationData)
    Persist a TrustedApplicationData
  • Field Details

  • Method Details

    • store

      com.atlassian.jira.security.auth.trustedapps.TrustedApplicationData store(com.atlassian.jira.security.auth.trustedapps.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.
    • getByApplicationId

      com.atlassian.jira.security.auth.trustedapps.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.
    • getById

      com.atlassian.jira.security.auth.trustedapps.TrustedApplicationData getById(long id)
      Find a TrustedApplicationData given an ID.
      Parameters:
      id - the id of the application
      Returns:
      the TrustedApplicationData if found, null otherwise.
    • getAll

      Set<com.atlassian.jira.security.auth.trustedapps.TrustedApplicationData> getAll()
      Find all TrustedApplicationData objects in the database.
      Returns:
      a Collection of all TrustedApplicationData in the database. Empty (not null) if none exist.
    • delete

      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.
    • delete

      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.