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.
    • Method Detail

      • evaluate

        public boolean evaluate​(ManagementContext context,
                                ManagedObject<?> managedObject)
                         throws 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:
        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.