public class DataSourceBeanFilter
Note: this filter is automatically applied by the RPCManager to all DSResponse objects sent to the client in order to perform valueXPath resolution.
Constructor and Description |
---|
DataSourceBeanFilter(DataSource dataSource, boolean dropExtraFields) Creates a new DataSourceBeanFilter |
DataSourceBeanFilter(DataSource dataSource, boolean dropExtraFields, boolean dropIgnoredFields) Creates a new DataSourceBeanFilter |
DataSourceBeanFilter(DataSource dataSource, java.util.Collection propsToKeep) Creates a new DataSourceBeanFilter |
DataSourceBeanFilter(java.lang.String dataSource, boolean dropExtraFields) Creates a new DataSourceBeanFilter |
DataSourceBeanFilter(java.lang.String dataSource, boolean dropExtraFields, boolean dropIgnoredFields) Creates a new DataSourceBeanFilter |
DataSourceBeanFilter(java.lang.String dataSource, java.util.Collection propsToKeep) Creates a new DataSourceBeanFilter |
Modifier and Type | Method and Description |
---|---|
java.util.Map | filter(java.lang.Object o) This method is called to filter a bean (IBeanFilter Interface). |
public DataSourceBeanFilter(java.lang.String dataSource, boolean dropExtraFields)
dataSource
- DataSource to use, as a String.dropExtraFields
- If true, this filter will drop all bean properties that do not have a corresponding DataSource field definition. If false, those extra fields will not be removed by the filter.public DataSourceBeanFilter(DataSource dataSource, boolean dropExtraFields)
dataSource
- DataSource to use, as a DataSource instance.dropExtraFields
- If true, this filter will drop all bean properties that do not have a corresponding DataSource field definition. If false, those extra fields will not be removed by the filter.public DataSourceBeanFilter(java.lang.String dataSource, boolean dropExtraFields, boolean dropIgnoredFields)
dataSource
- DataSource to use, as a String.dropExtraFields
- If true, this filter will drop all bean properties that do not have a corresponding DataSource field definition. If false, those extra fields will not be removed by the filter.dropIgnoredFields
- If true, this filter will drop all bean properties where the corresponding DataSource field definition is marked with the property ignore: true. If false, the ignored fields will not be removed by the filter.public DataSourceBeanFilter(DataSource dataSource, boolean dropExtraFields, boolean dropIgnoredFields)
dataSource
- DataSource to use, as a DataSource instance.dropExtraFields
- If true, this filter will drop all bean properties that do not have a corresponding DataSource field definition. If false, those extra fields will not be removed by the filter.dropIgnoredFields
- If true, this filter will drop all bean properties where the corresponding DataSource field definition is marked with the property ignore: true. If false, the ignored fields will not be removed by the filter.public DataSourceBeanFilter(java.lang.String dataSource, java.util.Collection propsToKeep)
dataSource
- DataSource to use, as a String.propsToKeep
- Explicit list of properties to keep.public DataSourceBeanFilter(DataSource dataSource, java.util.Collection propsToKeep)
dataSource
- DataSource to use, as a DataSource instance.propsToKeep
- Explicit list of properties to keep.public java.util.Map filter(java.lang.Object o) throws java.lang.Exception
obj
- the bean to convertjava.lang.Exception