Class Discriminant
- java.lang.Object
-
- org.apache.directory.fortress.core.util.time.Discriminant
-
- All Implemented Interfaces:
Validator
@Deprecated public class Discriminant extends Object implements Validator
Deprecated.Do not use, is deprecated forUserRoleConstraint
. This class performs dynamic constraint validation on role per FC-235.- Author:
- Apache Directory Project
-
-
Constructor Summary
Constructors Constructor Description Discriminant()
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description Set<String>
getValues(String members)
Deprecated.int
validate(Session session, Constraint role, Time time, VUtil.ConstraintType type)
Deprecated.This method is called during entity activation,VUtil.validateConstraints(org.apache.directory.fortress.core.model.Session, org.apache.directory.fortress.core.util.VUtil.ConstraintType, boolean)
and ensures role has a matching constraint value.
-
-
-
Method Detail
-
validate
public int validate(Session session, Constraint role, Time time, VUtil.ConstraintType type)
Deprecated.This method is called during entity activation,VUtil.validateConstraints(org.apache.directory.fortress.core.model.Session, org.apache.directory.fortress.core.util.VUtil.ConstraintType, boolean)
and ensures role has a matching constraint value.- Specified by:
validate
in interfaceValidator
- Parameters:
session
- Contains the name and value of discriminator, passed by the caller, along with its corresponding values, stored on the user's properties.role
- only the name is used on this argument.time
- contains the current time stamp, and required by the interface, but not needed here.type
- used on this validator to prevent it from ever being applied to a user's constraint.- Returns:
- '0' if validation succeeds else
GlobalErrIds.ACTV_FAILED_DISCRIMINANT
if failed.
-
-