public class DefaultTrustedApplicationStore extends Object implements TrustedApplicationStore
TrustedApplicationStore.Fields
ENTITY_NAME
Constructor and Description |
---|
DefaultTrustedApplicationStore(OfBizDelegator ofBizDelegator) |
Modifier and Type | Method and 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> |
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 |
public DefaultTrustedApplicationStore(OfBizDelegator ofBizDelegator)
public com.atlassian.jira.security.auth.trustedapps.TrustedApplicationData getById(long id)
TrustedApplicationStore
TrustedApplicationData
given an ID.getById
in interface TrustedApplicationStore
id
- the id of the applicationTrustedApplicationData
if found, null otherwise.public com.atlassian.jira.security.auth.trustedapps.TrustedApplicationData getByApplicationId(String applicationId)
TrustedApplicationStore
TrustedApplicationData
given an application ID.getByApplicationId
in interface TrustedApplicationStore
applicationId
- the id of the applicationTrustedApplicationData
if found, null otherwise.public Set<com.atlassian.jira.security.auth.trustedapps.TrustedApplicationData> getAll()
TrustedApplicationStore
TrustedApplicationData
objects in the database.getAll
in interface TrustedApplicationStore
TrustedApplicationData
in the database. Empty (not null) if none exist.public com.atlassian.jira.security.auth.trustedapps.TrustedApplicationData store(com.atlassian.jira.security.auth.trustedapps.TrustedApplicationData trustedApplicationData)
TrustedApplicationStore
TrustedApplicationData
store
in interface TrustedApplicationStore
trustedApplicationData
- the thing to save (create or update). Must not be null.public boolean delete(long id)
TrustedApplicationStore
TrustedApplicationData
with the specified ID.delete
in interface TrustedApplicationStore
id
- the id of the application to deletepublic boolean delete(String applicationId)
TrustedApplicationStore
TrustedApplicationData
with the specified application ID.delete
in interface TrustedApplicationStore
applicationId
- the id of the application to deleteCopyright © 2002-2019 Atlassian. All Rights Reserved.