Package com.atlassian.confluence.core
Class DefaultFormatSettingsManager
- java.lang.Object
- 
- com.atlassian.confluence.core.DefaultFormatSettingsManager
 
- 
- All Implemented Interfaces:
- FormatSettingsManager
 
 public class DefaultFormatSettingsManager extends Object implements FormatSettingsManager Implementation ofFormatSettingsManagerwhich persists the date format settings in Bandana.Returns constant default values if the configuration has not been set. - See Also:
- BandanaManager
 
- 
- 
Field SummaryFields Modifier and Type Field Description static StringBLOG_DATE_PATTERNstatic StringDEFAULT_DATE_PATTERNstatic StringDEFAULT_DATE_TIME_PATTERNstatic StringDEFAULT_DECIMAL_NUMBER_PATTERNstatic StringDEFAULT_LONG_NUMBER_PATTERNstatic StringDEFAULT_TIME_PATTERNstatic StringEDITOR_BLOG_DATE_PATTERNstatic StringEDITOR_BLOG_TIME_PATTERN
 - 
Constructor SummaryConstructors Constructor Description DefaultFormatSettingsManager()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetDateFormat()Returns the formatting pattern used for dates.StringgetDateTimeFormat()Returns the formatting pattern used for date and time together.StringgetDecimalNumberFormat()Returns the formatting pattern used for decimal numbers.StringgetEditorBlogPostDate()Returns the date format for the editor blog post dateStringgetEditorBlogPostTime()Returns the time format for the editor blog post dateStringgetLongNumberFormat()Returns the formatting pattern used for integer numbers.StringgetTimeFormat()Returns the formatting pattern used for times.voidsetBandanaManager(com.atlassian.bandana.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 Detail- 
DEFAULT_DATE_PATTERNpublic static final String DEFAULT_DATE_PATTERN - See Also:
- Constant Field Values
 
 - 
DEFAULT_DATE_TIME_PATTERNpublic static final String DEFAULT_DATE_TIME_PATTERN - See Also:
- Constant Field Values
 
 - 
BLOG_DATE_PATTERNpublic static final String BLOG_DATE_PATTERN - See Also:
- Constant Field Values
 
 - 
EDITOR_BLOG_DATE_PATTERNpublic static final String EDITOR_BLOG_DATE_PATTERN - See Also:
- Constant Field Values
 
 - 
EDITOR_BLOG_TIME_PATTERNpublic static final String EDITOR_BLOG_TIME_PATTERN - See Also:
- Constant Field Values
 
 - 
DEFAULT_TIME_PATTERNpublic static final String DEFAULT_TIME_PATTERN - See Also:
- Constant Field Values
 
 - 
DEFAULT_LONG_NUMBER_PATTERNpublic static final String DEFAULT_LONG_NUMBER_PATTERN - See Also:
- Constant Field Values
 
 - 
DEFAULT_DECIMAL_NUMBER_PATTERNpublic static final String DEFAULT_DECIMAL_NUMBER_PATTERN - See Also:
- Constant Field Values
 
 
- 
 - 
Method Detail- 
getDateFormatpublic String getDateFormat() Description copied from interface:FormatSettingsManagerReturns the formatting pattern used for dates. Typically something like "d MMM, yyyy".- Specified by:
- getDateFormatin interface- FormatSettingsManager
 
 - 
setDateFormatpublic void setDateFormat(String pattern) Description copied from interface:FormatSettingsManagerStores the formatting pattern to be used for dates.- Specified by:
- setDateFormatin interface- FormatSettingsManager
- Parameters:
- pattern- a pattern compatible with- SimpleDateFormat
 
 - 
getTimeFormatpublic String getTimeFormat() Description copied from interface:FormatSettingsManagerReturns the formatting pattern used for times. Typically something like "h:mm a".- Specified by:
- getTimeFormatin interface- FormatSettingsManager
 
 - 
setTimeFormatpublic void setTimeFormat(String pattern) Description copied from interface:FormatSettingsManagerStores the formatting pattern to be used for times.- Specified by:
- setTimeFormatin interface- FormatSettingsManager
- Parameters:
- pattern- a pattern compatible with- SimpleDateFormat
 
 - 
getDateTimeFormatpublic String 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 interface- FormatSettingsManager
 
 - 
setDateTimeFormatpublic void setDateTimeFormat(String pattern) Description copied from interface:FormatSettingsManagerStores the formatting pattern to be used for date and time together.- Specified by:
- setDateTimeFormatin interface- FormatSettingsManager
- Parameters:
- pattern- a pattern compatible with- SimpleDateFormat
 
 - 
getEditorBlogPostDatepublic String getEditorBlogPostDate() Description copied from interface:FormatSettingsManagerReturns the date format for the editor blog post date- Specified by:
- getEditorBlogPostDatein interface- FormatSettingsManager
 
 - 
getEditorBlogPostTimepublic String getEditorBlogPostTime() Description copied from interface:FormatSettingsManagerReturns the time format for the editor blog post date- Specified by:
- getEditorBlogPostTimein interface- FormatSettingsManager
 
 - 
getLongNumberFormatpublic String getLongNumberFormat() Description copied from interface:FormatSettingsManagerReturns the formatting pattern used for integer numbers. Typically something like "###############".- Specified by:
- getLongNumberFormatin interface- FormatSettingsManager
 
 - 
setLongNumberFormatpublic void setLongNumberFormat(String pattern) Description copied from interface:FormatSettingsManagerStores the formatting pattern to be used for integer numbers.- Specified by:
- setLongNumberFormatin interface- FormatSettingsManager
- Parameters:
- pattern- a pattern compatible with- DecimalFormat
 
 - 
getDecimalNumberFormatpublic String getDecimalNumberFormat() Description copied from interface:FormatSettingsManagerReturns the formatting pattern used for decimal numbers. Typically something like "###############.##########".- Specified by:
- getDecimalNumberFormatin interface- FormatSettingsManager
 
 - 
setDecimalNumberFormatpublic void setDecimalNumberFormat(String pattern) Description copied from interface:FormatSettingsManagerStores the formatting pattern to be used for decimal numbers.- Specified by:
- setDecimalNumberFormatin interface- FormatSettingsManager
- Parameters:
- pattern- a pattern compatible with- DecimalFormat
 
 - 
setBandanaManagerpublic void setBandanaManager(com.atlassian.bandana.BandanaManager bandanaManager) 
 
- 
 
-