|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.jira.security.auth.trustedapps.CachingTrustedApplicationStore
public final class CachingTrustedApplicationStore
TrustedApplicationStore that caches the data objects in memory.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface com.atlassian.jira.security.auth.trustedapps.TrustedApplicationStore |
|---|
TrustedApplicationStore.Fields |
| Field Summary |
|---|
| Fields inherited from interface com.atlassian.jira.security.auth.trustedapps.TrustedApplicationStore |
|---|
ENTITY_NAME |
| Constructor Summary | |
|---|---|
CachingTrustedApplicationStore(TrustedApplicationStore delegate,
com.atlassian.event.api.EventPublisher eventPublisher)
|
|
| Method Summary | |
|---|---|
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. |
void |
onClearCache(ClearCacheEvent event)
|
void |
start()
This method wil be called after the plugin system is fully initialised and all components added to the dependency injection framework. |
com.atlassian.jira.security.auth.trustedapps.TrustedApplicationData |
store(com.atlassian.jira.security.auth.trustedapps.TrustedApplicationData trustedApplicationData)
Persist a TrustedApplicationData |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CachingTrustedApplicationStore(TrustedApplicationStore delegate,
com.atlassian.event.api.EventPublisher eventPublisher)
| Method Detail |
|---|
public void start()
throws Exception
Startable
start in interface StartableException - Allows implementations to throw an Exception.@EventListener public void onClearCache(ClearCacheEvent event)
public Set<com.atlassian.jira.security.auth.trustedapps.TrustedApplicationData> getAll()
TrustedApplicationStoreTrustedApplicationData objects in the database.
getAll in interface TrustedApplicationStoreTrustedApplicationData in the database. Empty (not null) if none exist.public com.atlassian.jira.security.auth.trustedapps.TrustedApplicationData getByApplicationId(String applicationId)
TrustedApplicationStoreTrustedApplicationData given an application ID.
getByApplicationId in interface TrustedApplicationStoreapplicationId - the id of the application
TrustedApplicationData if found, null otherwise.public com.atlassian.jira.security.auth.trustedapps.TrustedApplicationData getById(long id)
TrustedApplicationStoreTrustedApplicationData given an ID.
getById in interface TrustedApplicationStoreid - the id of the application
TrustedApplicationData if found, null otherwise.public com.atlassian.jira.security.auth.trustedapps.TrustedApplicationData store(com.atlassian.jira.security.auth.trustedapps.TrustedApplicationData trustedApplicationData)
TrustedApplicationStoreTrustedApplicationData
store in interface TrustedApplicationStoretrustedApplicationData - the thing to save (create or update). Must not be null.
public boolean delete(long id)
TrustedApplicationStoreTrustedApplicationData with the specified ID.
delete in interface TrustedApplicationStoreid - the id of the application to delete
public boolean delete(String applicationId)
TrustedApplicationStoreTrustedApplicationData with the specified application ID.
delete in interface TrustedApplicationStoreapplicationId - the id of the application to delete
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||