public interface CatalogService
| Modifier and Type | Method and Description |
|---|---|
void |
addSessionCatalogVersion(java.lang.String catalogId,
java.lang.String catalogVersionName)
Deprecated.
|
java.util.Collection<CatalogModel> |
getAllCatalogs()
Returns all
CatalogModels. |
<T extends CatalogModel> |
getAllCatalogsOfType(java.lang.Class<T> catalogType)
Returns for the given
T (upper bound CatalogModel) all catalogs of T defined in the
system |
CatalogModel |
getCatalogForId(java.lang.String id)
Returns the catalog with the specified
id. |
CatalogVersionModel |
getCatalogVersion(java.lang.String catalogId,
java.lang.String catalogVersionName)
Deprecated.
since ages - Use
CatalogVersionService.getCatalogVersion(String, String) |
CatalogModel |
getDefaultCatalog()
Returns the default catalog basing on
CatalogModel.DEFAULTCATALOG property. |
void |
setSessionCatalogVersion(java.lang.String catalogId,
java.lang.String catalogVersionName)
Deprecated.
since ages - use
CatalogVersionService.setSessionCatalogVersion(String, String) instead. |
@Deprecated
void setSessionCatalogVersion(java.lang.String catalogId,
java.lang.String catalogVersionName)
CatalogVersionService.setSessionCatalogVersion(String, String) instead.CatalogVersionModel specified by catalogId and catalogVersionName as
the active CatalogVersion of the current session. Previous set active CatalogVersions are replaced.catalogId - the id of the Catalog the CatalogVersion belongs tocatalogVersionName - the version of the Catalog versionUnknownIdentifierException - if no CatalogVersion with the specified catalog id and version existsAmbiguousIdentifierException - if more than one CatalogVersion is found with the specified catalog id and versionjava.lang.IllegalArgumentException - if catalogId or catalogVersionName is null@Deprecated
void addSessionCatalogVersion(java.lang.String catalogId,
java.lang.String catalogVersionName)
CatalogVersionService.addSessionCatalogVersion(CatalogVersionModel)CatalogVersionModel specified by catalogId and catalogVersionName to
the current active Session CatalogVersions.catalogId - the id of the Catalog the CatalogVersion belongs tocatalogVersionName - the version of the Catalog versionUnknownIdentifierException - if no CatalogVersion with the specified catalog id and version existsAmbiguousIdentifierException - if more than one CatalogVersion is found with the specified catalog id and versionjava.lang.IllegalArgumentException - if catalogId or catalogVersionName is null@Deprecated CatalogVersionModel getCatalogVersion(java.lang.String catalogId, java.lang.String catalogVersionName)
CatalogVersionService.getCatalogVersion(String, String)catalogId - the id for the catalogcatalogVersionName - the version string for the catalog versionUnknownIdentifierException - if no CatalogVersion with the specified catalog id and version existsAmbiguousIdentifierException - if more than one CatalogVersion is found with the specified catalog id and versionjava.lang.IllegalArgumentException - if catalogId or catalogVersionName is nulljava.util.Collection<CatalogModel> getAllCatalogs()
CatalogModels.<T extends CatalogModel> java.util.Collection<T> getAllCatalogsOfType(java.lang.Class<T> catalogType)
T (upper bound CatalogModel) all catalogs of T defined in the
systemT - This could be a ClassificationSystemModel or a CatalogModelClassificationSystemModels or CatalogModel were found.java.lang.IllegalArgumentException - if catalogType is nullCatalogModel getCatalogForId(java.lang.String id)
id.UnknownIdentifierException - if no Catalog with the specified id is foundAmbiguousIdentifierException - if more than one Catalog is found with the specified idjava.lang.IllegalArgumentException - if id is nullCatalogModel getDefaultCatalog()
CatalogModel.DEFAULTCATALOG property. If multiple catalogs the
one created the latest will be returned.CatalogModel, or null in case no default catalog was found.{@link - AmbiguousIdentifierException} if there exists more then one default catalog in the data base.Copyright © 2018 SAP SE. All Rights Reserved.