com.supermap.data
接口 LicenseService
-
- 所有已知实现类:
- LicenseFileServiceImpl
已过时。As of release 10.0, replaced byLicenseService
@Deprecated public interface LicenseService
许可基类,将核心方法提出来,HASP的许可需要独立出一个新的jar包,通过SPI的方式连接- 作者:
- Gouyu
-
-
方法概要
所有方法 实例方法 抽象方法 已过时的方法 限定符和类型 方法和说明 intconnect(int featureID)已过时。连接许可模块号intconnect(ProductType product)已过时。连接预定义许可模块voiddisconnect()已过时。断开许可连接voiddispose()已过时。释放资源,包括断开许可连接StringgetCompany()已过时。获取公司信息StringgetErrorMessage(int code)已过时。获取错误信息LicenseFeatureInfogetFeatureInfo()已过时。获取许可的信息StringgetImplName()已过时。获取实现类的名字,用来识别不同的扩展StringgetUser()已过时。获取用户信息BooleanisCloudLicense()已过时。是否云许可intverify()已过时。验证许可连接是否有效
-
-
-
方法详细资料
-
connect
int connect(ProductType product)
已过时。连接预定义许可模块- 参数:
product- 预定义许可模块- 返回:
- 是否连接成功,成功返回0
-
connect
int connect(int featureID)
已过时。连接许可模块号- 参数:
featureID- 许可模块号- 返回:
- 是否连接成功,成功返回0
-
verify
int verify()
已过时。验证许可连接是否有效- 返回:
- 是否有效,成功返回0
-
getFeatureInfo
LicenseFeatureInfo getFeatureInfo()
已过时。获取许可的信息- 返回:
- 信息
-
getImplName
String getImplName()
已过时。获取实现类的名字,用来识别不同的扩展- 返回:
-
getUser
String getUser()
已过时。获取用户信息- 返回:
- 用户信息
-
getCompany
String getCompany()
已过时。获取公司信息- 返回:
- 公司信息
-
isCloudLicense
Boolean isCloudLicense()
已过时。是否云许可- 返回:
- 是否云许可
-
getErrorMessage
String getErrorMessage(int code)
已过时。获取错误信息- 参数:
code- 错误码- 返回:
- 错误信息
-
disconnect
void disconnect()
已过时。断开许可连接
-
dispose
void dispose()
已过时。释放资源,包括断开许可连接
-
-
Copyright © 2021–2025 SuperMap. All rights reserved.