public interface ApplicationLicensingService
Modifier and Type | Method and Description |
---|---|
boolean |
canShowLicenseUsageForApplication(Long applicationId)
Checks whether license usage data can be fetched/shown for the given application
|
void |
clearAllJobs(Application application)
Clears all jobs scheduled for an application
|
Optional<ApplicationLicensingSummary> |
getLicensingSummary(Long applicationId,
String appSubType,
Long version)
Return the licensing summary if available
|
boolean |
isLicensingConfigured(Long applicationId)
Checks if licensing is configured for specific application
|
boolean |
isVersionUptoDate(Long applicationId,
String appSubType,
Long version)
Checks whether requested version is up to date or not for the given
ApplicationSubtype if supplied |
List<ApplicationLicensedDirectory> |
listDirectories(Long applicationId,
String appSubType,
Long version,
int start,
int limit)
Returns list of directories linked to the users who are consuming licenses in the given application
|
List<ApplicationSubtype> |
listJiraTypes(Long applicationId,
Long version)
Returns list of jira sub-types available for the given
ApplicationType.JIRA
application |
void |
scheduleRefreshApplicationDataJobImmediately(long applicationId)
Schedules updating application license usage data immediately
|
com.atlassian.fugue.Pair<List<ApplicationLicensedUser>,Long> |
searchLicensedUsers(Long applicationId,
String searchText,
String directoryId,
String appSubType,
Long lastLoggedInDate,
Long version,
int start,
int limit)
Returns list of license consuming users in the products along with the total count of users matching the supplied
query
|
boolean |
updateApplicationData(Application application)
Fetches the license usage data from the application and updates the local copy
|
boolean canShowLicenseUsageForApplication(Long applicationId) throws ApplicationNotFoundException
ApplicationNotFoundException
boolean isVersionUptoDate(Long applicationId, String appSubType, Long version) throws ApplicationNotFoundException
ApplicationSubtype
if suppliedApplicationNotFoundException
List<ApplicationSubtype> listJiraTypes(Long applicationId, Long version) throws ApplicationNotFoundException
ApplicationType.JIRA
applicationIllegalArgumentException
- if application is not Jira typeApplicationNotFoundException
List<ApplicationLicensedDirectory> listDirectories(Long applicationId, String appSubType, Long version, int start, int limit) throws ApplicationNotFoundException
applicationId
- application id to search users forappSubType
- Jira subtype, only if the application type is Jiraversion
- version of data requestedstart
- start offset for the resultslimit
- maximum number of resultsApplicationNotFoundException
- if application id invalidIllegalArgumentException
- If version is not availableIllegalStateException
- If supplied application sub type is invalidcom.atlassian.fugue.Pair<List<ApplicationLicensedUser>,Long> searchLicensedUsers(Long applicationId, String searchText, String directoryId, String appSubType, Long lastLoggedInDate, Long version, int start, int limit) throws ObjectNotFoundException
applicationId
- application idsearchText
- search text to be matched across username, email and full namedirectoryId
- directory id to which the user belongappSubType
- application subtype, only applicable for Jira applicationlastLoggedInDate
- last logged in date on or beforeversion
- versionstart
- offsetlimit
- max number of resultsObjectNotFoundException
Optional<ApplicationLicensingSummary> getLicensingSummary(Long applicationId, String appSubType, Long version) throws ApplicationNotFoundException
ApplicationNotFoundException
boolean updateApplicationData(Application application)
void scheduleRefreshApplicationDataJobImmediately(long applicationId) throws ApplicationNotFoundException
ApplicationNotFoundException
void clearAllJobs(Application application)
boolean isLicensingConfigured(Long applicationId) throws ApplicationNotFoundException
applicationId
- ID of application to checkApplicationNotFoundException
Copyright © 2020 Atlassian. All rights reserved.