public interface TableDataSyncDBProvider
限定符和类型 | 方法和说明 |
---|---|
void |
addForgedUser(ForgedUser user)
增加一个伪用户
|
boolean |
addJob2User(long userId,
long departmentId,
long postId)
为某个用户增加工作信息
|
void |
addPost(Post post) |
boolean |
addSRole(CustomRole customRole)
tabledata数据验证添加普通角色
|
boolean |
addSRole(java.lang.String userName,
CustomRole customRole)
tabledata数据验证添加user与sRole关联
|
void |
addUser(User user)
增加一个用户
|
void |
addUsersToSRole(CustomRole customRole,
java.util.Set<User> userSet)
tableData数据集验证添加用户到该普通角色
|
boolean |
deleteDepartment(long depId)
删除部门
|
void |
deleteFavoriteNode(FavoriteNode node)
根据node删除收藏夹对象
|
void |
deleteFavoriteNode(long userId,
int type,
long entryId)
删除type userId 以及 entryId 为该值的对象
|
void |
deleteForgedUser(long userid)
删除一个伪用户
|
void |
deleteJRole(long id)
删除某个id的职位角色
|
boolean |
deletePost(long postId)
删除某个岗位
|
void |
deleteUser(long userId)
删除缓存中的一个用户
|
java.util.List<Department> |
findAllDepartment()
返回所有的部门
|
java.util.List<ForgedUser> |
findAllForgedUser()
返回所有伪用户的集合
|
java.util.List<java.lang.Long> |
findAllForgedUserIds()
返回所有伪用户id的集合
|
java.util.List<CompanyRole> |
findAllJRole()
获取所有的部门角色
|
java.util.List<Post> |
findAllPost()
返回所有的Post
|
java.util.List<java.lang.Object> |
findAllSRole()
返回tableData验证所有的普通角色
|
java.util.List<User> |
findAllUser()
返回所有用户的集合
|
java.util.List<java.lang.Long> |
findAllUserIds()
返回所有用户id的集合
|
java.util.Set<RoleDataConnectionPrivilege> |
findDataConnectionPrivilegesByCompanyRoleId(long id)
根据ID查找数据连接的权限
|
java.util.Set<RoleDataConnectionPrivilege> |
findDataConnectionPrivilegesByCustomRoleId(long id)
根据自定义角色ID查找数据连接权限
|
java.util.Set<RoleDataConnectionPrivilege> |
findDataConnectionPrivilegesByCustomRoleName(java.lang.String roleName)
根据角色名查找数据连接权限
|
java.util.Set<RoleDepAndCRolePrivilege> |
findDepAndCRolePrivilegeByCompanyRoleId(long id)
获取部门角色的Dep权限
|
java.util.Set<RoleDepAndCRolePrivilege> |
findDepAndCRolePrivilegeByCustomRoleId(long id)
获取自定义角色的Dep权限
|
java.util.Set<RoleDepAndCRolePrivilege> |
findDepAndCRolePrivilegeByCustomRoleName(java.lang.String roleName)
根据角色名查找部门/自定义角色的权限
|
java.util.Set<UserDepAndCRolePrivilege> |
findDepAndCrolePrivilegesByUserId(long id)
根据用户id获取可管理的角色权限
|
Department |
findDepartmentByDPNameAndPid(java.lang.String deptName,
long pid)
根据部门名称和父id返回部门
|
Department |
findDepartmentByID(long id)
根据部门id返回部门
|
Department |
findDepartmentByName(java.lang.String departmentName)
根据部门名字获取部门
|
Department |
findDepartmentByNameAndParentName(java.lang.String deparmentName,
java.lang.String parentDepartmentName) |
java.util.Set<RoleEntryPrivilege> |
findEntryPrivilegesByJRoleId(long id)
根据JRoleId获取EntriyPrivilege中的entryandid
|
java.util.Set<RoleEntryPrivilege> |
findEntryPrivilegesBySRoleId(long id)
根据SRoleId获取EntriyPrivilege中的entryandid
|
java.util.Set<RoleEntryPrivilege> |
findEntryPrivilegesBySRoleName(java.lang.String name)
根绝角色名查找Entry权限
|
java.util.Set<UserEntryPrivilege> |
findEntryPrivilegesByUserId(long id)
根据用户id获取报表权限
|
java.util.Set<RoleESPrivilege> |
findESPrivilegesByJRoleId(long id)
获取JRole的ES权限
|
java.util.Set<RoleESPrivilege> |
findESPrivilegesBySRoleId(long id)
根据SRole获取ES权限
|
FavoriteNode |
findFavoriteById(long id)
根据id获取favorite对象
|
java.util.List<FavoriteNode> |
findFavoriteNodes(long userId)
获取该用户所有的favorite对象
|
java.util.Set<RoleHomePagePrivilege> |
findHomePagePrivilegeBySRoleName(java.lang.String roleName)
根据角色名查找首页权限
|
java.util.Set<RoleHomePagePrivilege> |
findHomePagePrivilegesByJRoleId(long id)
根据部门角色id获取首页
|
java.util.Set<RoleHomePagePrivilege> |
findHomePagePrivilegesBySRoleId(long id)
根据自定义角色id获取首页
|
java.util.Iterator |
findJobsByUserId(long id)
根据用户id查找他所在的所有部门和职务的集合
|
CompanyRole |
findJRoleByCompanyRoleID(long id)
根据id获取部门角色
|
java.util.List<CompanyRole> |
findJRoleByDepartment(java.lang.Long deptId)
根据部门id获取所有部门角色
|
java.util.List<CompanyRole> |
findJRoleByPost(Post post)
根据职位ID获取所有的部门角色
|
java.util.List<CompanyRole> |
findJRoleByPostAndDepartment(java.lang.Long postId,
java.lang.Long[] deptIds)
根据职位以及部门获取所有的部门角色
|
java.util.Set<RoleModulePrivilege> |
findModulePrivilegeBySRoleName(java.lang.String roleName)
根据角色名查找Module权限
|
java.util.Set<RoleModulePrivilege> |
findModulePrivilegesByJRoleId(long id)
根据JRole id获取Module
|
java.util.Set<RoleModulePrivilege> |
findModulePrivilegesBySRoleId(long id)
根据SRole id获取Module
|
java.util.Set<UserModulePrivilege> |
findModulePrivilegesByUserId(long id)
根据用户id获取报表权限
|
Post |
findPostById(long id)
根据职务id返回职务
|
Post |
findPostByPostName(java.lang.String postName)
根据职位名称返回职位
|
java.lang.String |
findPostNameById(long postId)
根据职位id获取职位名字
|
java.util.Set<RelationObject> |
findPrivilegesByCompanyRoleIDWithPlateName(long id,
java.lang.String plateName)
返回部门角色权限
|
java.util.Set<RelationObject> |
findPrivilegesByCustomRoleIDWithPlateName(long id,
java.lang.String plateName)
返回普通角色对应的板块权限
|
CustomRole |
findSRoleBySRoleID(long id)
根据roleId获取手动添加的角色
|
CustomRole |
findSRoleBySRoleName(java.lang.String customRoleName)
根据角色名称获取角色
|
java.util.Set<RelationObject> |
findSRoleByUserName(java.lang.String userName)
根据UserName获取该user普通角色的set
|
java.util.Set<RoleTemplatePrivilege> |
findTemplatePrivilegeByCompanyRoleId(long id)
根据部门角色ID查找模板权限
|
java.util.Set<RoleTemplatePrivilege> |
findTemplatePrivilegeByCustomRoleId(long id)
根据自定义角色的ID查找模板权限
|
java.util.Set<RoleTemplatePrivilege> |
findTemplatePrivilegeByCustomRoleName(java.lang.String roleName)
根据角色名查找Template权限
|
java.util.Iterator |
findUserAndPostIterator(long id,
boolean toObj)
返回该部门所有职位以及工作信息
|
User |
findUserByMobile(java.lang.String mobile)
根据mobile查找用户对象
|
User |
findUserByUserId(long id)
根据Id获取User
|
User |
findUserByUserName(java.lang.String userName)
根据username获取User信息
|
User[] |
findUsersByEmail(java.lang.String email)
根据邮箱查找所有用户对象
|
User[] |
findUsersByMobile(java.lang.String mobile)
根据mobile查找所有用户对象
|
java.util.Set<java.lang.Long> |
findUserSetByDpAndPost(Department dp,
java.lang.String post)
返回该部门该职位的所有user的id
|
java.util.Set<RelationObject> |
findUserSetBySRoleId(long id,
boolean toObj)
根据customRoleId获取该普通角色的集合
这个方法有待商榷
|
java.util.List<TableDataUser> |
getAllTableDataUsers() |
boolean |
isUserInRole(long userid,
long roleId)
角色是否包含某个用户
|
void |
reinit()
重新初始化
|
boolean |
removeAllJRoleTemplatePrivileges()
删除所有部门角色的模板权限
|
boolean |
removeAllSRoleTemplatePrivileges()
删除所有自定义角色的模板权限
|
void |
removeJobFromUser(long userId,
RelationObject relationObject)
删除用户工作
|
boolean |
removeJRoleTemplatePrivileges(long id)
根据部门角色id 删除相关模板权限
|
boolean |
removeSRole(CustomRole role)
删除tableData验证某个普通角色
|
boolean |
removeSRole(java.lang.String username,
CustomRole role)
删除tableData验证普通角色中的某个用户
|
boolean |
removeSRoleTemplatePrivileges(long id)
根据自定义角色id 删除相关模板权限
|
void |
removeUsersFromSRole(java.util.Set<User> userSet)
删除普通角色中的用户名, 会去匹配所有自定义角色
|
void |
removeUsersFromSRole(java.util.Set<User> userSet,
CustomRole customRole)
删除指定普通角色中的用户名
|
boolean |
resetSortIndex()
重置排序索引
|
void |
saveFavoriteNode(FavoriteNode node)
保存收藏夹对象
|
void |
saveJRole(CompanyRole role)
保存部门角色
|
boolean |
updateCompanyRoleDepAndCRolePrivileges(long id,
java.util.List<java.lang.String> addList,
java.util.List<java.lang.String> removeList)
更新部门角色的Dep
|
boolean |
updateCompanyRolePlatePrivileges(long id,
java.util.List<RoleEntryPrivilege> addList,
java.util.List<RoleEntryPrivilege> removeList,
java.lang.String plateName)
更新部门角色plate权限
|
boolean |
updateCustomRoleDepAndCRolePrivileges(long id,
java.util.List<java.lang.String> addList,
java.util.List<java.lang.String> removeList)
更新自定义角色的Dep
|
boolean |
updateCustomRoleDepAndCRolePrivileges(java.lang.String roleName,
java.util.List<java.lang.String> addList,
java.util.List<java.lang.String> removeList)
根据角色名更新部门/自定义角色的权限
|
boolean |
updateCustomRolePlatePrivileges(long id,
java.util.List<RoleEntryPrivilege> addList,
java.util.List<RoleEntryPrivilege> removeList,
java.lang.String plateName)
更新普通角色plate权限
|
boolean |
updateDepartment(Department department)
更新部门
|
boolean |
updateJRole(long id,
Department department,
Post post)
更新某个id的职位角色
|
boolean |
updateJRoleDataConnectionPrivileges(long id,
java.util.List<java.lang.String> addList,
java.util.List<java.lang.String> removeList)
更新部门角色的数据连接权限
|
boolean |
updateJRoleEntryPrivileges(long id,
java.util.List<EntryTypeAndID> addList,
java.util.List<EntryTypeAndID> removeList)
更新JRole EnrtyPrivilege
|
boolean |
updateJRoleESPrivileges(long id,
java.util.List<EntryTypeAndID> addList,
java.util.List<EntryTypeAndID> removeList)
更新JRole的ES权限
|
boolean |
updateJRoleHomePagePrivileges(long id,
java.util.List<RoleHomePagePrivilege> addList,
java.util.List<RoleHomePagePrivilege> removeList)
更新部门角色首页权限
|
boolean |
updateJRoleModulePrivileges(long id,
java.util.List<RoleModulePrivilege> addList,
java.util.List<RoleModulePrivilege> removeList)
更新部门角色Module权限
|
boolean |
updateJRoleTemplatePrivileges(long id,
java.util.List<RoleTemplatePrivilege> addList,
java.util.List<RoleTemplatePrivilege> removeList)
更新部门角色的模板权限
|
boolean |
updatePost(Post post)
更新部门
|
boolean |
updateSRole(CustomRole customRole)
tabledata数据验证更新普通角色
|
boolean |
updateSRoleDataConnectionPrivileges(long id,
java.util.List<java.lang.String> addList,
java.util.List<java.lang.String> removeList)
更新自定义角色的数据连接权限
|
boolean |
updateSRoleDataConnectionPrivileges(java.lang.String roleName,
java.util.List<java.lang.String> addList,
java.util.List<java.lang.String> removeList)
根据角色名更新数据连接权限
|
boolean |
updateSRoleEntryPrivileges(long id,
java.util.List<EntryTypeAndID> addList,
java.util.List<EntryTypeAndID> removeList)
更新SRole EnrtyPrivilege
|
boolean |
updateSRoleEntryPrivileges(java.lang.String name,
java.util.List<EntryTypeAndID> addList,
java.util.List<EntryTypeAndID> removeList)
根据角色名更新Entry权限
|
boolean |
updateSRoleESPrivileges(long id,
java.util.List<EntryTypeAndID> addList,
java.util.List<EntryTypeAndID> removeList)
更新SRole的excel批量导入的权限
|
boolean |
updateSRoleHomePagePrivileges(long id,
java.util.List<RoleHomePagePrivilege> addList,
java.util.List<RoleHomePagePrivilege> removeList)
更新普通角色首页权限
|
boolean |
updateSRoleHomePagePrivileges(java.lang.String roleName,
java.util.List<RoleHomePagePrivilege> addList,
java.util.List<RoleHomePagePrivilege> removeList)
根据角色名更新首页权限
|
boolean |
updateSRoleModulePrivileges(long id,
java.util.List<RoleModulePrivilege> addList,
java.util.List<RoleModulePrivilege> removeList)
更新普通角色Module权限
|
boolean |
updateSRoleModulePrivileges(java.lang.String roleName,
java.util.List<RoleModulePrivilege> addList,
java.util.List<RoleModulePrivilege> removeList)
根据角色名更新Module权限
|
boolean |
updateSRoleName(long id,
java.lang.String newName)
更新tableData普通角色名字
|
boolean |
updateSRoleTemplatePrivileges(long id,
java.util.List<RoleTemplatePrivilege> addList,
java.util.List<RoleTemplatePrivilege> removeList)
更新自定义角色的模板权限
|
boolean |
updateSRoleTemplatePrivileges(java.lang.String roleName,
java.util.List<RoleTemplatePrivilege> addList,
java.util.List<RoleTemplatePrivilege> removeList)
根据角色名更新Template权限
|
boolean |
updateTableDataUser(long id,
java.lang.String username,
java.lang.String password,
java.lang.String realname,
java.lang.String mobile,
java.lang.String email)
更新用户信息
|
boolean |
updateUserEntryPrivileges(long id,
java.util.Set<EntryTypeAndID> addList,
java.util.Set<EntryTypeAndID> removeList)
更新用户报表权限
|
boolean |
updateUserModulePrivileges(long id,
java.util.Set<UserModulePrivilege> addList,
java.util.Set<UserModulePrivilege> removeList)
更新用户Module权限
|
boolean |
updateUserRolePrivileges(long id,
java.util.Set<java.lang.String> addList,
java.util.Set<java.lang.String> removeList)
更新用户角色权限
|
void |
writeTableData() |
void reinit() throws java.lang.Exception
java.lang.Exception
CustomRole findSRoleBySRoleName(java.lang.String customRoleName) throws java.lang.CloneNotSupportedException
customRoleName
- 角色名称java.lang.CloneNotSupportedException
CustomRole findSRoleBySRoleID(long id) throws java.lang.CloneNotSupportedException
id
- 角色idjava.lang.CloneNotSupportedException
java.util.Set<RelationObject> findSRoleByUserName(java.lang.String userName) throws java.lang.CloneNotSupportedException
userName
- 用户名java.lang.CloneNotSupportedException
User findUserByUserId(long id)
id
- 用户idjava.util.List<User> findAllUser()
java.util.List<TableDataUser> getAllTableDataUsers()
User findUserByUserName(java.lang.String userName)
userName
- 用户名User findUserByMobile(java.lang.String mobile)
mobile
- 手机号码User[] findUsersByMobile(java.lang.String mobile)
mobile
- User[] findUsersByEmail(java.lang.String email)
email
- java.util.Iterator findJobsByUserId(long id)
id
- 用户idjava.lang.String findPostNameById(long postId)
postId
- 职位idjava.util.Set<java.lang.Long> findUserSetByDpAndPost(Department dp, java.lang.String post) throws java.lang.CloneNotSupportedException
dp
- 部门post
- 职位java.lang.CloneNotSupportedException
boolean addSRole(java.lang.String userName, CustomRole customRole)
userName
- 用户名customRole
- 普通角色boolean addSRole(CustomRole customRole)
customRole
- 普通角色boolean updateSRole(CustomRole customRole)
customRole
- 普通角色boolean resetSortIndex()
boolean removeSRole(java.lang.String username, CustomRole role)
username
- 用户名role
- 角色boolean removeSRole(CustomRole role)
role
- 角色boolean updateSRoleName(long id, java.lang.String newName) throws java.lang.CloneNotSupportedException
id
- 角色idnewName
- 名字java.lang.CloneNotSupportedException
java.util.List<java.lang.Object> findAllSRole() throws java.lang.CloneNotSupportedException
java.lang.CloneNotSupportedException
java.util.Set<RelationObject> findUserSetBySRoleId(long id, boolean toObj) throws java.lang.CloneNotSupportedException
id
- 角色idtoObj
- 是否转java.lang.CloneNotSupportedException
void addUsersToSRole(CustomRole customRole, java.util.Set<User> userSet)
customRole
- != null 普通角色userSet
- != null 用户void removeUsersFromSRole(java.util.Set<User> userSet)
userSet
- 用户void removeUsersFromSRole(java.util.Set<User> userSet, CustomRole customRole)
userSet
- 用户customRole
- 指定的角色Post findPostById(long id)
id
- 职务idjava.util.List<Post> findAllPost()
Post findPostByPostName(java.lang.String postName)
postName
- 职位名称Department findDepartmentByID(long id)
id
- 部门idjava.util.List<Department> findAllDepartment() throws java.lang.CloneNotSupportedException
java.lang.CloneNotSupportedException
Department findDepartmentByDPNameAndPid(java.lang.String deptName, long pid) throws java.lang.CloneNotSupportedException
deptName
- 部门名称pid
- 父idjava.lang.CloneNotSupportedException
java.util.Iterator findUserAndPostIterator(long id, boolean toObj)
id
- 部门idtoObj
- 转成Objectvoid saveFavoriteNode(FavoriteNode node)
node
- 节点FavoriteNode findFavoriteById(long id)
id
- 对象idvoid deleteFavoriteNode(FavoriteNode node)
node
- 根据node删除java.util.List<FavoriteNode> findFavoriteNodes(long userId)
userId
- 用户idvoid deleteFavoriteNode(long userId, int type, long entryId)
userId
- 用户idtype
- 类型entryId
- entry的idCompanyRole findJRoleByCompanyRoleID(long id)
id
- 部门角色idjava.util.List<CompanyRole> findAllJRole()
void saveJRole(CompanyRole role)
role
- 部门角色java.util.List<CompanyRole> findJRoleByPost(Post post)
post
- 职位java.util.List<CompanyRole> findJRoleByDepartment(java.lang.Long deptId)
deptId
- 部门java.util.List<CompanyRole> findJRoleByPostAndDepartment(java.lang.Long postId, java.lang.Long[] deptIds)
postId
- 职位deptIds
- 部门java.util.Set<RoleTemplatePrivilege> findTemplatePrivilegeByCompanyRoleId(long id)
id
- 部门角色IDjava.util.Set<RoleTemplatePrivilege> findTemplatePrivilegeByCustomRoleId(long id)
id
- 自定义角色的IDjava.util.Set<RoleTemplatePrivilege> findTemplatePrivilegeByCustomRoleName(java.lang.String roleName)
roleName
- 角色名java.util.Set<RoleDataConnectionPrivilege> findDataConnectionPrivilegesByCompanyRoleId(long id)
id
- 角色idjava.util.Set<RoleDataConnectionPrivilege> findDataConnectionPrivilegesByCustomRoleId(long id)
id
- 角色idjava.util.Set<RoleDataConnectionPrivilege> findDataConnectionPrivilegesByCustomRoleName(java.lang.String roleName)
roleName
- 角色名java.util.Set<RoleDepAndCRolePrivilege> findDepAndCRolePrivilegeByCompanyRoleId(long id)
id
- 角色idjava.util.Set<RoleDepAndCRolePrivilege> findDepAndCRolePrivilegeByCustomRoleId(long id)
id
- 角色idjava.util.Set<RoleDepAndCRolePrivilege> findDepAndCRolePrivilegeByCustomRoleName(java.lang.String roleName)
roleName
- 角色名java.util.Set<RoleEntryPrivilege> findEntryPrivilegesByJRoleId(long id)
id
- 角色idjava.util.Set<RoleEntryPrivilege> findEntryPrivilegesBySRoleId(long id)
id
- 角色idjava.util.Set<RoleEntryPrivilege> findEntryPrivilegesBySRoleName(java.lang.String name)
name
- 角色名java.util.Set<RoleESPrivilege> findESPrivilegesByJRoleId(long id)
id
- 角色idjava.util.Set<RoleESPrivilege> findESPrivilegesBySRoleId(long id)
id
- 角色idjava.util.Set<RoleModulePrivilege> findModulePrivilegesByJRoleId(long id) throws java.lang.CloneNotSupportedException
id
- 角色idjava.lang.CloneNotSupportedException
java.util.Set<RoleModulePrivilege> findModulePrivilegesBySRoleId(long id) throws java.lang.CloneNotSupportedException
id
- 角色idjava.lang.CloneNotSupportedException
java.util.Set<RoleModulePrivilege> findModulePrivilegeBySRoleName(java.lang.String roleName) throws java.lang.CloneNotSupportedException
roleName
- 角色名java.lang.CloneNotSupportedException
java.util.Set<RoleHomePagePrivilege> findHomePagePrivilegesByJRoleId(long id) throws java.lang.CloneNotSupportedException
id
- 角色idjava.lang.CloneNotSupportedException
java.util.Set<RoleHomePagePrivilege> findHomePagePrivilegesBySRoleId(long id) throws java.lang.CloneNotSupportedException
id
- 角色idjava.lang.CloneNotSupportedException
java.util.Set<RoleHomePagePrivilege> findHomePagePrivilegeBySRoleName(java.lang.String roleName) throws java.lang.CloneNotSupportedException
roleName
- 角色名java.lang.CloneNotSupportedException
java.util.Set<RelationObject> findPrivilegesByCompanyRoleIDWithPlateName(long id, java.lang.String plateName) throws java.lang.CloneNotSupportedException
id
- 用户idplateName
- 名称java.lang.CloneNotSupportedException
java.util.Set<RelationObject> findPrivilegesByCustomRoleIDWithPlateName(long id, java.lang.String plateName) throws java.lang.CloneNotSupportedException
id
- 用户idplateName
- 板块名称java.lang.CloneNotSupportedException
boolean updateSRoleTemplatePrivileges(java.lang.String roleName, java.util.List<RoleTemplatePrivilege> addList, java.util.List<RoleTemplatePrivilege> removeList) throws java.lang.CloneNotSupportedException
roleName
- 角色名addList
- 增加的Template权限removeList
- 删除的Template权限java.lang.CloneNotSupportedException
- 异常boolean updateJRoleTemplatePrivileges(long id, java.util.List<RoleTemplatePrivilege> addList, java.util.List<RoleTemplatePrivilege> removeList)
id
- 部门角色的IDaddList
- 需要新增的权限removeList
- 需要删除的权限boolean removeAllJRoleTemplatePrivileges()
boolean removeAllSRoleTemplatePrivileges()
boolean removeJRoleTemplatePrivileges(long id)
id
- 角色idboolean removeSRoleTemplatePrivileges(long id)
id
- 角色idboolean updateSRoleTemplatePrivileges(long id, java.util.List<RoleTemplatePrivilege> addList, java.util.List<RoleTemplatePrivilege> removeList) throws java.lang.CloneNotSupportedException
id
- 自定义角色的IDaddList
- 新增的权限removeList
- 删除的权限java.lang.CloneNotSupportedException
- 不支持clone的异常boolean updateJRoleDataConnectionPrivileges(long id, java.util.List<java.lang.String> addList, java.util.List<java.lang.String> removeList)
id
- 部门角色IDaddList
- 新增的数据连接权限removeList
- 删除的数据连接权限boolean updateSRoleDataConnectionPrivileges(long id, java.util.List<java.lang.String> addList, java.util.List<java.lang.String> removeList) throws java.lang.CloneNotSupportedException
id
- 自定义角色IDaddList
- 新增的数据连接权限removeList
- 删除的数据连接权限java.lang.CloneNotSupportedException
- 异常boolean updateSRoleDataConnectionPrivileges(java.lang.String roleName, java.util.List<java.lang.String> addList, java.util.List<java.lang.String> removeList) throws java.lang.CloneNotSupportedException
roleName
- 角色名addList
- 新增的数据连接权限removeList
- 删除的数据连接权限java.lang.CloneNotSupportedException
- 异常boolean updateSRoleEntryPrivileges(long id, java.util.List<EntryTypeAndID> addList, java.util.List<EntryTypeAndID> removeList) throws java.lang.CloneNotSupportedException
id
- 角色idaddList
- 增加的id列表removeList
- 删除的id列表java.lang.CloneNotSupportedException
boolean updateJRoleEntryPrivileges(long id, java.util.List<EntryTypeAndID> addList, java.util.List<EntryTypeAndID> removeList)
id
- 角色idaddList
- 增加的id列表removeList
- 删除的id列表boolean updateSRoleEntryPrivileges(java.lang.String name, java.util.List<EntryTypeAndID> addList, java.util.List<EntryTypeAndID> removeList) throws java.lang.CloneNotSupportedException
name
- 角色名addList
- 增加的Entry权限removeList
- 删除的Entry权限java.lang.CloneNotSupportedException
- 异常boolean updateJRoleESPrivileges(long id, java.util.List<EntryTypeAndID> addList, java.util.List<EntryTypeAndID> removeList)
id
- 角色idaddList
- 增加的id列表removeList
- 删除的id列表boolean updateSRoleESPrivileges(long id, java.util.List<EntryTypeAndID> addList, java.util.List<EntryTypeAndID> removeList) throws java.lang.CloneNotSupportedException
id
- 角色idaddList
- 增加的id列表removeList
- 删除的id列表java.lang.CloneNotSupportedException
boolean updateCompanyRoleDepAndCRolePrivileges(long id, java.util.List<java.lang.String> addList, java.util.List<java.lang.String> removeList)
id
- 角色idaddList
- 增加的id列表removeList
- 删除的id列表boolean updateCustomRoleDepAndCRolePrivileges(long id, java.util.List<java.lang.String> addList, java.util.List<java.lang.String> removeList) throws java.lang.CloneNotSupportedException
id
- 角色idaddList
- 增加的id列表removeList
- 删除的id列表java.lang.CloneNotSupportedException
boolean updateCustomRoleDepAndCRolePrivileges(java.lang.String roleName, java.util.List<java.lang.String> addList, java.util.List<java.lang.String> removeList) throws java.lang.Exception
roleName
- 角色名addList
- 新增的权限removeList
- 删除的权限java.lang.Exception
- 异常boolean updateJRoleModulePrivileges(long id, java.util.List<RoleModulePrivilege> addList, java.util.List<RoleModulePrivilege> removeList)
id
- 角色idaddList
- 增加的id列表removeList
- 删除的id列表boolean updateSRoleModulePrivileges(long id, java.util.List<RoleModulePrivilege> addList, java.util.List<RoleModulePrivilege> removeList) throws java.lang.CloneNotSupportedException
id
- 角色idaddList
- 增加的id列表removeList
- 删除的id列表java.lang.CloneNotSupportedException
boolean updateSRoleModulePrivileges(java.lang.String roleName, java.util.List<RoleModulePrivilege> addList, java.util.List<RoleModulePrivilege> removeList) throws java.lang.CloneNotSupportedException
roleName
- 角色名addList
- 增加的Module权限removeList
- 删除的Module权限java.lang.CloneNotSupportedException
- 异常boolean updateCompanyRolePlatePrivileges(long id, java.util.List<RoleEntryPrivilege> addList, java.util.List<RoleEntryPrivilege> removeList, java.lang.String plateName)
id
- 角色idaddList
- 增加的id列表removeList
- 删除的id列表plateName
- plate的Nameboolean updateCustomRolePlatePrivileges(long id, java.util.List<RoleEntryPrivilege> addList, java.util.List<RoleEntryPrivilege> removeList, java.lang.String plateName) throws java.lang.CloneNotSupportedException
id
- 角色idaddList
- 增加的id列表removeList
- 删除的id列表plateName
- plate的namejava.lang.CloneNotSupportedException
boolean updateJRoleHomePagePrivileges(long id, java.util.List<RoleHomePagePrivilege> addList, java.util.List<RoleHomePagePrivilege> removeList)
id
- 角色idaddList
- 增加的首页权限removeList
- 删除的首页权限boolean updateSRoleHomePagePrivileges(long id, java.util.List<RoleHomePagePrivilege> addList, java.util.List<RoleHomePagePrivilege> removeList) throws java.lang.CloneNotSupportedException
id
- 角色idaddList
- 增加的首页权限removeList
- 删除的首页权限java.lang.CloneNotSupportedException
boolean updateSRoleHomePagePrivileges(java.lang.String roleName, java.util.List<RoleHomePagePrivilege> addList, java.util.List<RoleHomePagePrivilege> removeList) throws java.lang.CloneNotSupportedException
roleName
- 角色名addList
- 增加的首页权限removeList
- 删除的首页权限java.lang.CloneNotSupportedException
- 异常boolean isUserInRole(long userid, long roleId)
roleId
- 角色IDuserid
- 用户的用户名boolean updatePost(Post post)
post
- 部门boolean updateDepartment(Department department)
department
- 部门boolean deleteDepartment(long depId)
depId
- 部门idvoid addPost(Post post)
Post
- 职务boolean deletePost(long postId)
- boolean updateJRole(long id, Department department, Post post)
- void deleteJRole(long id)
- void addUser(User user)
- void deleteUser(long userId)
- boolean addJob2User(long userId, long departmentId, long postId)
- Department findDepartmentByName(java.lang.String departmentName)
- void removeJobFromUser(long userId, RelationObject relationObject)
- boolean updateTableDataUser(long id, java.lang.String username, java.lang.String password, java.lang.String realname, java.lang.String mobile, java.lang.String email)
- java.lang.Exception
void writeTableData()
Department findDepartmentByNameAndParentName(java.lang.String deparmentName, java.lang.String parentDepartmentName)
void addForgedUser(ForgedUser user)
- void deleteForgedUser(long userid)
- java.util.List<ForgedUser> findAllForgedUser()
boolean updateUserModulePrivileges(long id, java.util.Set<UserModulePrivilege> addList, java.util.Set<UserModulePrivilege> removeList) throws java.lang.CloneNotSupportedException
id
- 用户idaddList
- 增加的id列表removeList
- 删除的id列表java.lang.CloneNotSupportedException
boolean updateUserEntryPrivileges(long id, java.util.Set<EntryTypeAndID> addList, java.util.Set<EntryTypeAndID> removeList) throws java.lang.CloneNotSupportedException
id
- 用户idaddList
- 增加的id列表removeList
- 删除的id列表java.lang.CloneNotSupportedException
boolean updateUserRolePrivileges(long id, java.util.Set<java.lang.String> addList, java.util.Set<java.lang.String> removeList) throws java.lang.CloneNotSupportedException
id
- 用户idaddList
- 增加的id列表removeList
- 删除的id列表java.lang.CloneNotSupportedException
java.util.Set<UserEntryPrivilege> findEntryPrivilegesByUserId(long id) throws java.lang.CloneNotSupportedException
id
- 角色idjava.lang.CloneNotSupportedException
java.util.Set<UserModulePrivilege> findModulePrivilegesByUserId(long id) throws java.lang.CloneNotSupportedException
id
- 角色idjava.lang.CloneNotSupportedException
java.util.Set<UserDepAndCRolePrivilege> findDepAndCrolePrivilegesByUserId(long id) throws java.lang.CloneNotSupportedException
id
- 角色idjava.lang.CloneNotSupportedException
java.util.List<java.lang.Long> findAllUserIds()
java.util.List<java.lang.Long> findAllForgedUserIds()