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()
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 applicationTrustedApplicationInfo
if found, null otherwise.public TrustedApplicationInfo get(long id)
TrustedApplicationManager
TrustedApplicationInfo
given an ID.get
in interface TrustedApplicationManager
id
- the id of the applicationTrustedApplicationInfo
if found, null otherwise.public boolean delete(ApplicationUser 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 deletepublic boolean delete(ApplicationUser 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 deletepublic TrustedApplicationInfo store(ApplicationUser 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.Copyright © 2002-2015 Atlassian. All Rights Reserved.