Search in sources :

Example 1 with AppRolesAssignedUsers

use of com.ctrip.framework.apollo.portal.entity.vo.AppRolesAssignedUsers in project apollo by ctripcorp.

the class PermissionController method getAppRoles.

@GetMapping("/apps/{appId}/role_users")
public AppRolesAssignedUsers getAppRoles(@PathVariable String appId) {
    AppRolesAssignedUsers users = new AppRolesAssignedUsers();
    users.setAppId(appId);
    Set<UserInfo> masterUsers = rolePermissionService.queryUsersWithRole(RoleUtils.buildAppMasterRoleName(appId));
    users.setMasterUsers(masterUsers);
    return users;
}
Also used : UserInfo(com.ctrip.framework.apollo.portal.entity.bo.UserInfo) AppRolesAssignedUsers(com.ctrip.framework.apollo.portal.entity.vo.AppRolesAssignedUsers)

Aggregations

UserInfo (com.ctrip.framework.apollo.portal.entity.bo.UserInfo)1 AppRolesAssignedUsers (com.ctrip.framework.apollo.portal.entity.vo.AppRolesAssignedUsers)1