Package com.aizuda.bpm.engine.impl
Class GeneralAccessStrategy
- java.lang.Object
-
- com.aizuda.bpm.engine.impl.GeneralAccessStrategy
-
- All Implemented Interfaces:
TaskAccessStrategy
public class GeneralAccessStrategy extends java.lang.Object implements TaskAccessStrategy
基于用户或组(角色、部门等)的访问策略类 该策略类适合组作为参与者的情况官网尊重知识产权,不允许非法使用,后果自负
- Since:
- 1.0
- Author:
- hubin
-
-
Constructor Summary
Constructors Constructor Description GeneralAccessStrategy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FlwTaskActorisAllowed(java.lang.String userId, java.util.List<FlwTaskActor> taskActors)如果创建人ID所属的组只要有一项存在于参与者集合中,则表示可访问-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.aizuda.bpm.engine.TaskAccessStrategy
getAllowedFlwTaskActor
-
-
-
-
Method Detail
-
isAllowed
public FlwTaskActor isAllowed(java.lang.String userId, java.util.List<FlwTaskActor> taskActors)
如果创建人ID所属的组只要有一项存在于参与者集合中,则表示可访问- Specified by:
isAllowedin interfaceTaskAccessStrategy- Parameters:
userId- 用户IDtaskActors- 参与者列表- Returns:
- 被允许参与者
FlwTaskActor
-
-