Class DefaultScheduleLinePopulator

    • Constructor Detail

      • DefaultScheduleLinePopulator

        public DefaultScheduleLinePopulator()
    • Method Detail

      • getI18NService

        public I18NService getI18NService()
        Returns:
        the i18NService
      • setI18NService

        public void setI18NService​(I18NService i18nService)
        Parameters:
        i18nService - the i18NService to set
      • getFormattedDate

        protected java.lang.String getFormattedDate​(java.util.Date date,
                                                    java.util.Locale locale)
        Formats schedule line date according to the current session locale
        Parameters:
        date -
        locale - Session locale
        Returns:
        Schedule line date in localized format, using DateFormat.LONG
      • getGenericFactory

        public GenericFactory getGenericFactory()
        Returns:
        Factory to access SAP session beans
      • setGenericFactory

        public void setGenericFactory​(GenericFactory genericFactory)
        Sets generic factory (to access SAP session beans) via spring injection
        Parameters:
        genericFactory -
      • convertDateToLongDateString

        protected java.lang.String convertDateToLongDateString​(java.util.Date date)
        Converts a date to a localized string
        Parameters:
        date -
        Returns:
        Date string, localized according the session locale
      • convertDoubleToString

        protected java.lang.String convertDoubleToString​(java.lang.Double input)
        Converts a double to a localized string, according to the session locale
        Parameters:
        input - conversion input
        Returns:
        String, localized according to the session locale
      • convertBigDecimalToString

        protected java.lang.String convertBigDecimalToString​(java.math.BigDecimal quantity,
                                                             java.lang.String unit)
        Converts a big decimal into localized format, taking the unit customizing into account. If there are no decimal places however, we donn't display a decimal separator
        Parameters:
        quantity -
        unit -
        Returns:
        Localized string (considering unit customizing)