org.openmdx.base.cci
Interface ContextCapableFilter

All Superinterfaces:
RefFilter_1_0, Serializable
All Known Subinterfaces:
AuthenticationContextFilter, BasicObjectFilter, ChallengeResponseFilter, CredentialFilter, GroupFilter, ModelClassPrivilegeFilter, ModelElementPrivilegeFilter, ModelReferencePrivilegeFilter, PasscodeFilter, PasswordFilter, PermissionFilter, PolicyFilter, PrincipalFilter, PrivilegeFilter, PrivilegeFilter, RealmFilter, ResourcePrivilegeFilter, RoleFilter, SegmentFilter, SegmentFilter, SegmentFilter, SegmentFilter, SendPasscodeFilter
All Known Implementing Classes:
AuthenticationContextFilterImpl, BasicObjectFilterImpl, ChallengeResponseFilterImpl, ContextCapableFilterImpl, CredentialFilterImpl, GroupFilterImpl, ModelClassPrivilegeFilterImpl, ModelElementPrivilegeFilterImpl, ModelReferencePrivilegeFilterImpl, PasscodeFilterImpl, PasswordFilterImpl, PermissionFilterImpl, PolicyFilterImpl, PrincipalFilterImpl, PrivilegeFilterImpl, PrivilegeFilterImpl, RealmFilterImpl, ResourcePrivilegeFilterImpl, RoleFilterImpl, SegmentFilterImpl, SegmentFilterImpl, SegmentFilterImpl, SegmentFilterImpl, SendPasscodeFilterImpl

public interface ContextCapableFilter
extends RefFilter_1_0

A ContextCapableFilter selects a set of instances of class ContextCapable based on conditions to be met by their attributes. For each attribute there can be set at most one constraint using either its thereExists or forAll clause. An instance must meet all constraints to be member of this set.


Method Summary
 void forAllContext(short operator, Collection filterValues)
          Adds a constraint for the attribute context to the filter.
 void forAllContext(short operator, Context[] filterValues)
          Adds a constraint for the attribute context to the filter.
 void thereExistsContext(short operator, Collection filterValues)
          Adds a constraint for the attribute context to the filter.
 void thereExistsContext(short operator, Context[] filterValues)
          Adds a constraint for the attribute context to the filter.
 
Methods inherited from interface org.openmdx.base.accessor.jmi.cci.RefFilter_1_0
clear, refAddValue, refAddValue, refAddValue, refGetAttributeSpecifiers, refGetFilterProperties
 

Method Detail

forAllContext

void forAllContext(short operator,
                   Context[] filterValues)
Adds a constraint for the attribute context to the filter. An instance of class ContextCapable is excluded from the result set unless its value of attribute context satisfies the given condition.

Since the multiplicity for this attribute is 0..1, the attribute can have no value in which case the filter condition is met!

You can set at most one thereExistsContext or forAllContext constraint for this attribute.

Parameters:
operator - The operator for this filter.
filterValues - The values you want the attribute context to be compared to.
See Also:
FilterOperators

thereExistsContext

void thereExistsContext(short operator,
                        Context[] filterValues)
Adds a constraint for the attribute context to the filter. An instance of class ContextCapable is excluded from the result set unless its value of attribute context satisfies the given condition.

Since the multiplicity for this attribute is 0..1, the attribute can have no value in which case the filter condition is not met!

You can set at most one thereExistsContext or forAllContext constraint for this attribute.

Parameters:
operator - The operator for this filter.
filterValues - The values you want the attribute context to be compared to.
See Also:
FilterOperators

forAllContext

void forAllContext(short operator,
                   Collection filterValues)
Adds a constraint for the attribute context to the filter. An instance of class ContextCapable is excluded from the result set unless its value of attribute context satisfies the given condition.

Since the multiplicity for this attribute is 0..1, the attribute can have no value in which case the filter condition is met!

You can set at most one thereExistsContext or forAllContext constraint for this attribute.

Parameters:
operator - The operator for this filter.
filterValues - The values you want the attribute context to be compared to.
See Also:
FilterOperators

thereExistsContext

void thereExistsContext(short operator,
                        Collection filterValues)
Adds a constraint for the attribute context to the filter. An instance of class ContextCapable is excluded from the result set unless its value of attribute context satisfies the given condition.

Since the multiplicity for this attribute is 0..1, the attribute can have no value in which case the filter condition is not met!

You can set at most one thereExistsContext or forAllContext constraint for this attribute.

Parameters:
operator - The operator for this filter.
filterValues - The values you want the attribute context to be compared to.
See Also:
FilterOperators


This software is published under the BSD license. Copyright © 2003-2008, OMEX AG, Switzerland, All rights reserved. Use is subject to license terms.