@Service public class UserBindWorkspaceService extends BaseDbService<UserBindWorkspaceModel>
Modifier and Type | Field and Description |
---|---|
static String |
SSH_COMMAND_NOT_LIMITED
ssh 终端没有任何限制
|
static String |
SYSTEM_USER
节点管理员
|
key, tableName, tClass
Constructor and Description |
---|
UserBindWorkspaceService(WorkspaceService workspaceService,
UserPermissionGroupServer userPermissionGroupServer) |
Modifier and Type | Method and Description |
---|---|
UserBindWorkspaceModel.PermissionResult |
checkPermission(UserModel userModel,
String workspaceId)
判断是否可以执行,并且验证时间段
|
void |
deleteByUserId(String userId)
删除
|
boolean |
exists(UserModel userModel,
String workspaceId)
查询用户 是否存在工作空间权限
|
boolean |
existsWorkspace(String workspaceId)
判断对应的工作空间是否被用户绑定
|
List<UserBindWorkspaceModel> |
listUserWorkspace(String userId)
查询用户绑定的工作空间
|
List<WorkspaceModel> |
listUserWorkspaceInfo(UserModel userModel)
查询用户绑定的工作空间
|
void |
updateUserWorkspace(String userId,
List<String> workspace)
更新用户的工作空间信息
|
autoClear, autoLoopClear, clearTimeColumns, count, count, covetTableName, defaultOrders, executeClearImpl, fillInsert, getData, getLastTimeValue, insert, insert, insertNotFill, list, listById, listById, listPage, listPage, listPage, parsePage, update, updateById, updateById, upsert
count, count, dataBeanToEntity, del, delByKey, delByKey, entityToBean, entityToBean, entityToBeanList, execute, exists, exists, fillSelectResult, findByCondition, getByKey, getByKey, getByKey, getKey, getTableName, insert, listByBean, listByEntity, listPageOnlyResult, query, query, queryByBean, queryList, queryList, queryList, update, warpException
public static final String SYSTEM_USER
public static final String SSH_COMMAND_NOT_LIMITED
public UserBindWorkspaceService(WorkspaceService workspaceService, UserPermissionGroupServer userPermissionGroupServer)
public void updateUserWorkspace(String userId, List<String> workspace)
userId
- 用户IDworkspace
- 工作空间信息public List<UserBindWorkspaceModel> listUserWorkspace(String userId)
userId
- 用户IDpublic boolean existsWorkspace(String workspaceId)
workspaceId
- 工作空间IDpublic List<WorkspaceModel> listUserWorkspaceInfo(UserModel userModel)
userModel
- 用户public void deleteByUserId(String userId)
userId
- 用户IDpublic boolean exists(UserModel userModel, String workspaceId)
userModel
- 用户workspaceId
- 工作空间public UserBindWorkspaceModel.PermissionResult checkPermission(UserModel userModel, String workspaceId)
userModel
- 用户workspaceId
- 工作空间IDCopyright © 2017–2022. All rights reserved.