Interface TrustedApplicationStore
- All Known Implementing Classes:
CachingTrustedApplicationStore
,DefaultTrustedApplicationStore
public interface TrustedApplicationStore
Persistent store for
TrustedApplicationData
- Since:
- v3.12
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionboolean
delete
(long id) Deletes theTrustedApplicationData
with the specified ID.boolean
Deletes theTrustedApplicationData
with the specified application ID.Set<com.atlassian.jira.security.auth.trustedapps.TrustedApplicationData>
getAll()
Find allTrustedApplicationData
objects in the database.com.atlassian.jira.security.auth.trustedapps.TrustedApplicationData
getByApplicationId
(String applicationId) Find aTrustedApplicationData
given an application ID.com.atlassian.jira.security.auth.trustedapps.TrustedApplicationData
getById
(long id) Find aTrustedApplicationData
given an ID.com.atlassian.jira.security.auth.trustedapps.TrustedApplicationData
store
(com.atlassian.jira.security.auth.trustedapps.TrustedApplicationData trustedApplicationData) Persist aTrustedApplicationData
-
Field Details
-
ENTITY_NAME
- See Also:
-
-
Method Details
-
store
com.atlassian.jira.security.auth.trustedapps.TrustedApplicationData store(com.atlassian.jira.security.auth.trustedapps.TrustedApplicationData trustedApplicationData) Persist aTrustedApplicationData
- 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 aTrustedApplicationData
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 aTrustedApplicationData
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 allTrustedApplicationData
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 theTrustedApplicationData
with the specified ID.- Parameters:
id
- the id of the application to delete- Returns:
- true if the application was successfully deleted, false otherwise.
-
delete
Deletes theTrustedApplicationData
with the specified application ID.- Parameters:
applicationId
- the id of the application to delete- Returns:
- true if the application was successfully deleted, false otherwise.
-