Class TargAttrFilters


  • public final class TargAttrFilters
    extends Object
    The TargAttrFilters class represents a targattrfilters rule of an ACI.
    • Method Detail

      • decode

        public static TargAttrFilters decode​(EnumTargetOperator type,
                                             String expression)
                                      throws AciException
        Decode an targattrfilter rule.
        Parameters:
        type - The enumeration representing the type of this rule. Defaults to equality for this target.
        expression - The string expression to be decoded.
        Returns:
        A TargAttrFilters class representing the decode expression.
        Throws:
        AciException - If the expression string contains errors and cannot be decoded.
      • isApplicableMod

        public boolean isApplicableMod​(AciTargetMatchContext matchCtx,
                                       Aci aci)
        Check if this TargAttrFilters object is applicable to the target specified match context. This check is only used for the LDAP modify operation.
        Parameters:
        matchCtx - The target match context containing the information needed to match.
        aci - The ACI currently being evaluated for a target match.
        Returns:
        True if this TargAttrFitlers object is applicable to this target match context.
      • isApplicableAddDel

        public boolean isApplicableAddDel​(AciTargetMatchContext matchCtx)
        Check if this TargAttrFilters object is applicable to the specified target match context. This check is only used for either LDAP add or delete operations.
        Parameters:
        matchCtx - The target match context containing the information needed to match.
        Returns:
        True if this TargAttrFilters object is applicable to this target match context.
      • hasMask

        public boolean hasMask​(int mask)
        Return true if the TargAttrFilters mask contains the specified mask.
        Parameters:
        mask - The mask to check for.
        Returns:
        True if the mask matches.