Package com.pullreports.model.config
Class ReportConfiguration.Builder
Object
com.pullreports.model.config.ReportConfiguration.Builder
- Direct Known Subclasses:
ReportConfiguration.ReportConfigurationBuilder
- Enclosing class:
- ReportConfiguration
A ReportConfiguration.Builder follows the builder pattern to create a new
ReportConfiguration
instance. Set required properties via the ReportConfiguration.Builder constructor
and then use setter methods to set optional properties. The build()
method returns
a new ReportConfiguration instance.
Schema analog: <report>
-
Constructor Summary
ConstructorsConstructorDescriptionBuilder
(ReportId id, String name, TableConfiguration baseTableConfiguration) -
Method Summary
Modifier and TypeMethodDescriptionbuild()
protected final ReportId
getId()
protected final String
getName()
protected final TableConfiguration
setAccessControlVoter
(AccessControlVoter accessControlVoter) setDescription
(String description) setExportConfiguration
(ExportConfiguration exportConfiguration) Sets the givenExportConfiguration
and returns this builder reference.
-
Constructor Details
-
Builder
-
-
Method Details
-
build
-
setDescription
-
setExportConfiguration
Sets the givenExportConfiguration
and returns this builder reference.- Parameters:
exportConfiguration
- TheExportConfiguration
to set.- Returns:
- this builder reference.
- Throws:
com.pullreports.model.config.ReportConfiguration.ReportConfigurationException
- If one of the following conditions occur:- The argument's
ExportConfiguration.getDefaultColumns()
references a missing or non-exportableColumnConfiguration
. - The argument's
Table.getPrimaryKeyColumnIds()
references a missingColumnConfiguration
. - The argument's
ExportConfiguration.getDefaultSortTerms()
references a missingColumnConfiguration
. - The argument's
ExportConfiguration.getKmlConfiguration()
references a missingColumnConfiguration
. - The argument's
ExportConfiguration.getGeojsonConfiguration()
references a missingColumnConfiguration
.
- The argument's
-
setAccessControlVoter
-
getId
-
getName
-
getTableConfiguration
-