Class BeanPropertiesFilter
- java.lang.Object
-
- org.alfresco.rest.framework.jacksonextensions.BeanPropertiesFilter
-
- Direct Known Subclasses:
BeanPropertiesFilter.AllProperties
public class BeanPropertiesFilter extends java.lang.Object
Basic bean filtering. It's based on Jackson's BeanPropertyFilter but uses slightly different method signatures- Author:
- Gethin James
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
BeanPropertiesFilter.AllProperties
Default All properties filter
-
Field Summary
Fields Modifier and Type Field Description static BeanPropertiesFilter
ALLOW_ALL
-
Constructor Summary
Constructors Constructor Description BeanPropertiesFilter(java.util.Set<java.lang.String> properties)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isAllowed(java.lang.String propertyName)
Indicates if the given property name is permitted to be used ie.java.lang.String
toString()
-
-
-
Field Detail
-
ALLOW_ALL
public static final BeanPropertiesFilter ALLOW_ALL
-
-
Method Detail
-
isAllowed
public boolean isAllowed(java.lang.String propertyName)
Indicates if the given property name is permitted to be used ie. is not filtered out- Parameters:
propertyName
- - bean property name- Returns:
- true - if the property is allowed to be used.
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-