Package com.labs64.netlicensing.service
Class TokenService
java.lang.Object
com.labs64.netlicensing.service.TokenService
Provides token entity handling routines.
-
Constructor Details
-
TokenService
public TokenService()
-
-
Method Details
-
get
Gets token by its number.- Parameters:
context
- determines the vendor on whose behalf the call is performednumber
- the token number- Returns:
- the token
- Throws:
NetLicensingException
- any subclass of NetLicensingException. These exceptions will be transformed to the corresponding service response messages.
-
list
Returns tokens of a vendor.- Parameters:
context
- determines the vendor on whose behalf the call is performedfilter
- additional criteria to filter type of tokens to return, if NULL return tokens of all types- Returns:
- collection of token entities or null/empty list if nothing found.
- Throws:
NetLicensingException
- any subclass of NetLicensingException. These exceptions will be transformed to the corresponding service response messages.
-
create
Creates new token.- Parameters:
context
- determines the vendor on whose behalf the call is performedtoken
- non-null properties will be updated to the provided values, null properties will stay unchanged.- Returns:
- created token
- Throws:
NetLicensingException
- any subclass of NetLicensingException. These exceptions will be transformed to the corresponding service response messages.
-
delete
Delete token by its number.- Parameters:
context
- determines the vendor on whose behalf the call is performednumber
- the token number- Throws:
NetLicensingException
- any subclass of NetLicensingException. These exceptions will be transformed to the corresponding service response messages.
-