com.atlassian.jira.security.auth.trustedapps
Interface TrustedApplicationStore

All Known Implementing Classes:
CachingTrustedApplicationStore, DefaultTrustedApplicationStore

public interface TrustedApplicationStore

Persistent store for TrustedApplicationData

Since:
v3.12

Nested Class Summary
static class TrustedApplicationStore.Fields
           
 
Field Summary
static String ENTITY_NAME
           
 
Method Summary
 boolean delete(long id)
          Deletes the TrustedApplicationData with the specified ID.
 Set<com.atlassian.jira.security.auth.trustedapps.TrustedApplicationData> getAll()
          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 Detail

ENTITY_NAME

static final String ENTITY_NAME
See Also:
Constant Field Values
Method Detail

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.


Copyright © 2002-2009 Atlassian. All Rights Reserved.