Class AbstractServiceImpl

    • Constructor Detail

      • AbstractServiceImpl

        public AbstractServiceImpl()
    • 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 by setLabelResolver(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 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 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 type
        code - the value code
      • setCockpitTypeService

        public void setCockpitTypeService​(TypeService typeService)
      • setModelService

        public void setModelService​(ModelService modelService)