|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.atlassian.jira.security.auth.trustedapps.CachingTrustedApplicationManager
public final class CachingTrustedApplicationManager
TrustedApplicationManager that caches the info objects in memory.
Constructor Summary | |
---|---|
CachingTrustedApplicationManager(TrustedApplicationManager delegate,
com.atlassian.event.api.EventPublisher eventPublisher)
|
Method Summary | |
---|---|
boolean |
delete(com.atlassian.crowd.embedded.api.User user,
long id)
Deletes the TrustedApplicationInfo with the specified ID. |
boolean |
delete(com.atlassian.crowd.embedded.api.User user,
String applicationId)
Deletes the TrustedApplicationInfo with the specified application ID. |
TrustedApplicationInfo |
get(long id)
Find a TrustedApplicationInfo given an ID. |
TrustedApplicationInfo |
get(String applicationId)
Find a TrustedApplicationInfo given an application ID. |
Set<TrustedApplicationInfo> |
getAll()
Find all TrustedApplicationInfo objects in the system. |
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. |
TrustedApplicationInfo |
store(String user,
TrustedApplicationInfo info)
Persist a TrustedApplicationInfo |
TrustedApplicationInfo |
store(com.atlassian.crowd.embedded.api.User user,
TrustedApplicationInfo info)
Persist a TrustedApplicationInfo |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CachingTrustedApplicationManager(TrustedApplicationManager delegate, com.atlassian.event.api.EventPublisher eventPublisher)
Method Detail |
---|
public void start() throws Exception
Startable
start
in interface Startable
Exception
- Allows implementations to throw an Exception.@EventListener public void onClearCache(ClearCacheEvent event)
public Set<TrustedApplicationInfo> getAll()
TrustedApplicationManager
TrustedApplicationInfo
objects in the system.
getAll
in interface TrustedApplicationManager
TrustedApplicationInfo
. Empty (not null) if none exist.public TrustedApplicationInfo get(String applicationId)
TrustedApplicationManager
TrustedApplicationInfo
given an application ID.
get
in interface TrustedApplicationManager
applicationId
- the id of the application
TrustedApplicationInfo
if found, null otherwise.public TrustedApplicationInfo get(long id)
TrustedApplicationManager
TrustedApplicationInfo
given an ID.
get
in interface TrustedApplicationManager
id
- the id of the application
TrustedApplicationInfo
if found, null otherwise.public boolean delete(com.atlassian.crowd.embedded.api.User user, long id)
TrustedApplicationManager
TrustedApplicationInfo
with the specified ID.
delete
in interface TrustedApplicationManager
user
- the user who is performing the deleteid
- the id of the application to delete
public boolean delete(com.atlassian.crowd.embedded.api.User user, String applicationId)
TrustedApplicationManager
TrustedApplicationInfo
with the specified application ID.
delete
in interface TrustedApplicationManager
user
- the user who is performing the deleteapplicationId
- the id of the application to delete
public TrustedApplicationInfo store(com.atlassian.crowd.embedded.api.User user, TrustedApplicationInfo info)
TrustedApplicationManager
TrustedApplicationInfo
store
in interface TrustedApplicationManager
user
- the user who is performing the storeinfo
- the thing to save (create or update). Must not be null.
public TrustedApplicationInfo store(String user, TrustedApplicationInfo info)
TrustedApplicationManager
TrustedApplicationInfo
store
in interface TrustedApplicationManager
user
- the user who is performing the storeinfo
- the thing to save (create or update). Must not be null.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |