public class TaskAvailabilityRule extends AbstractAvailabilityRule
task
related actions. Based on the definition
the following criteria normally applies:
status
of the considered task matches the one configured in definitionTaskAvailabilityRuleDefinition.isAssignee
)Modifier and Type | Field and Description |
---|---|
protected info.magnolia.context.Context |
context |
Constructor and Description |
---|
TaskAvailabilityRule(TaskAvailabilityRuleDefinition definition,
info.magnolia.context.Context context) |
Modifier and Type | Method and Description |
---|---|
boolean |
isAvailableForItem(Object itemId)
This method defines the actual evaluation logic for one item.
|
protected boolean |
isVisibleToUser(info.magnolia.task.Task task) |
isAvailable
@Inject public TaskAvailabilityRule(TaskAvailabilityRuleDefinition definition, info.magnolia.context.Context context)
public final boolean isAvailableForItem(Object itemId)
AbstractAvailabilityRule
isAvailableForItem
in class AbstractAvailabilityRule
protected boolean isVisibleToUser(info.magnolia.task.Task task)
Copyright © 2020 Magnolia International Ltd.. All rights reserved.