Package com.atlassian.confluence.core
Class DefaultFormatSettingsManager
java.lang.Object
com.atlassian.confluence.core.DefaultFormatSettingsManager
- All Implemented Interfaces:
FormatSettingsManager
Implementation of
FormatSettingsManager
which persists the date format settings in Bandana.
Returns constant default values if the configuration has not been set.
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the formatting pattern used for dates.Returns the formatting pattern used for date and time together.Returns the formatting pattern used for decimal numbers.Returns the date format for the editor blog post dateReturns the time format for the editor blog post dateReturns the formatting pattern used for integer numbers.Returns the formatting pattern used for times.void
setBandanaManager
(BandanaManager bandanaManager) void
setDateFormat
(String pattern) Stores the formatting pattern to be used for dates.void
setDateTimeFormat
(String pattern) Stores the formatting pattern to be used for date and time together.void
setDecimalNumberFormat
(String pattern) Stores the formatting pattern to be used for decimal numbers.void
setLongNumberFormat
(String pattern) Stores the formatting pattern to be used for integer numbers.void
setTimeFormat
(String pattern) Stores the formatting pattern to be used for times.
-
Field Details
-
DEFAULT_DATE_PATTERN
- See Also:
-
DEFAULT_DATE_TIME_PATTERN
- See Also:
-
BLOG_DATE_PATTERN
- See Also:
-
EDITOR_BLOG_DATE_PATTERN
- See Also:
-
EDITOR_BLOG_TIME_PATTERN
- See Also:
-
DEFAULT_TIME_PATTERN
- See Also:
-
DEFAULT_LONG_NUMBER_PATTERN
- See Also:
-
DEFAULT_DECIMAL_NUMBER_PATTERN
- See Also:
-
-
Constructor Details
-
DefaultFormatSettingsManager
public DefaultFormatSettingsManager()
-
-
Method Details
-
getDateFormat
Description copied from interface:FormatSettingsManager
Returns the formatting pattern used for dates. Typically something like "d MMM, yyyy".- Specified by:
getDateFormat
in interfaceFormatSettingsManager
-
setDateFormat
Description copied from interface:FormatSettingsManager
Stores the formatting pattern to be used for dates.- Specified by:
setDateFormat
in interfaceFormatSettingsManager
- Parameters:
pattern
- a pattern compatible withSimpleDateFormat
-
getTimeFormat
Description copied from interface:FormatSettingsManager
Returns the formatting pattern used for times. Typically something like "h:mm a".- Specified by:
getTimeFormat
in interfaceFormatSettingsManager
-
setTimeFormat
Description copied from interface:FormatSettingsManager
Stores the formatting pattern to be used for times.- Specified by:
setTimeFormat
in interfaceFormatSettingsManager
- Parameters:
pattern
- a pattern compatible withSimpleDateFormat
-
getDateTimeFormat
Description copied from interface:FormatSettingsManager
Returns the formatting pattern used for date and time together. Typically something like "d MMM, yyyy HH:mm".- Specified by:
getDateTimeFormat
in interfaceFormatSettingsManager
-
setDateTimeFormat
Description copied from interface:FormatSettingsManager
Stores the formatting pattern to be used for date and time together.- Specified by:
setDateTimeFormat
in interfaceFormatSettingsManager
- Parameters:
pattern
- a pattern compatible withSimpleDateFormat
-
getEditorBlogPostDate
Description copied from interface:FormatSettingsManager
Returns the date format for the editor blog post date- Specified by:
getEditorBlogPostDate
in interfaceFormatSettingsManager
-
getEditorBlogPostTime
Description copied from interface:FormatSettingsManager
Returns the time format for the editor blog post date- Specified by:
getEditorBlogPostTime
in interfaceFormatSettingsManager
-
getLongNumberFormat
Description copied from interface:FormatSettingsManager
Returns the formatting pattern used for integer numbers. Typically something like "###############".- Specified by:
getLongNumberFormat
in interfaceFormatSettingsManager
-
setLongNumberFormat
Description copied from interface:FormatSettingsManager
Stores the formatting pattern to be used for integer numbers.- Specified by:
setLongNumberFormat
in interfaceFormatSettingsManager
- Parameters:
pattern
- a pattern compatible withDecimalFormat
-
getDecimalNumberFormat
Description copied from interface:FormatSettingsManager
Returns the formatting pattern used for decimal numbers. Typically something like "###############.##########".- Specified by:
getDecimalNumberFormat
in interfaceFormatSettingsManager
-
setDecimalNumberFormat
Description copied from interface:FormatSettingsManager
Stores the formatting pattern to be used for decimal numbers.- Specified by:
setDecimalNumberFormat
in interfaceFormatSettingsManager
- Parameters:
pattern
- a pattern compatible withDecimalFormat
-
setBandanaManager
-