public class CtpDeviceSecretAccessScopeManagerImpl extends java.lang.Object implements CtpDeviceSecretAccessScopeManager
| 限定符和类型 | 字段和说明 |
|---|---|
com.google.common.cache.Cache<java.lang.String,java.util.List<CtpDeviceSecretAccessScope>> |
CtpDeviceSecretAccessScopeCache |
| 构造器和说明 |
|---|
CtpDeviceSecretAccessScopeManagerImpl() |
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
addressConflictChecking(java.lang.String deviceAddress,
CtpDeviceSecretAccessScope ctpDeviceSecretAccessScope,
java.lang.String name)
进行冲突校验查看传入ip是否已存在 .
|
void |
clearScopeCache() |
void |
deleteDeviceScopesBydeviceSecId(CtpDeviceSecretAccessScope ctpDeviceSecretAccessScope)
删除设备范围
|
java.util.List<CtpDeviceSecretAccessScope> |
getAllDeviceScope()
获取所有设备范围
|
java.util.List<CtpDeviceSecretAccessScope> |
getCtpDeviceScopeBydeviceSecId(java.lang.Long deviceSecId)
通过deviceSecId查询该密级的设备范围
|
CtpDeviceSecretAccessScope |
getCtpDeviceScopeById(CtpDeviceSecretAccessScope ctpDeviceSecretAccessScope)
通过ID查询设备范围
|
java.util.List<CtpDeviceSecretAccessScope> |
getCtpDeviceSecretAccessScopeList()
从缓存中获取所有设备密级范围名单
|
boolean |
ipExistsInRange(java.lang.String ip,
java.lang.String ipSection)
校验ip是否存在ip段中
|
static boolean |
ipRangeExistsInRange(java.lang.String ip,
java.lang.String ipSection) |
java.lang.String |
parseAbbreviationToFullIPv6(java.lang.String abbreviation) |
void |
setCtpDeviceSecretAccessScopeDao(CtpDeviceSecretAccessScopeDao ctpDeviceSecretAccessScopeDao) |
void |
setCtpDeviceSecretManager(CtpDeviceSecretManager ctpDeviceSecretManager) |
java.util.List<CtpDeviceSecretAccessScope> |
upsertDeviceScope(CtpDeviceSecretAccessScope ctpDeviceSecretAccessScope)
增加或修改设备范围
|
public com.google.common.cache.Cache<java.lang.String,java.util.List<CtpDeviceSecretAccessScope>> CtpDeviceSecretAccessScopeCache
public void setCtpDeviceSecretManager(CtpDeviceSecretManager ctpDeviceSecretManager)
public void setCtpDeviceSecretAccessScopeDao(CtpDeviceSecretAccessScopeDao ctpDeviceSecretAccessScopeDao)
public void clearScopeCache()
public java.util.List<CtpDeviceSecretAccessScope> getCtpDeviceSecretAccessScopeList()
CtpDeviceSecretAccessScopeManagerpublic java.util.List<CtpDeviceSecretAccessScope> getAllDeviceScope()
CtpDeviceSecretAccessScopeManagergetAllDeviceScope 在接口中 CtpDeviceSecretAccessScopeManagerpublic java.util.List<CtpDeviceSecretAccessScope> upsertDeviceScope(CtpDeviceSecretAccessScope ctpDeviceSecretAccessScope) throws com.seeyon.ctp.common.exceptions.BusinessException
CtpDeviceSecretAccessScopeManagerupsertDeviceScope 在接口中 CtpDeviceSecretAccessScopeManagercom.seeyon.ctp.common.exceptions.BusinessExceptionpublic void deleteDeviceScopesBydeviceSecId(CtpDeviceSecretAccessScope ctpDeviceSecretAccessScope)
CtpDeviceSecretAccessScopeManagerpublic CtpDeviceSecretAccessScope getCtpDeviceScopeById(CtpDeviceSecretAccessScope ctpDeviceSecretAccessScope)
CtpDeviceSecretAccessScopeManagerpublic java.util.List<CtpDeviceSecretAccessScope> getCtpDeviceScopeBydeviceSecId(java.lang.Long deviceSecId)
CtpDeviceSecretAccessScopeManagerpublic boolean addressConflictChecking(java.lang.String deviceAddress,
CtpDeviceSecretAccessScope ctpDeviceSecretAccessScope,
java.lang.String name)
throws com.seeyon.ctp.common.exceptions.BusinessException
CtpDeviceSecretAccessScopeManageraddressConflictChecking 在接口中 CtpDeviceSecretAccessScopeManagercom.seeyon.ctp.common.exceptions.BusinessExceptionpublic boolean ipExistsInRange(java.lang.String ip,
java.lang.String ipSection)
CtpDeviceSecretAccessScopeManageripExistsInRange 在接口中 CtpDeviceSecretAccessScopeManagerpublic static boolean ipRangeExistsInRange(java.lang.String ip,
java.lang.String ipSection)
public java.lang.String parseAbbreviationToFullIPv6(java.lang.String abbreviation)