public class DefaultTrustedApplicationManager extends Object implements TrustedApplicationManager
| Constructor and Description |
|---|
DefaultTrustedApplicationManager(TrustedApplicationStore store) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
delete(ApplicationUser user,
long id)
Deletes the
TrustedApplicationInfo with the specified ID. |
boolean |
delete(ApplicationUser 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. |
TrustedApplicationInfo |
store(ApplicationUser user,
TrustedApplicationInfo info)
Persist a
TrustedApplicationInfo |
TrustedApplicationInfo |
store(String user,
TrustedApplicationInfo info)
Persist a
TrustedApplicationInfo |
public DefaultTrustedApplicationManager(TrustedApplicationStore store)
public Set<TrustedApplicationInfo> getAll()
TrustedApplicationManagerTrustedApplicationInfo objects in the system.getAll in interface TrustedApplicationManagerTrustedApplicationInfo. Empty (not null) if none exist.public TrustedApplicationInfo get(String applicationId)
TrustedApplicationManagerTrustedApplicationInfo given an application ID.get in interface TrustedApplicationManagerapplicationId - the id of the applicationTrustedApplicationInfo if found, null otherwise.public TrustedApplicationInfo get(long id)
TrustedApplicationManagerTrustedApplicationInfo given an ID.get in interface TrustedApplicationManagerid - the id of the applicationTrustedApplicationInfo if found, null otherwise.public boolean delete(ApplicationUser user, long id)
TrustedApplicationManagerTrustedApplicationInfo with the specified ID.delete in interface TrustedApplicationManageruser - the user who is performing the deleteid - the id of the application to deletepublic boolean delete(ApplicationUser user, String applicationId)
TrustedApplicationManagerTrustedApplicationInfo with the specified application ID.delete in interface TrustedApplicationManageruser - the user who is performing the deleteapplicationId - the id of the application to deletepublic TrustedApplicationInfo store(ApplicationUser user, TrustedApplicationInfo info)
TrustedApplicationManagerTrustedApplicationInfostore in interface TrustedApplicationManageruser - 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)
TrustedApplicationManagerTrustedApplicationInfostore in interface TrustedApplicationManageruser - the user who is performing the storeinfo - the thing to save (create or update). Must not be null.Copyright © 2002-2019 Atlassian. All Rights Reserved.