Class AbstractServiceImpl
- java.lang.Object
-
- de.hybris.platform.cockpit.services.impl.AbstractServiceImpl
-
- Direct Known Subclasses:
CatalogServiceImpl
,ConnectedItemServiceImpl
,DefaultCockpitCommentService
,DefaultObjectCompareService
,DefaultReportsService
,DefaultUIAccessRightService
,DefaultUIConfigurationService
,DynamicQueryServiceImpl
,FavoriteCategoryServiceImpl
,LoginServiceImpl
,NewItemServiceImpl
,ObjectCollectionServiceImpl
,PropertyBasedService
,SavedQueryServiceImpl
,SavedValuesServiceImpl
,SynchronizationServiceImpl
,SystemServiceImpl
public class AbstractServiceImpl extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description protected ModelService
modelService
protected TypeService
typeService
-
Constructor Summary
Constructors Constructor Description AbstractServiceImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description EnumerationValueModel
getEnum(java.lang.String type, java.lang.String code)
Fetches a specified enumeration value and wraps it.java.util.List<EnumerationValueModel>
getEnums(java.lang.String type)
Fetches and maps all enum values of a given enumeration type.protected java.lang.String
getLocalizedLabel(java.lang.String key)
Return the localized label for the given key.protected java.lang.String
getLocalizedLabel(java.lang.String key, java.lang.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)
-
-
-
Field Detail
-
typeService
protected TypeService typeService
-
modelService
protected ModelService modelService
-
-
Method Detail
-
getLocalizedLabel
protected java.lang.String getLocalizedLabel(java.lang.String key)
Return the localized label for the given key. If no labelResolver is set bysetLabelResolver(I3LabelResolver)
,Labels.getLabel(String)
is called.
-
getLocalizedLabel
protected java.lang.String getLocalizedLabel(java.lang.String key, java.lang.Object[] args)
Return the localized label for the given key. If no labelResolver is set bysetLabelResolver(I3LabelResolver)
,Labels.getLabel(String, Object[])
is called.
-
setLabelResolver
public void setLabelResolver(I3LabelResolver labelResolver)
Allows to set a LabelResolver, especially for testing without zk environment.
-
getEnums
public java.util.List<EnumerationValueModel> getEnums(java.lang.String type)
Fetches and maps all enum values of a given enumeration type.- Parameters:
type
- the code of the enumeration type
-
getEnum
public EnumerationValueModel getEnum(java.lang.String type, java.lang.String code)
Fetches a specified enumeration value and wraps it.- Parameters:
type
- the enumeration typecode
- the value code
-
setCockpitTypeService
public void setCockpitTypeService(TypeService typeService)
-
getTypeService
public TypeService getTypeService()
-
setModelService
public void setModelService(ModelService modelService)
-
getModelService
public ModelService getModelService()
-
-