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 ModelServicemodelServiceprotected TypeServicetypeService
-
Constructor Summary
Constructors Constructor Description AbstractServiceImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description EnumerationValueModelgetEnum(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.StringgetLocalizedLabel(java.lang.String key)Return the localized label for the given key.protected java.lang.StringgetLocalizedLabel(java.lang.String key, java.lang.Object[] args)Return the localized label for the given key.ModelServicegetModelService()TypeServicegetTypeService()voidsetCockpitTypeService(TypeService typeService)voidsetLabelResolver(I3LabelResolver labelResolver)Allows to set a LabelResolver, especially for testing without zk environment.voidsetModelService(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()
-
-