Interface TrustedApplicationService
- All Known Implementing Classes:
DefaultTrustedApplicationService
public interface TrustedApplicationService
Contains methods for managing
TrustedApplicationInfo
objects in JIRA- Since:
- v3.12
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Comparator<TrustedApplicationInfo>
Compares two given TrustedApplicationInfo objects by their names and returns the result of the comparison. -
Method Summary
Modifier and TypeMethodDescriptionboolean
delete
(JiraServiceContext jiraServiceContext, long id) Deletes theTrustedApplicationInfo
with the specified ID.get
(JiraServiceContext jiraServiceContext, long id) Find aTrustedApplicationInfo
given an ID.get
(JiraServiceContext jiraServiceContext, String applicationId) Find aTrustedApplicationInfo
given an application ID.getAll
(JiraServiceContext jiraServiceContext) Find allTrustedApplicationInfo
objects in the system.store
(JiraServiceContext jiraServiceContext, TrustedApplicationInfo info) Persist aTrustedApplicationInfo
boolean
validate
(JiraServiceContext jiraServiceContext, SimpleTrustedApplication builder) Validate that the information contained in the builder is valid and able to be saved.
-
Field Details
-
NAME_COMPARATOR
Compares two given TrustedApplicationInfo objects by their names and returns the result of the comparison.
-
-
Method Details
-
getAll
Find allTrustedApplicationInfo
objects in the system.- Parameters:
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- Returns:
- a Collection of all
TrustedApplicationInfo
. Empty (not null) if none exist.
-
get
Find aTrustedApplicationInfo
given an application ID.- Parameters:
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- Returns:
- the
TrustedApplicationInfo
if found, null otherwise.
-
get
Find aTrustedApplicationInfo
given an ID.- Parameters:
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- Returns:
- the
TrustedApplicationInfo
if found, null otherwise.
-
delete
Deletes theTrustedApplicationInfo
with the specified ID.- Parameters:
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- Returns:
- true if the application was successfully deleted, false otherwise.
-
store
Persist aTrustedApplicationInfo
- Parameters:
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.- Returns:
- the updated or created business object.
-
validate
Validate that the information contained in the builder is valid and able to be saved.- Parameters:
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- Returns:
- true if validation passed
-