Class AbstractServiceImpl

java.lang.Object
de.hybris.platform.cockpit.services.impl.AbstractServiceImpl
Direct Known Subclasses:
CatalogServiceImpl, CmsCockpitServiceImpl, ConnectedItemServiceImpl, DefaultCockpitCommentService, DefaultObjectCompareService, DefaultReportsService, DefaultUIAccessRightService, DefaultUIConfigurationService, DynamicQueryServiceImpl, FavoriteCategoryServiceImpl, LoginServiceImpl, NewItemServiceImpl, ObjectCollectionServiceImpl, PropertyBasedService, SavedQueryServiceImpl, SavedValuesServiceImpl, SynchronizationServiceImpl, SystemServiceImpl

public class AbstractServiceImpl extends Object
  • Field Details

  • Constructor Details

    • AbstractServiceImpl

      public AbstractServiceImpl()
  • Method Details

    • getLocalizedLabel

      protected String getLocalizedLabel(String key)
      Return the localized label for the given key. If no labelResolver is set by setLabelResolver(I3LabelResolver), Labels.getLabel(String) is called.
    • getLocalizedLabel

      protected String getLocalizedLabel(String key, Object[] args)
      Return the localized label for the given key. If no labelResolver is set by setLabelResolver(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 List<EnumerationValueModel> getEnums(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(String type, String code)
      Fetches a specified enumeration value and wraps it.
      Parameters:
      type - the enumeration type
      code - the value code
    • setCockpitTypeService

      public void setCockpitTypeService(TypeService typeService)
    • getTypeService

      public TypeService getTypeService()
    • setModelService

      public void setModelService(ModelService modelService)
    • getModelService

      public ModelService getModelService()