|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface TrustedApplicationService
Contains methods for managing TrustedApplicationInfo
objects in JIRA
Field Summary | |
---|---|
static Comparator<TrustedApplicationInfo> |
NAME_COMPARATOR
Compares two given TrustedApplicationInfo objects by their names and returns the result of the comparison. |
Method Summary | |
---|---|
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. |
Field Detail |
---|
static final Comparator<TrustedApplicationInfo> NAME_COMPARATOR
Method Detail |
---|
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 method
TrustedApplicationInfo
. 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 application
TrustedApplicationInfo
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 application
TrustedApplicationInfo
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 delete
TrustedApplicationInfo 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 info
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |