Class BeanPropertiesFilter
- java.lang.Object
-
- org.alfresco.rest.framework.jacksonextensions.BeanPropertiesFilter
-
- Direct Known Subclasses:
BeanPropertiesFilter.AllProperties
public class BeanPropertiesFilter extends java.lang.ObjectBasic 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 classBeanPropertiesFilter.AllPropertiesDefault All properties filter
-
Field Summary
Fields Modifier and Type Field Description static BeanPropertiesFilterALLOW_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 booleanisAllowed(java.lang.String propertyName)Indicates if the given property name is permitted to be used ie.java.lang.StringtoString()
-
-
-
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:
toStringin classjava.lang.Object
-
-