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.voidsetBandanaManager(BandanaManager bandanaManager) voidsetDateFormat(String pattern) Stores the formatting pattern to be used for dates.voidsetDateTimeFormat(String pattern) Stores the formatting pattern to be used for date and time together.voidsetDecimalNumberFormat(String pattern) Stores the formatting pattern to be used for decimal numbers.voidsetLongNumberFormat(String pattern) Stores the formatting pattern to be used for integer numbers.voidsetTimeFormat(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:FormatSettingsManagerReturns the formatting pattern used for dates. Typically something like "d MMM, yyyy".- Specified by:
getDateFormatin interfaceFormatSettingsManager
-
setDateFormat
Description copied from interface:FormatSettingsManagerStores the formatting pattern to be used for dates.- Specified by:
setDateFormatin interfaceFormatSettingsManager- Parameters:
pattern- a pattern compatible withSimpleDateFormat
-
getTimeFormat
Description copied from interface:FormatSettingsManagerReturns the formatting pattern used for times. Typically something like "h:mm a".- Specified by:
getTimeFormatin interfaceFormatSettingsManager
-
setTimeFormat
Description copied from interface:FormatSettingsManagerStores the formatting pattern to be used for times.- Specified by:
setTimeFormatin interfaceFormatSettingsManager- Parameters:
pattern- a pattern compatible withSimpleDateFormat
-
getDateTimeFormat
Description copied from interface:FormatSettingsManagerReturns the formatting pattern used for date and time together. Typically something like "d MMM, yyyy HH:mm".- Specified by:
getDateTimeFormatin interfaceFormatSettingsManager
-
setDateTimeFormat
Description copied from interface:FormatSettingsManagerStores the formatting pattern to be used for date and time together.- Specified by:
setDateTimeFormatin interfaceFormatSettingsManager- Parameters:
pattern- a pattern compatible withSimpleDateFormat
-
getEditorBlogPostDate
Description copied from interface:FormatSettingsManagerReturns the date format for the editor blog post date- Specified by:
getEditorBlogPostDatein interfaceFormatSettingsManager
-
getEditorBlogPostTime
Description copied from interface:FormatSettingsManagerReturns the time format for the editor blog post date- Specified by:
getEditorBlogPostTimein interfaceFormatSettingsManager
-
getLongNumberFormat
Description copied from interface:FormatSettingsManagerReturns the formatting pattern used for integer numbers. Typically something like "###############".- Specified by:
getLongNumberFormatin interfaceFormatSettingsManager
-
setLongNumberFormat
Description copied from interface:FormatSettingsManagerStores the formatting pattern to be used for integer numbers.- Specified by:
setLongNumberFormatin interfaceFormatSettingsManager- Parameters:
pattern- a pattern compatible withDecimalFormat
-
getDecimalNumberFormat
Description copied from interface:FormatSettingsManagerReturns the formatting pattern used for decimal numbers. Typically something like "###############.##########".- Specified by:
getDecimalNumberFormatin interfaceFormatSettingsManager
-
setDecimalNumberFormat
Description copied from interface:FormatSettingsManagerStores the formatting pattern to be used for decimal numbers.- Specified by:
setDecimalNumberFormatin interfaceFormatSettingsManager- Parameters:
pattern- a pattern compatible withDecimalFormat
-
setBandanaManager
-