Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
T
traffic-front
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wangxiaoming
traffic-front
Commits
6c2fad8b
Commit
6c2fad8b
authored
Oct 09, 2018
by
neo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[DEL] delete role service interface
parent
2778073a
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
4 additions
and
188 deletions
+4
-188
RoleController.java
...main/java/pwc/taxtech/atms/controller/RoleController.java
+0
-0
UserController.java
...main/java/pwc/taxtech/atms/controller/UserController.java
+2
-2
RoleService.java
...i/src/main/java/pwc/taxtech/atms/service/RoleService.java
+0
-182
OrganizationServiceImpl.java
...wc/taxtech/atms/service/impl/OrganizationServiceImpl.java
+1
-2
RoleServiceImpl.java
...n/java/pwc/taxtech/atms/service/impl/RoleServiceImpl.java
+0
-0
UserServiceImpl.java
...n/java/pwc/taxtech/atms/service/impl/UserServiceImpl.java
+1
-2
No files found.
atms-api/src/main/java/pwc/taxtech/atms/controller/RoleController.java
View file @
6c2fad8b
This diff is collapsed.
Click to expand it.
atms-api/src/main/java/pwc/taxtech/atms/controller/UserController.java
View file @
6c2fad8b
...
...
@@ -28,7 +28,7 @@ import pwc.taxtech.atms.dto.user.UserRoleDimensionValueDto;
import
pwc.taxtech.atms.dto.user.UserRoleDisplayInfo
;
import
pwc.taxtech.atms.dto.user.UserRoleSaveDto
;
import
pwc.taxtech.atms.entity.User
;
import
pwc.taxtech.atms.service.
RoleService
;
import
pwc.taxtech.atms.service.
impl.RoleServiceImpl
;
import
pwc.taxtech.atms.service.impl.UserAccountServiceImpl
;
import
pwc.taxtech.atms.service.impl.UserRoleServiceImpl
;
import
pwc.taxtech.atms.service.impl.UserServiceImpl
;
...
...
@@ -44,7 +44,7 @@ public class UserController {
@Autowired
private
UserRoleServiceImpl
userRoleService
;
@Autowired
private
RoleService
roleService
;
private
RoleService
Impl
roleService
;
@Autowired
private
UserAccountServiceImpl
userAccountService
;
...
...
atms-api/src/main/java/pwc/taxtech/atms/service/RoleService.java
deleted
100644 → 0
View file @
2778073a
package
pwc
.
taxtech
.
atms
.
service
;
import
java.util.List
;
import
java.util.Map
;
import
pwc.taxtech.atms.dpo.UserOrgRoleDto
;
import
pwc.taxtech.atms.dpo.UserRoleInfo
;
import
pwc.taxtech.atms.dpo.DimensionValueOrgDto
;
import
pwc.taxtech.atms.dto.OperationResultDto
;
import
pwc.taxtech.atms.dto.dimension.DimensionValueUpdateDto
;
import
pwc.taxtech.atms.dto.navtree.NavTreeDto
;
import
pwc.taxtech.atms.dpo.OrganizationDto
;
import
pwc.taxtech.atms.dto.role.RoleDisplayDto
;
import
pwc.taxtech.atms.dto.role.RoleDto
;
import
pwc.taxtech.atms.dto.role.RoleDtoTree
;
import
pwc.taxtech.atms.dto.role.RolePermissionDto
;
import
pwc.taxtech.atms.dto.role.UpdateRoleInfo
;
import
pwc.taxtech.atms.dto.user.DimensionRole
;
import
pwc.taxtech.atms.dto.user.DimensionUser
;
import
pwc.taxtech.atms.dpo.UserOrgDto
;
import
pwc.taxtech.atms.dto.user.UserRoleDimensionValueDto
;
import
pwc.taxtech.atms.dto.user.UserRoleDto
;
import
pwc.taxtech.atms.dto.user.UserRoleUpdateDto
;
import
pwc.taxtech.atms.dto.user.VMUser
;
import
pwc.taxtech.atms.entity.UserDimensionValue
;
import
pwc.taxtech.atms.entity.UserDimensionValueOrg
;
import
pwc.taxtech.atms.entity.UserOrganization
;
public
interface
RoleService
{
List
<
NavTreeDto
>
getRoleTreeList
();
List
<
UserRoleInfo
>
getUserRoleByUser
(
VMUser
vmUser
);
List
<
UserRoleInfo
>
getAllOwnUserRoleList
();
List
<
UserRoleInfo
>
getAllUserRoleList
();
List
<
UserRoleDto
>
getAllRoleListByUserId
(
String
userId
,
String
serviceTypeId
);
List
<
UserOrgDto
>
getUserByDimensionValue
(
List
<
OrganizationDto
>
orgList
,
List
<
UserDimensionValue
>
userDimensionValueList
,
List
<
UserDimensionValueOrg
>
userDimensionValueOrgList
,
List
<
UserOrganization
>
userOrganizationList
,
List
<
UserOrgRoleDto
>
originalRoleList
,
List
<
UserOrgRoleDto
>
userDimensionValueRoleList
,
List
<
UserOrgRoleDto
>
userOrganizationRoleList
,
String
dimensionId
,
String
dimensionValueId
);
List
<
RoleDtoTree
>
getRoleList
();
List
<
UserRoleDto
>
getUsersByRoleId
(
String
roleId
);
/**
* 查询某角色额外用户
* @param roleId
* @return
*/
List
<
UserRoleDto
>
getExtraUsersByRoleId
(
String
roleId
);
/**
* 为角色添加用户
* @param roleId
* @param serviceTypeId
* @param userIdList
*/
void
addUsersToRole
(
String
roleId
,
String
serviceTypeId
,
List
<
String
>
userIdList
);
void
removeUserRole
(
String
userId
,
List
<
String
>
roleIdList
,
String
serviceTypeId
);
/**
* Get role list by roleTypeId
* @param roleTypeId
* @return List<RoleDto>
*/
List
<
RoleDto
>
getRoleListByRoleType
(
String
roleTypeId
);
/**
* 增加角色分类
* @param roleCategoryName
* @param roleCategoryId
*/
void
addRoleCategory
(
String
roleCategoryName
,
String
roleCategoryId
);
/**
* 更新角色分类名称
* @param roleCategoryName
* @param roleCategoryId
*/
void
updateRoleCategory
(
String
roleCategoryName
,
String
roleCategoryId
);
/**
* 删除角色分类
* @param roleCategoryId
* @return OperationResultDto
*/
@SuppressWarnings
(
"rawtypes"
)
OperationResultDto
deleteRoleCategory
(
String
roleCategoryId
);
/**
* Add a new role info
* @param RoleDisplayDto roleDto
* @return roleId
*/
String
addRole
(
RoleDisplayDto
roleDto
);
/**
* Update a role info
* @param updateRole
* @param roleId
*/
void
updateRole
(
UpdateRoleInfo
updateRole
,
String
roleId
);
/**
* validate if the rolename exists
* @param roleName
* @param oldRoleName
* @return true - not exist; false - exist
*/
boolean
validateRoleNameUnique
(
String
roleName
,
String
oldRoleName
);
/**
* Delete a role info
* @param roleDto
*/
void
deleteRole
(
RoleDto
roleDto
);
/**
* check mapping between user and role
* @param roleId
* @return
*/
boolean
checkUserRole
(
String
roleId
);
/**
* @param model
* @return
*/
List
<
UserRoleInfo
>
getUserRoleList
(
UserRoleDimensionValueDto
userRoleDimensionValueDto
);
/**
* 根据serviceType获取所有角色权限list
* @param serviceTypeId
* @return List<RolePermissionDto>
*/
List
<
RolePermissionDto
>
getAllRolePermission
(
String
serviceTypeId
);
/**
* 更新用户角色列表
* @param userRoleUpdateDto
*/
void
updateUserRole
(
UserRoleUpdateDto
userRoleUpdateDto
);
/**
* 用户详情页面,增加范围
* @param dimensionValueUpdateDto
*/
void
updateDimensionValues
(
DimensionValueUpdateDto
dimensionValueUpdateDto
);
/**
* 用户详情页面, 增加机构
* @param orgIdList
* @param userId
*/
void
updateUserOrg
(
List
<
String
>
orgIdList
,
String
userId
);
/**
* 获取维度,角色,用户列表
* @param dimensionId
* @param dimensionValueId
*/
List
<
DimensionRole
>
getDimensionRoleUserList
(
String
dimensionId
,
String
dimensionValueId
);
/**
* 获取某一个维度的 用户 和 机构列表,角色列表
* @param dimensionId
* @param dimensionValueId
*/
List
<
DimensionUser
>
getDimensionUserRoleList
(
String
dimensionId
,
String
dimensionValueId
);
Map
<
String
,
Integer
>
getActiveUserRoleList
(
List
<
OrganizationDto
>
orgDtoList
,
List
<
DimensionValueOrgDto
>
dimensionValueOrgList
,
String
areaid
);
List
<
UserRoleInfo
>
getActiveUserRoleListByAreaId
(
String
areaId
);
}
atms-api/src/main/java/pwc/taxtech/atms/service/impl/OrganizationServiceImpl.java
View file @
6c2fad8b
...
...
@@ -60,7 +60,6 @@ import pwc.taxtech.atms.service.CommonService;
import
pwc.taxtech.atms.service.DimensionService
;
import
pwc.taxtech.atms.service.OperationLogService
;
import
pwc.taxtech.atms.service.OrganizationService
;
import
pwc.taxtech.atms.service.RoleService
;
import
java.text.SimpleDateFormat
;
import
java.util.ArrayList
;
...
...
@@ -106,7 +105,7 @@ public class OrganizationServiceImpl implements OrganizationService {
private
CommonService
commonService
;
@Autowired
private
RoleService
roleService
;
private
RoleService
Impl
roleService
;
@Autowired
private
BusinessUnitMapper
businessUnitMapper
;
...
...
atms-api/src/main/java/pwc/taxtech/atms/service/impl/RoleServiceImpl.java
View file @
6c2fad8b
This diff is collapsed.
Click to expand it.
atms-api/src/main/java/pwc/taxtech/atms/service/impl/UserServiceImpl.java
View file @
6c2fad8b
...
...
@@ -57,7 +57,6 @@ import pwc.taxtech.atms.security.LdapAuthenticationProvider;
import
pwc.taxtech.atms.service.MenuService
;
import
pwc.taxtech.atms.service.OperationLogService
;
import
pwc.taxtech.atms.service.OrganizationService
;
import
pwc.taxtech.atms.service.RoleService
;
import
java.util.ArrayList
;
import
java.util.Date
;
...
...
@@ -85,7 +84,7 @@ public class UserServiceImpl extends AbstractService {
@Autowired
private
JwtUtil
jwtUtil
;
@Autowired
private
RoleService
roleService
;
private
RoleService
Impl
roleService
;
@Autowired
private
MenuService
menuService
;
@Autowired
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment