public interface TrustedApplicationService
TrustedApplicationInfo
objects in JIRAModifier and Type | Field and Description |
---|---|
static Comparator<TrustedApplicationInfo> |
NAME_COMPARATOR
Compares two given TrustedApplicationInfo objects by their names and returns the result of the comparison.
|
Modifier and Type | Method and Description |
---|---|
boolean |
delete(JiraServiceContext jiraServiceContext,
long id)
Deletes the
TrustedApplicationInfo with the specified ID. |
TrustedApplicationInfo |
get(JiraServiceContext jiraServiceContext,
long id)
Find a
TrustedApplicationInfo given an ID. |
TrustedApplicationInfo |
get(JiraServiceContext jiraServiceContext,
String applicationId)
Find a
TrustedApplicationInfo given an application ID. |
Set<TrustedApplicationInfo> |
getAll(JiraServiceContext jiraServiceContext)
Find all
TrustedApplicationInfo objects in the system. |
TrustedApplicationInfo |
store(JiraServiceContext jiraServiceContext,
TrustedApplicationInfo info)
Persist a
TrustedApplicationInfo |
boolean |
validate(JiraServiceContext jiraServiceContext,
SimpleTrustedApplication builder)
Validate that the information contained in the builder is valid and able to be saved.
|
static final Comparator<TrustedApplicationInfo> NAME_COMPARATOR
Set<TrustedApplicationInfo> getAll(JiraServiceContext jiraServiceContext)
TrustedApplicationInfo
objects in the system.jiraServiceContext
- jiraServiceContext containing the user who the permission checks will be run against (can be null,
indicating an anonymous user) and the errorCollection that will contain any errors in calling the methodTrustedApplicationInfo
. Empty (not null) if none exist.TrustedApplicationInfo get(JiraServiceContext jiraServiceContext, String applicationId)
TrustedApplicationInfo
given an application ID.jiraServiceContext
- jiraServiceContext containing the user who the permission checks will be run against (can be null,
indicating an anonymous user) and the errorCollection that will contain any errors in calling the methodapplicationId
- the id of the applicationTrustedApplicationInfo
if found, null otherwise.TrustedApplicationInfo get(JiraServiceContext jiraServiceContext, long id)
TrustedApplicationInfo
given an ID.jiraServiceContext
- jiraServiceContext containing the user who the permission checks will be run against (can be null,
indicating an anonymous user) and the errorCollection that will contain any errors in calling the methodid
- the id of the applicationTrustedApplicationInfo
if found, null otherwise.boolean delete(JiraServiceContext jiraServiceContext, long id)
TrustedApplicationInfo
with the specified ID.jiraServiceContext
- jiraServiceContext containing the user who the permission checks will be run against (can be null,
indicating an anonymous user) and the errorCollection that will contain any errors in calling the methodid
- the id of the application to deleteTrustedApplicationInfo store(JiraServiceContext jiraServiceContext, TrustedApplicationInfo info)
TrustedApplicationInfo
jiraServiceContext
- jiraServiceContext containing the user who the permission checks will be run against (can be null,
indicating an anonymous user) and the errorCollection that will contain any errors in calling the methodinfo
- the thing to save (create or update). Must not be null.boolean validate(JiraServiceContext jiraServiceContext, SimpleTrustedApplication builder)
jiraServiceContext
- jiraServiceContext containing the user who the permission checks will be run against (can be null,
indicating an anonymous user) and the errorCollection that will contain any errors in calling the methodbuilder
- contains the SimpleTrustedApplication infoCopyright © 2002-2018 Atlassian. All Rights Reserved.