public abstract class AbstractBaseFacade extends Object
| Modifier and Type | Field and Description |
|---|---|
static SearchResult |
EMPTY_SEARCH_RESULT |
| Constructor and Description |
|---|
AbstractBaseFacade() |
| Modifier and Type | Method and Description |
|---|---|
protected <I,R> SearchResult<R> |
convertSearchResult(SearchResult<I> input,
Function<List<I>,List<R>> mapper) |
protected UnknownIdentifierException |
createUnknownIdentifierException(String name,
String code) |
protected <ITEM> ITEM |
executeInTransaction(Supplier<ITEM> transactionBody) |
protected <ITEM> ITEM |
executeInTransaction(Supplier<ITEM> transactionBody,
Action0 rollbackAction) |
protected CatalogVersionModel |
getCatalogVersion(String catalogId,
String catalogVersionId) |
CatalogVersionService |
getCatalogVersionService() |
ModelService |
getModelService() |
protected void |
rollbackTransaction(Transaction tx) |
void |
setCatalogVersionService(CatalogVersionService catalogVersionService) |
void |
setModelService(ModelService modelService) |
protected void |
throwAlreadyExists(String name,
String code) |
protected void |
validateCatalogIdentifiers(String catalogId,
String catalogVersionId) |
protected void |
validateCode(String cxTypeName,
String code) |
protected void |
validateName(String cxTypeName,
String name) |
public static final SearchResult EMPTY_SEARCH_RESULT
protected UnknownIdentifierException createUnknownIdentifierException(String name, String code)
protected CatalogVersionModel getCatalogVersion(String catalogId, String catalogVersionId)
protected <I,R> SearchResult<R> convertSearchResult(SearchResult<I> input, Function<List<I>,List<R>> mapper)
protected void validateCatalogIdentifiers(String catalogId, String catalogVersionId)
protected <ITEM> ITEM executeInTransaction(Supplier<ITEM> transactionBody)
protected <ITEM> ITEM executeInTransaction(Supplier<ITEM> transactionBody, Action0 rollbackAction)
protected void rollbackTransaction(Transaction tx)
public void setModelService(ModelService modelService)
public ModelService getModelService()
public void setCatalogVersionService(CatalogVersionService catalogVersionService)
public CatalogVersionService getCatalogVersionService()
Copyright © 2017 SAP SE. All Rights Reserved.