Also used :
Role(com.ctrip.framework.apollo.portal.entity.po.Role)
UserRole(com.ctrip.framework.apollo.portal.entity.po.UserRole)
Date(java.util.Date)
Role(com.ctrip.framework.apollo.portal.entity.po.Role)
Autowired(org.springframework.beans.factory.annotation.Autowired)
Multimap(com.google.common.collect.Multimap)
Permission(com.ctrip.framework.apollo.portal.entity.po.Permission)
UserInfo(com.ctrip.framework.apollo.portal.entity.bo.UserInfo)
HashMultimap(com.google.common.collect.HashMultimap)
Lists(com.google.common.collect.Lists)
StreamSupport(java.util.stream.StreamSupport)
RolePermissionService(com.ctrip.framework.apollo.portal.service.RolePermissionService)
UserRole(com.ctrip.framework.apollo.portal.entity.po.UserRole)
PortalConfig(com.ctrip.framework.apollo.portal.component.config.PortalConfig)
RolePermission(com.ctrip.framework.apollo.portal.entity.po.RolePermission)
Collection(java.util.Collection)
Set(java.util.Set)
ConsumerRoleRepository(com.ctrip.framework.apollo.openapi.repository.ConsumerRoleRepository)
Collectors(java.util.stream.Collectors)
Sets(com.google.common.collect.Sets)
List(java.util.List)
UserRoleRepository(com.ctrip.framework.apollo.portal.repository.UserRoleRepository)
RolePermissionRepository(com.ctrip.framework.apollo.portal.repository.RolePermissionRepository)
PermissionRepository(com.ctrip.framework.apollo.portal.repository.PermissionRepository)
CollectionUtils(org.springframework.util.CollectionUtils)
Preconditions(com.google.common.base.Preconditions)
RoleRepository(com.ctrip.framework.apollo.portal.repository.RoleRepository)
Collections(java.util.Collections)
Transactional(org.springframework.transaction.annotation.Transactional)
UserRole(com.ctrip.framework.apollo.portal.entity.po.UserRole)
UserInfo(com.ctrip.framework.apollo.portal.entity.bo.UserInfo)