TargetFilter.java revision e7cac727a9231ff3602e61a4ea678e0463eb0e39
/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License, Version 1.0 only
* (the "License"). You may not use this file except in compliance
* with the License.
*
* You can obtain a copy of the license at legal-notices/CDDLv1_0.txt
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at legal-notices/CDDLv1_0.txt.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information:
* Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*
*
* Copyright 2008 Sun Microsystems, Inc.
* Portions Copyright 2014-2015 ForgeRock AS
*/
/**
* This class represents a targetfilter keyword of an aci.
*/
public class TargetFilter {
/** Enumeration representing the targetfilter operation. */
/** Filter parsed from the ACI used to match the resource entry. */
private SearchFilter filter;
/**
* Class representing a targetfilter keyword.
* @param op The operation of the targetfilter expression (=, !=)
* @param filter The filter itself.
*/
}
/**
* Decode a aci's targetfilter string.
* @param op The operation enumeration of the expression.
* @param expr A string representing the target filter.
* @return A TargetFilter class suitable for using in a match.
* @throws AciException If the expression string is invalid.
*/
throws AciException {
try {
} catch (DirectoryException ex) {
throw new AciException(message);
}
}
/**
* Checks if a targetfilter matches an evaluation context.
* @param matchCtx The evaluation context to use in the matching.
* @return True if the target filter matched the context.
*/
boolean ret;
return ret;
}
/**
* Checks the filter against an entry taken from the match context.
* @param e The entry from the evaluation context above.
* @return True if the filter matches the entry.
*/
private boolean matchesFilter(Entry e) {
boolean ret;
try {
} catch (DirectoryException ex) {
//TODO information message?
return false;
}
return ret;
}
}