Class SecurityContextImpl
java.lang.Object
ru.cg.webbpm.modules.security.api.spring.impl.SecurityContextImpl
- All Implemented Interfaces:
MultiResourceProcessor
,SecurityContext
@Component
public class SecurityContextImpl
extends Object
implements SecurityContext, MultiResourceProcessor
- Author:
- kochetkov
-
Constructor Summary
ConstructorsConstructorDescriptionSecurityContextImpl
(ResourceProvider resourceProvider, RuntimeUserService runtimeUserService, AuthorityService authorityService) -
Method Summary
Modifier and TypeMethodDescriptionboolean
currentUserHasAuthority
(String authorityName) Pattern требуемых ресурсов, *.bpmn2void
init()
void
process()
Обработать все ресурсы
-
Constructor Details
-
SecurityContextImpl
@Autowired public SecurityContextImpl(ResourceProvider resourceProvider, @Lazy RuntimeUserService runtimeUserService, AuthorityService authorityService)
-
-
Method Details
-
init
@PostConstruct public void init() -
getCurrentUsername
- Specified by:
getCurrentUsername
in interfaceSecurityContext
-
getCurrentUserAccountId
- Specified by:
getCurrentUserAccountId
in interfaceSecurityContext
-
getCurrentOrgUnitCode
- Specified by:
getCurrentOrgUnitCode
in interfaceSecurityContext
-
getCurrentUser
- Specified by:
getCurrentUser
in interfaceSecurityContext
-
currentUserHasAuthority
- Specified by:
currentUserHasAuthority
in interfaceSecurityContext
-
getResourcePattern
Description copied from interface:MultiResourceProcessor
Pattern требуемых ресурсов, *.bpmn2- Specified by:
getResourcePattern
in interfaceMultiResourceProcessor
- Returns:
- string
-
process
public void process()Description copied from interface:MultiResourceProcessor
Обработать все ресурсыВНИМАНИЕ: В режиме hotswap может вызываться несколько раз
- Specified by:
process
in interfaceMultiResourceProcessor
-