Package com.labs64.netlicensing.service
Class UtilityService
java.lang.Object
com.labs64.netlicensing.service.UtilityService
Provides utility routines.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionlistCountries
(Context context, String filter) Returns all countries.listLicenseTypes
(Context context) Returns all license types.listLicensingModels
(Context context) Returns all licensing models.
-
Constructor Details
-
UtilityService
public UtilityService()
-
-
Method Details
-
listLicenseTypes
Returns all license types.- Parameters:
context
- determines the vendor on whose behalf the call is performed- Returns:
- collection of available license types or null/empty list if nothing found.
- Throws:
NetLicensingException
- any subclass of NetLicensingException. These exceptions will be transformed to the corresponding service response messages.
-
listLicensingModels
Returns all licensing models.- Parameters:
context
- determines the vendor on whose behalf the call is performed- Returns:
- collection of available license models or null/empty list if nothing found.
- Throws:
NetLicensingException
- any subclass of NetLicensingException. These exceptions will be transformed to the corresponding service response messages.
-
listCountries
public static Page<Country> listCountries(Context context, String filter) throws NetLicensingException Returns all countries.- Parameters:
context
- determines the vendor on whose behalf the call is performedfilter
- reserved for the future use, must be omitted / set to NULL- Returns:
- collection of available countries or null/empty list if nothing found.
- Throws:
NetLicensingException
- any subclass of NetLicensingException. These exceptions will be transformed to the corresponding service response messages.
-