Package org.forgerock.audit.filter
Class FilterPolicy
- java.lang.Object
-
- org.forgerock.audit.filter.FilterPolicy
-
public class FilterPolicy extends Object
Represents a FilterPolicy which contains the includeIf and excludeIf values for the filter. The includeIf property lists fields/values inJsonPointersyntax to include for the audit event. By default all audit event fields are included. The excludeIf property lists fields/values inJsonPointersyntax to exclude for the audit event. The listed fields/values should be prefixed with the topic theJsonPointerapplies to. For example, the following excludeIf value:"/access/exclude/field"would exclude the field "/exclude/field" for the access audit topic. The following is an example FilterPolicy in json format.{ "excludeIf" : [ "/access/exclude/field" ], "includeIf" : [ "/access/include/field" ] }
-
-
Constructor Summary
Constructors Constructor Description FilterPolicy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<String>getExcludeIf()Gets the excludeIf list.List<String>getIncludeIf()Gets the includeIf list.voidsetExcludeIf(Collection<String> excludeIf)Sets the excludeIf list.voidsetIncludeIf(Collection<String> includeIf)Sets the includeIf list.
-
-
-
Method Detail
-
getIncludeIf
public List<String> getIncludeIf()
Gets the includeIf list. The includeIf is a list of values to include in the audit event.- Returns:
- The list of includeIfs.
-
setIncludeIf
public void setIncludeIf(Collection<String> includeIf)
Sets the includeIf list. The includeIf is a list of values to include in the audit event.- Parameters:
includeIf- The list of includeIfs.
-
getExcludeIf
public List<String> getExcludeIf()
Gets the excludeIf list. The excludeIf is a list of values to exclude from the audit event.- Returns:
- The list of excludeIfs.
-
setExcludeIf
public void setExcludeIf(Collection<String> excludeIf)
Sets the excludeIf list. The excludeIf is a list of values to exclude from the audit event.- Parameters:
excludeIf- The list of excludeIfs.
-
-