public class DefaultCatalogService extends AbstractBusinessService implements CatalogService
CatalogService.AbstractService.SerializableDTOmodelService, sessionService, txManagertenant| Constructor and Description |
|---|
DefaultCatalogService() |
| Modifier and Type | Method and Description |
|---|---|
void |
addSessionCatalogVersion(java.lang.String catalogId,
java.lang.String catalogVersionName)
Deprecated.
since ages
|
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
|
CatalogModel |
getDefaultCatalog()
Returns the default catalog basing on
CatalogModel.DEFAULTCATALOG property. |
void |
setCatalogDao(CatalogDao catalogDao) |
void |
setCatalogVersionService(CatalogVersionService catalogVersionService) |
void |
setSessionCatalogVersion(java.lang.String catalogId,
java.lang.String catalogVersionName)
Deprecated.
since ages
|
getModelService, getSessionService, getTxManager, setModelService, setSessionService, setTxManagerafterPropertiesSet, getCurrentTenant, setBeanName, setCurrentTenant, writeReplace@Deprecated
public void setSessionCatalogVersion(java.lang.String catalogId,
java.lang.String catalogVersionName)
CatalogServiceCatalogVersionModel specified by catalogId and catalogVersionName as
the active CatalogVersion of the current session. Previous set active CatalogVersions are replaced.setSessionCatalogVersion in interface CatalogServicecatalogId - the id of the Catalog the CatalogVersion belongs tocatalogVersionName - the version of the Catalog version@Deprecated
public void addSessionCatalogVersion(java.lang.String catalogId,
java.lang.String catalogVersionName)
CatalogServiceCatalogVersionModel specified by catalogId and catalogVersionName to
the current active Session CatalogVersions.addSessionCatalogVersion in interface CatalogServicecatalogId - the id of the Catalog the CatalogVersion belongs tocatalogVersionName - the version of the Catalog version@Deprecated public CatalogVersionModel getCatalogVersion(java.lang.String catalogId, java.lang.String catalogVersionName)
CatalogServicegetCatalogVersion in interface CatalogServicecatalogId - the id for the catalogcatalogVersionName - the version string for the catalog versionpublic java.util.Collection<CatalogModel> getAllCatalogs()
CatalogServiceCatalogModels.getAllCatalogs in interface CatalogServicepublic <T extends CatalogModel> java.util.Collection<T> getAllCatalogsOfType(java.lang.Class<T> catalogType)
CatalogServiceT (upper bound CatalogModel) all catalogs of T defined in the
systemgetAllCatalogsOfType in interface CatalogServiceT - This could be a ClassificationSystemModel or a CatalogModelClassificationSystemModels or CatalogModel were found.public CatalogModel getCatalogForId(java.lang.String id)
CatalogServiceid.getCatalogForId in interface CatalogServicepublic CatalogModel getDefaultCatalog()
CatalogServiceCatalogModel.DEFAULTCATALOG property. If multiple catalogs the
one created the latest will be returned.getDefaultCatalog in interface CatalogServiceCatalogModel, or null in case no default catalog was found.public void setCatalogDao(CatalogDao catalogDao)
public void setCatalogVersionService(CatalogVersionService catalogVersionService)
Copyright © 2018 SAP SE. All Rights Reserved.