Package com.pullreports.model.config
Class CatalogConfiguration
Object
com.pullreports.model.config.CatalogConfiguration
A CatalogConfiguration is a collection of one or more
ReportConfiguration
s that all
share the same directory path within the Pull Reports REST API. Group ReportConfiguration
s
into a CatalogConfiguration to share common configuration such as database connectivity, security,
or export decoration.
During Pull Reports initialization, CatalogConfigurations are parsed from Catalog XML configuration
files or provided by CatalogConfigurationFactory
s.
Schema analog: <catalog>
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionCatalogConfiguration
(CatalogId id, String name, List<ReportConfiguration> reportConfigurations) CatalogConfiguration
(CatalogId id, String name, List<ReportConfiguration> reportConfigurations, AccessControlVoter accessControlVoter) -
Method Summary
Modifier and TypeMethodDescriptionAn Optional which returns theAccessControlVoter
for this CatalogConfiguration or the empty Optional.getId()
Returns the unique Catalog id.getName()
Returns the human-readable Catalog name.Returns a List of one or more ReportConfigurations associated with this CatalogConfiguration.
-
Constructor Details
-
CatalogConfiguration
public CatalogConfiguration(CatalogId id, String name, List<ReportConfiguration> reportConfigurations) -
CatalogConfiguration
public CatalogConfiguration(CatalogId id, String name, List<ReportConfiguration> reportConfigurations, AccessControlVoter accessControlVoter)
-
-
Method Details
-
getId
Returns the unique Catalog id. This id forms part of the Pull Reports REST API URL path.- Returns:
- the unique Catalog id.
-
getName
Returns the human-readable Catalog name.- Returns:
- the human-readable catalog name.
-
getReportConfigurations
Returns a List of one or more ReportConfigurations associated with this CatalogConfiguration.- Returns:
- the List of ReportConfigurations associated with this Catalog.
-
getAccessControlVoter
An Optional which returns theAccessControlVoter
for this CatalogConfiguration or the empty Optional. The AccessControlVoter, if present, controls Pull Reports REST API access to the Catalog.- Returns:
- The CatalogConfiguration's AccessControlVoter Optional or the empty Optional.
-