@Service public class NodeService extends BaseGroupService<NodeModel>
key, tableName, tClass| Constructor and Description |
|---|
NodeService(SshService sshService,
WorkspaceService workspaceService) |
| Modifier and Type | Method and Description |
|---|---|
int |
del(cn.hutool.db.Entity where)
根据条件删除
|
int |
delByKey(String keyValue)
根据主键生成
|
boolean |
existsByUrl(String url,
String workspaceId,
String id) |
protected void |
fillSelectResult(NodeModel data)
查询结果 填充
|
List<String> |
getDeDuplicationByUrl()
根据 url 去重
|
List<NodeModel> |
getNodeBySshId(String sshId) |
void |
insert(NodeModel nodeModel)
插入数据
|
void |
insertNotFill(NodeModel nodeModel)
不填充 插入
|
List<NodeModel> |
listDeDuplicationByUrl()
根据 url 去重
|
void |
syncToWorkspace(String ids,
String nowWorkspaceId,
String workspaceId)
将节点信息同步到其他工作空间
|
void |
testHttpProxy(String httpProxy)
探测 http proxy 是否可用
|
void |
testNode(NodeModel nodeModel)
测试节点是否可以访问
|
void |
unLock(String id,
String workspaceId)
解锁分配工作空间
|
void |
update(javax.servlet.http.HttpServletRequest request,
boolean autoReg)
修改 节点
|
int |
updateById(NodeModel info)
update by id with data
|
listGroup, repairGroupFiledcheckUserWorkspace, checkUserWorkspace, defaultOrders, delByKey, delByWorkspace, fillInsert, getByKey, getByKey, getCheckUserWorkspace, getWorkspaceId, listById, listByWorkspace, listPage, sortMoveDown, sortMoveUp, sortToTop, updateByIdautoClear, autoLoopClear, clearTimeColumns, count, count, covetTableName, executeClearImpl, getData, getLastTimeValue, insert, list, listById, listById, listPage, listPage, parsePage, update, updateById, upsertcount, count, dataBeanToEntity, delByKey, entityToBean, entityToBean, entityToBeanList, execute, exists, exists, findByCondition, getByKey, getByKey, getByKey, getKey, getTableName, insert, listByBean, listByEntity, listPageOnlyResult, query, query, queryByBean, queryList, queryList, queryList, update, warpExceptionpublic NodeService(SshService sshService, WorkspaceService workspaceService)
protected void fillSelectResult(NodeModel data)
BaseDbCommonServicefillSelectResult in class BaseDbCommonService<NodeModel>data - 数据public void testNode(NodeModel nodeModel)
nodeModel - 节点信息public void update(javax.servlet.http.HttpServletRequest request,
boolean autoReg)
request - 请求对象public void testHttpProxy(String httpProxy)
httpProxy - http proxypublic void unLock(String id, String workspaceId)
id - 节点IDworkspaceId - 工作空间public void syncToWorkspace(String ids, String nowWorkspaceId, String workspaceId)
ids - 多给节点IDnowWorkspaceId - 当前的工作空间IDworkspaceId - 同步到哪个工作空间public void insert(NodeModel nodeModel)
BaseDbCommonServiceinsert in class BaseDbService<NodeModel>nodeModel - 数据public void insertNotFill(NodeModel nodeModel)
BaseDbServiceinsertNotFill in class BaseDbService<NodeModel>nodeModel - 数据public int delByKey(String keyValue)
BaseDbCommonServicedelByKey in class BaseDbCommonService<NodeModel>keyValue - 主键值public int del(cn.hutool.db.Entity where)
BaseDbCommonServicedel in class BaseDbCommonService<NodeModel>where - 条件public int updateById(NodeModel info)
BaseDbServiceupdateById in class BaseDbService<NodeModel>info - dataCopyright © 2017–2022. All rights reserved.