org.opends.server.authorization.dseecompat
Class TargAttrFilterList

java.lang.Object
  extended by org.opends.server.authorization.dseecompat.TargAttrFilterList

public class TargAttrFilterList
extends java.lang.Object

The TargAttrFilterList class represents an targattrfilters list. A targattrfilters list looks like: "Op=attr1:F1 [(&& attr2:F2)*]


Constructor Summary
TargAttrFilterList(int mask, java.util.LinkedHashMap<AttributeType,SearchFilter> attrFilterList)
          Construct a class representing an targattrfilters filter list.
 
Method Summary
static TargAttrFilterList decode(int mask, java.lang.String expression)
          Decode an TargAttrFilterList from the specified expression string.
 java.util.LinkedHashMap<AttributeType,SearchFilter> getAttributeTypeFilterList()
          Return the list map holding the attribute type to filter mappings.
 int getMask()
          Return the mask of this TargAttrFilterList.
 boolean hasMask(int mask)
          Check if the mask value of this TargAttrFilterList class contains the specified mask value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TargAttrFilterList

public TargAttrFilterList(int mask,
                          java.util.LinkedHashMap<AttributeType,SearchFilter> attrFilterList)
Construct a class representing an targattrfilters filter list.

Parameters:
mask - The mask representing the operation.
attrFilterList - The list map containing the attribute type filter mappings.
Method Detail

decode

public static TargAttrFilterList decode(int mask,
                                        java.lang.String expression)
                                 throws AciException
Decode an TargAttrFilterList from the specified expression string.

Parameters:
mask - The mask representing the operation.
expression - The expression string to decode.
Returns:
A TargAttrFilterList class representing the targattrfilters filter list.
Throws:
AciException - If the expression string contains errors.

getMask

public int getMask()
Return the mask of this TargAttrFilterList.

Returns:
The mask value.

hasMask

public boolean hasMask(int mask)
Check if the mask value of this TargAttrFilterList class contains the specified mask value.

Parameters:
mask - The mask to check for.
Returns:
True if the mask matches the specified value.

getAttributeTypeFilterList

public java.util.LinkedHashMap<AttributeType,SearchFilter> getAttributeTypeFilterList()
Return the list map holding the attribute type to filter mappings.

Returns:
The list map.