Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

Retrieving Issued Floating License Leases with JAVA API - Example?

I tried to retrieve the used licenses for our JTS license server with the Java API.

After studying the API doc, we found that this should work with the ILicenseAdminService2 interface.

In principle the tool is working (so we can connect, ask from the license types, but this is an  ILicenseAdminService).

ILicenseAdminService2 licenseService = (ILicenseAdminService2) ((TeamRepository)repository).getServiceInterface(ILicenseAdminService2.class);
I
ContributorLicenseType[] licenseTypes = licenseService.getLicenseTypes();

Then we tried the function

UsedLicenseInfoDTO used = licenseService.getUsedLicenseInfo();

But it seems, that we only get an empty DTO

com.ibm.team.repository.common.model.impl.UsedLicenseInfoDTOImpl@f44031 (internalId: <unset>) (totalUsedCount: 0, countedActiveLeases: 0)

In another post there was mentioned another DTO (LicenseLeaseDTO) but I found no other information about this DTO

 

Does anyone know, if we missed something (or using wrong interfaces)? Or is there a documentation about this?


0 votes


Be the first one to answer this question!

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 411
× 110

Question asked: Aug 28 '13, 8:14 a.m.

Question was seen: 3,172 times

Last updated: Aug 28 '13, 8:14 a.m.

Confirmation Cancel Confirm