Class ProfileAttributeCondition
java.lang.Object
de.xima.fc.mdl.auth.authorization.ProfileAttributeCondition
- All Implemented Interfaces:
Serializable
@NotEmptyIf(field="value",
dependants="matchCondition",
target=ProfileAttributeCondition.class)
public class ProfileAttributeCondition
extends Object
implements Serializable
A single condition for
ProfileAttributeConditionProperties.getConditions()
.- Since:
- 8.0.0
- Author:
- XIMA MEDIA GmbH
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetValue()
boolean
void
setAttribute
(ProfileAttributeDescriptor attribute) void
setMatchCondition
(EMatchCondition matchCondition) void
void
setVariableName
(String variableName) toString()
-
Constructor Details
-
ProfileAttributeCondition
public ProfileAttributeCondition()
-
-
Method Details
-
getAttribute
- Returns:
- the model describing the attribute of a profile.
-
setAttribute
- Parameters:
attribute
- the model describing the attribute of the profile.
-
getMatchCondition
- Returns:
- The operator for comparing the
profile attribute
against theexpected value
.
-
setMatchCondition
- Parameters:
matchCondition
- The operator for comparing theprofile attribute
against theexpected value
.
-
getValue
- Returns:
- The right hand side with the value to test against
getAttribute()
, if required by thegetMatchCondition()
.
-
setValue
- Parameters:
value
- The right hand side with the value to test againstgetAttribute()
, if required by thegetMatchCondition()
.
-
isShowValue
public boolean isShowValue()- Returns:
- Whether the right hand side match operand (value) should be shown in the UI.
-
getVariableName
- Returns:
- The name of this condition when used in a
ProfileAttributeConditionProperties.getCustomExpression()
.
-
setVariableName
- Parameters:
variableName
- The name of this condition when used in aProfileAttributeConditionProperties.getCustomExpression()
.
-
toString
-