public interface WorkflowTransitionPermission
Modifier and Type | Method and Description |
---|---|
void |
allowGroup(Group group)
Allows the given user group to perform the transition.
|
void |
allowUser(User user)
Allows the given user to perform the transition.
|
void |
forbidGroup(Group group)
Forbids the given user group to perform the transition.
|
void |
forbidUser(User user)
Forbids the given user to perform the transition.
|
Group[] |
getAllowedGroups()
Provides the user groups allowed to perform the transition.
|
User[] |
getAllowedUsers()
Provides the users allowed to perform the transition.
|
Transition |
getTransition()
Provides the transition.
|
boolean |
isUserAllowed(User user)
Ascertains whether the given user is allowed to perform the transition.
|
void |
setAllowedGroups(Group[] groups)
Defines the user groups allowed to perform the transition.
|
void |
setAllowedUsers(User[] users)
Defines the users allowed to perform the transition.
|
Transition getTransition()
User[] getAllowedUsers()
Group[] getAllowedGroups()
void forbidUser(User user)
user
- A user.void allowUser(User user)
user
- A user.void forbidGroup(Group group)
group
- A group.void allowGroup(Group group)
group
- A group.void setAllowedUsers(User[] users)
users
- An array of users.void setAllowedGroups(Group[] groups)
groups
- An array of groups.boolean isUserAllowed(User user)
user
- A user.true
, if the user is allowed to perform the transition.Copyright © 2021 e-Spirit AG. All Rights Reserved. Build 5.2.210210