public class AbstractServiceImpl extends Object
| Modifier and Type | Field and Description |
|---|---|
protected ModelService |
modelService |
protected TypeService |
typeService |
| Constructor and Description |
|---|
AbstractServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
EnumerationValueModel |
getEnum(String type,
String code)
Fetches a specified enumeration value and wraps it.
|
List<EnumerationValueModel> |
getEnums(String type)
Fetches and maps all enum values of a given enumeration type.
|
protected String |
getLocalizedLabel(String key)
Return the localized label for the given key.
|
protected String |
getLocalizedLabel(String key,
Object[] args)
Return the localized label for the given key.
|
ModelService |
getModelService() |
TypeService |
getTypeService() |
void |
setCockpitTypeService(TypeService typeService) |
void |
setLabelResolver(I3LabelResolver labelResolver)
Allows to set a LabelResolver, especially for testing without zk environment.
|
void |
setModelService(ModelService modelService) |
protected TypeService typeService
protected ModelService modelService
protected String getLocalizedLabel(String key)
setLabelResolver(I3LabelResolver), Labels#getLabel(String) is called.protected String getLocalizedLabel(String key, Object[] args)
setLabelResolver(I3LabelResolver), Labels#getLabel(String, Object[]) is
called.public void setLabelResolver(I3LabelResolver labelResolver)
public List<EnumerationValueModel> getEnums(String type)
type - the code of the enumeration typepublic EnumerationValueModel getEnum(String type, String code)
type - the enumeration typecode - the value codepublic void setCockpitTypeService(TypeService typeService)
public TypeService getTypeService()
public void setModelService(ModelService modelService)
public ModelService getModelService()
Copyright © 2017 SAP SE. All Rights Reserved.