public class DatabaseConfiguration extends Object
This configuration is notably used to restrict the projects in which content shall be read.
An instance of DatabaseConfiguration
shall be given as an option to the model reader using
Options.OPTION_DATABASE_CONFIGURATION
.
Constructor and Description |
---|
DatabaseConfiguration() |
Modifier and Type | Method and Description |
---|---|
List<FieldFilter> |
getFieldFilters()
Returns the list of filters that determines what fields are to include for each type.
|
List<String> |
getProjects()
Returns the list of projects from which content shall be read.
|
public final List<String> getProjects()
If the an empty list is returned, content from all projects is read. If the list is not empty, only content from returned projects is read.
It is strongly recommended to restrict the scope of projects in which content shall be read. The returned list is modifiable, so that project names can be added or removed.
public final List<FieldFilter> getFieldFilters()