@FunctionalInterface public interface SubjectEvaluationStrategy
SubjectEvaluatingComponentExtension
to change a
component's state after a subject was evaluated.Modifier and Type | Field and Description |
---|---|
static SubjectEvaluationStrategy |
ENABLED
Default strategy which enabled or disabled a component depending on the
evaluation's result.
|
static SubjectEvaluationStrategy |
READ_ONLY
Default strategy which sets read only mode for the component depending on
the evaluation's result.
|
static SubjectEvaluationStrategy |
VISIBLE
Default strategy which shows or hides a component depending on the
evaluation's result.
|
Modifier and Type | Method and Description |
---|---|
void |
subjectEvaluated(XdevComponent component,
boolean hasPermissions)
Called after a subject was evaluated.
|
static final SubjectEvaluationStrategy ENABLED
static final SubjectEvaluationStrategy VISIBLE
static final SubjectEvaluationStrategy READ_ONLY
void subjectEvaluated(XdevComponent component, boolean hasPermissions)
component
- the component to changehasPermissions
- true
if the subject had all necessary
permissions, false
otherwise