com.supermap.data
Class PrivateCloudLicenseManager
- java.lang.Object
-
- com.supermap.data.PrivateCloudLicenseManager
-
public class PrivateCloudLicenseManager extends java.lang.ObjectThe private cloud license manager class.Used to manage the online license information for the current device.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class and Description classPrivateCloudLicenseManager.privateCloudLicInfoPrivate cloud official license information classstatic interfacePrivateCloudLicenseManager.privateLicQueryCallbackSearch private cloud license callback listener
-
Constructor Summary
Constructors Constructor and Description PrivateCloudLicenseManager()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method and Description booleanApplyFormalLicense(int[] codeArray)Applies for a private cloud official licensevoiddispose()Recycles resourcesstatic PrivateCloudLicenseManagergetInstance()Gets the instance of the private license manager class.java.lang.StringgetServerUrl()Gets the private cloud server addressbooleanisModuleValid(int code)After activating a license, determines whether it is validvoidqueryFormalLicense(PrivateCloudLicenseManager.privateLicQueryCallback callback)Search private cloud official license.voidsetServerUrl(java.lang.String url)Sets the private cloud server addressbooleanVerificationLicense(java.lang.String licensecode, int[] codeArray)Verification license
-
-
-
Method Detail
-
getInstance
public static PrivateCloudLicenseManager getInstance()
Gets the instance of the private license manager class.- Returns:
- The instance of the private license manager class.
-
setServerUrl
public void setServerUrl(java.lang.String url)
Sets the private cloud server address- Parameters:
url- the private cloud server address
-
getServerUrl
public java.lang.String getServerUrl()
Gets the private cloud server address- Returns:
- the private cloud server address
-
queryFormalLicense
public void queryFormalLicense(PrivateCloudLicenseManager.privateLicQueryCallback callback)
Search private cloud official license.- Parameters:
callback- the listener callback
-
ApplyFormalLicense
public boolean ApplyFormalLicense(int[] codeArray)
Applies for a private cloud official license- Parameters:
codeArray- The applied module ID array- Returns:
- Returns true unless all modules applied for licenses successfully. Otherwise, returns false
-
dispose
public void dispose()
Recycles resources
-
isModuleValid
public boolean isModuleValid(int code)
After activating a license, determines whether it is valid- Parameters:
code- license module id- Returns:
- whether it is valid.
-
VerificationLicense
public boolean VerificationLicense(java.lang.String licensecode, int[] codeArray)Verification license- Parameter:
licensecode-
-
-