Class ORCondition

  • All Implemented Interfaces:
    Condition

    public final class ORCondition
    extends Object
    implements Condition
    A condition which evaluates to false if and only if all of its sub-conditions are false.
    • Constructor Detail

      • ORCondition

        public ORCondition​(Condition... conditions)
        Creates a new logical OR condition with the provided sub-conditions.
        Parameters:
        conditions - The sub-conditions which will be combined using a logical OR.
    • Method Detail

      • evaluate

        public boolean evaluate​(ManagementContext context,
                                ManagedObject<?> managedObject)
                         throws org.forgerock.opendj.ldap.LdapException
        Description copied from interface: Condition
        Evaluates this condition against the provided client managed object.
        Specified by:
        evaluate in interface Condition
        Parameters:
        context - The client management context.
        managedObject - The client managed object.
        Returns:
        Returns true if this condition is satisfied.
        Throws:
        org.forgerock.opendj.ldap.LdapException - If the condition could not be evaluated.
      • evaluate

        public boolean evaluate​(ServerManagedObject<?> managedObject)
                         throws ConfigException
        Description copied from interface: Condition
        Evaluates this condition against the provided server managed object.
        Specified by:
        evaluate in interface Condition
        Parameters:
        managedObject - The server managed object.
        Returns:
        Returns true if this condition is satisfied.
        Throws:
        ConfigException - If the condition could not be evaluated due to an unexpected configuration exception.