Package org.cxbox.core.util.session.impl
Class SessionServiceImpl
java.lang.Object
org.cxbox.core.util.session.impl.SessionServiceImpl
- All Implemented Interfaces:
SessionService
Вспомогательный класс для получения данных о текущем пользователе (имя, логин, роли и т.п)
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
SessionServiceImpl
public SessionServiceImpl()
-
-
Method Details
-
getSessionUser
@Cacheable(cacheResolver="cxboxCacheResolver", cacheNames="requestCache", key="#root.methodName") public org.cxbox.api.service.session.IUser<Long> getSessionUser()- Specified by:
getSessionUserin interfaceSessionService
-
getSessionUserDepartmentId
- Specified by:
getSessionUserDepartmentIdin interfaceSessionService
-
getSessionUserRole
@Deprecated @Cacheable(cacheResolver="cxboxCacheResolver", cacheNames="requestCache", key="#root.methodName") public String getSessionUserRole()Deprecated.- Specified by:
getSessionUserRolein interfaceSessionService
-
getSessionUserRoles
@NonNull @Cacheable(cacheResolver="cxboxCacheResolver", cacheNames="requestCache", key="#root.methodName") public @NonNull Set<String> getSessionUserRoles()- Specified by:
getSessionUserRolesin interfaceSessionService
-
getSessionId
- Specified by:
getSessionIdin interfaceSessionService
-