public interface ScopedObjectActionFilter
Modifier and Type | Method and Description |
---|---|
boolean |
acceptsActionDefinition(Object scopedObject,
String accessibleByUser,
Set<String> userGroupKeys,
ActionDefinition actionDefinition,
ActionDefinitionModel actionDefinitionModel,
ActionInstance actionInstance)
Check if the scoped object accepts the provided
actionDefinition with the provided actionDefinitionModel . |
String |
getScopeType()
The type of the scope that this filter is responsible for.
|
String getScopeType()
boolean acceptsActionDefinition(Object scopedObject, String accessibleByUser, Set<String> userGroupKeys, ActionDefinition actionDefinition, ActionDefinitionModel actionDefinitionModel, ActionInstance actionInstance)
actionDefinition
with the provided actionDefinitionModel
.scopedObject
- the scoped object (e.g. conversation, user, process, etc) that can be filteredaccessibleByUser
- The current user iduserGroupKeys
- The groups of the current useractionDefinition
- the action definition that would be returnedactionDefinitionModel
- the action definition model for the provided actionDefinition
actionInstance
- Optional ActionInstance
, if there are action instances related to the scoped objecttrue
if the actionDefinition
is accepted by the scoped object, false
otherwiseCopyright © 2019. All rights reserved.