Class CachingFormatSettingsManager
java.lang.Object
com.atlassian.confluence.impl.settings.CachingFormatSettingsManager
- All Implemented Interfaces:
FormatSettingsManager
-
Method Summary
Modifier and TypeMethodDescriptionstatic CachingFormatSettingsManagercreate(FormatSettingsManager delegate, com.atlassian.cache.CacheFactory cacheFactory) Returns 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.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.
-
Method Details
-
create
public static CachingFormatSettingsManager create(FormatSettingsManager delegate, com.atlassian.cache.CacheFactory cacheFactory) -
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
-
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
-
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
-
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
-