Interface FormatSettingsManager

All Known Implementing Classes:
CachingFormatSettingsManager, DefaultFormatSettingsManager

@Transactional public interface FormatSettingsManager
Persistent storage and retrieval of format settings. Implementations should return a default value if no configuration currently exists.
  • Method Details

    • getDateFormat

      @Transactional(readOnly=true) String getDateFormat()
      Returns the formatting pattern used for dates. Typically something like "d MMM, yyyy".
    • setDateFormat

      void setDateFormat(String pattern)
      Stores the formatting pattern to be used for dates.
      Parameters:
      pattern - a pattern compatible with SimpleDateFormat
    • getTimeFormat

      @Transactional(readOnly=true) String getTimeFormat()
      Returns the formatting pattern used for times. Typically something like "h:mm a".
    • setTimeFormat

      void setTimeFormat(String pattern)
      Stores the formatting pattern to be used for times.
      Parameters:
      pattern - a pattern compatible with SimpleDateFormat
    • getDateTimeFormat

      @Transactional(readOnly=true) String getDateTimeFormat()
      Returns the formatting pattern used for date and time together. Typically something like "d MMM, yyyy HH:mm".
    • setDateTimeFormat

      void setDateTimeFormat(String pattern)
      Stores the formatting pattern to be used for date and time together.
      Parameters:
      pattern - a pattern compatible with SimpleDateFormat
    • getLongNumberFormat

      @Transactional(readOnly=true) String getLongNumberFormat()
      Returns the formatting pattern used for integer numbers. Typically something like "###############".
    • setLongNumberFormat

      void setLongNumberFormat(String pattern)
      Stores the formatting pattern to be used for integer numbers.
      Parameters:
      pattern - a pattern compatible with DecimalFormat
    • getDecimalNumberFormat

      @Transactional(readOnly=true) String getDecimalNumberFormat()
      Returns the formatting pattern used for decimal numbers. Typically something like "###############.##########".
    • getEditorBlogPostDate

      @Transactional(readOnly=true) String getEditorBlogPostDate()
      Returns the date format for the editor blog post date
    • getEditorBlogPostTime

      @Transactional(readOnly=true) String getEditorBlogPostTime()
      Returns the time format for the editor blog post date
    • setDecimalNumberFormat

      void setDecimalNumberFormat(String pattern)
      Stores the formatting pattern to be used for decimal numbers.
      Parameters:
      pattern - a pattern compatible with DecimalFormat