Class RuntimeUserServiceImpl
java.lang.Object
ru.cg.webbpm.modules.security.api.impl.service.RuntimeUserServiceImpl
- All Implemented Interfaces:
RuntimeUserService
- Author:
- Tim Urmancheev
-
Constructor Summary
ConstructorsConstructorDescriptionRuntimeUserServiceImpl
(UserService userService, UserGroupDao userGroupDao, UserRoleDao userRoleDao, UserAuthorityDao userAuthorityDao) Runtime user service constructor - creates new runtime user service. -
Method Summary
Modifier and TypeMethodDescriptiongetRuntimeUser
(String userId) Creates and return new runtime user by user account id.getRuntimeUserByUsername
(String username) Creates and return new runtime user by username.
-
Constructor Details
-
RuntimeUserServiceImpl
@Autowired public RuntimeUserServiceImpl(UserService userService, UserGroupDao userGroupDao, UserRoleDao userRoleDao, UserAuthorityDao userAuthorityDao) Runtime user service constructor - creates new runtime user service.- Parameters:
userService
- user account data access object. Instance ofUserDao
type.userGroupDao
- link user account to group data access object. Instance ofUserGroupDao
type.userRoleDao
- link user account to role data access object. Instance ofUserRoleDao
type.userAuthorityDao
- link user account to authority data access object. Instance ofUserAuthorityDao
type.
-
-
Method Details
-
getRuntimeUser
@Cacheable(value="runtime-user-id", unless="#result == null") public RuntimeUser getRuntimeUser(String userId) Creates and return new runtime user by user account id.- Specified by:
getRuntimeUser
in interfaceRuntimeUserService
- Parameters:
userId
- user account id of runtime user to receive. Instance ofString
type.- Returns:
- requested runtime user or null if does not exist. Instance of
RuntimeUser
type. - See Also:
-
getRuntimeUserByUsername
@Cacheable(value="runtime-user-username", unless="#result == null") public RuntimeUser getRuntimeUserByUsername(String username) Creates and return new runtime user by username.- Specified by:
getRuntimeUserByUsername
in interfaceRuntimeUserService
- Parameters:
username
- username of runtime user to receive. Instance ofString
type.- Returns:
- requested runtime user or null if does not exist. Instance of
RuntimeUser
type. - See Also:
-