Package de.mid.innovator.srv
Interface ILicensingService
-
- All Known Implementing Classes:
LicenseServer
public interface ILicensingService
This interface is implementet by the Innovator LicenseServer. It can be used to obtain or set all relevant licensing data.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.String
getHostId()
Gets the host id.int
getLicenseCount(LicenseServer.License lic)
Gets the total number of licenses of a given license type.java.lang.String
getLicensee()
Gets the licensee.int
getSerialNumber()
boolean
isLicenseRegistered()
Determines whether [is license registered].void
lockLicense(LicenseServer.License license)
Locks another license of given type.void
registerLicense(java.lang.String key)
Registers a new obtained license.void
registerProgram(InoProgram.Type progType)
void
sendLicenseFile(java.io.FileInputStream fs)
void
unregisterProgram()
-
-
-
Method Detail
-
getHostId
java.lang.String getHostId() throws InoNetException
Gets the host id.- Throws:
InoNetException
-
getLicenseCount
int getLicenseCount(LicenseServer.License lic) throws InoNetException
Gets the total number of licenses of a given license type.- Parameters:
lic
- The license.- Returns:
- the number of licenses that can be used parallel
- Throws:
InoNetException
-
getLicensee
java.lang.String getLicensee() throws InoNetException
Gets the licensee.- Returns:
- a formatted string
- Throws:
InoNetException
-
isLicenseRegistered
boolean isLicenseRegistered() throws InoNetException
Determines whether [is license registered].- Returns:
- true if [is license registered]; otherwise false
- Throws:
InoNetException
-
lockLicense
void lockLicense(LicenseServer.License license) throws InoNetException
Locks another license of given type.- Parameters:
license
- The type of the license to lock.- Throws:
InoNetException
-
registerLicense
void registerLicense(java.lang.String key) throws InoNetException
Registers a new obtained license.- Parameters:
key
- The key.- Throws:
InoNetException
-
sendLicenseFile
void sendLicenseFile(java.io.FileInputStream fs) throws InoNetException, java.io.IOException
- Throws:
InoNetException
java.io.IOException
-
registerProgram
void registerProgram(InoProgram.Type progType) throws InoNetException, InvalidArgumentException
-
unregisterProgram
void unregisterProgram() throws InoNetException
- Throws:
InoNetException
-
getSerialNumber
int getSerialNumber() throws InoNetException
- Throws:
InoNetException
-
-