Class BpmnSecurityContextImpl
java.lang.Object
ru.cg.webbpm.modules.bpmn.workflow.jbpm.security.BpmnSecurityContextImpl
- All Implemented Interfaces:
BpmnSecurityContext
- Author:
- Kochetkov
-
Constructor Summary
ConstructorsConstructorDescriptionBpmnSecurityContextImpl
(SecurityContext securityContext, RuntimeUserService runtimeUserService, BpmnRoleProvider bpmnRoleProvider) -
Method Summary
Modifier and TypeMethodDescriptionboolean
getBpmnUserRoles
(String username) getUserByUsername
(String username) boolean
roleExists
(String roleName)
-
Constructor Details
-
BpmnSecurityContextImpl
@Autowired public BpmnSecurityContextImpl(SecurityContext securityContext, RuntimeUserService runtimeUserService, BpmnRoleProvider bpmnRoleProvider)
-
-
Method Details
-
getCurrentUsername
- Specified by:
getCurrentUsername
in interfaceBpmnSecurityContext
-
getBpmnUserRoles
- Specified by:
getBpmnUserRoles
in interfaceBpmnSecurityContext
-
getCurrentUserBpmnRoles
- Specified by:
getCurrentUserBpmnRoles
in interfaceBpmnSecurityContext
-
canStartAnyProcess
public boolean canStartAnyProcess()- Specified by:
canStartAnyProcess
in interfaceBpmnSecurityContext
-
getUserByUsername
- Specified by:
getUserByUsername
in interfaceBpmnSecurityContext
-
roleExists
- Specified by:
roleExists
in interfaceBpmnSecurityContext
-