@Transactional public class ApplicationLicensingServiceImpl extends Object implements ApplicationLicensingService
| Modifier and Type | Field and Description |
|---|---|
static String |
APPLICATION_ID_PARAM |
| Constructor and Description |
|---|
ApplicationLicensingServiceImpl(DirectoryManager directoryManager,
LicensingSummaryDao licensingSummaryDao,
LicensedUserDao licensedUserDao,
DirectoryInfoDao directoryInfoDao,
ApplicationDAO applicationDAO,
com.atlassian.beehive.ClusterLockService lockService,
Clock clock,
ApplicationLinkServiceSupplier serviceSupplier,
com.atlassian.scheduler.SchedulerService schedulerService,
ApplicationLicensingEnabledChecker licensingEnabledChecker) |
| 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 productType,
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
|
public static final String APPLICATION_ID_PARAM
public ApplicationLicensingServiceImpl(DirectoryManager directoryManager, LicensingSummaryDao licensingSummaryDao, LicensedUserDao licensedUserDao, DirectoryInfoDao directoryInfoDao, ApplicationDAO applicationDAO, com.atlassian.beehive.ClusterLockService lockService, Clock clock, ApplicationLinkServiceSupplier serviceSupplier, com.atlassian.scheduler.SchedulerService schedulerService, ApplicationLicensingEnabledChecker licensingEnabledChecker)
public boolean canShowLicenseUsageForApplication(Long applicationId) throws ApplicationNotFoundException
ApplicationLicensingServicecanShowLicenseUsageForApplication in interface ApplicationLicensingServiceApplicationNotFoundExceptionpublic boolean isVersionUptoDate(Long applicationId, String appSubType, Long version) throws ApplicationNotFoundException
ApplicationLicensingServiceApplicationSubtype if suppliedisVersionUptoDate in interface ApplicationLicensingServiceApplicationNotFoundExceptionpublic List<ApplicationSubtype> listJiraTypes(Long applicationId, Long version) throws ApplicationNotFoundException
ApplicationLicensingServiceApplicationType.JIRA
applicationlistJiraTypes in interface ApplicationLicensingServiceApplicationNotFoundExceptionpublic List<ApplicationLicensedDirectory> listDirectories(Long applicationId, String appSubType, Long version, int start, int limit) throws ApplicationNotFoundException
ApplicationLicensingServicelistDirectories in interface ApplicationLicensingServiceapplicationId - 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 invalidpublic com.atlassian.fugue.Pair<List<ApplicationLicensedUser>,Long> searchLicensedUsers(Long applicationId, String searchText, String directoryId, String productType, Long lastLoggedInDate, Long version, int start, int limit) throws ObjectNotFoundException
ApplicationLicensingServicesearchLicensedUsers in interface ApplicationLicensingServiceapplicationId - application idsearchText - search text to be matched across username, email and full namedirectoryId - directory id to which the user belongproductType - application subtype, only applicable for Jira applicationlastLoggedInDate - last logged in date on or beforeversion - versionstart - offsetlimit - max number of resultsObjectNotFoundExceptionpublic Optional<ApplicationLicensingSummary> getLicensingSummary(Long applicationId, String appSubType, Long version) throws ApplicationNotFoundException
ApplicationLicensingServicegetLicensingSummary in interface ApplicationLicensingServiceApplicationNotFoundExceptionpublic boolean updateApplicationData(Application application)
ApplicationLicensingServiceupdateApplicationData in interface ApplicationLicensingServicepublic void scheduleRefreshApplicationDataJobImmediately(long applicationId)
throws ApplicationNotFoundException
ApplicationLicensingServicescheduleRefreshApplicationDataJobImmediately in interface ApplicationLicensingServiceApplicationNotFoundExceptionpublic void clearAllJobs(Application application)
ApplicationLicensingServiceclearAllJobs in interface ApplicationLicensingServicepublic boolean isLicensingConfigured(Long applicationId) throws ApplicationNotFoundException
ApplicationLicensingServiceisLicensingConfigured in interface ApplicationLicensingServiceapplicationId - ID of application to checkApplicationNotFoundExceptionCopyright © 2025 Atlassian. All rights reserved.