Class CachingFormatSettingsManager
- java.lang.Object
-
- com.atlassian.confluence.impl.settings.CachingFormatSettingsManager
-
- All Implemented Interfaces:
FormatSettingsManager
public class CachingFormatSettingsManager extends Object implements FormatSettingsManager
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CachingFormatSettingsManager
create(FormatSettingsManager delegate, com.atlassian.cache.CacheFactory cacheFactory)
String
getDateFormat()
Returns the formatting pattern used for dates.String
getDateTimeFormat()
Returns the formatting pattern used for date and time together.String
getDecimalNumberFormat()
Returns the formatting pattern used for decimal numbers.String
getEditorBlogPostDate()
Returns the date time format for the editor blog post dateString
getLongNumberFormat()
Returns the formatting pattern used for integer numbers.String
getTimeFormat()
Returns the formatting pattern used for times.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.
-
-
-
Method Detail
-
create
public static CachingFormatSettingsManager create(FormatSettingsManager delegate, com.atlassian.cache.CacheFactory cacheFactory)
-
getDateFormat
public String 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
public void setDateFormat(String pattern)
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
public String 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
public void setTimeFormat(String pattern)
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
public String 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
public void setDateTimeFormat(String pattern)
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
-
getLongNumberFormat
public String getLongNumberFormat()
Description copied from interface:FormatSettingsManager
Returns the formatting pattern used for integer numbers. Typically something like "###############".- Specified by:
getLongNumberFormat
in interfaceFormatSettingsManager
-
setLongNumberFormat
public void setLongNumberFormat(String pattern)
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
public String getDecimalNumberFormat()
Description copied from interface:FormatSettingsManager
Returns the formatting pattern used for decimal numbers. Typically something like "###############.##########".- Specified by:
getDecimalNumberFormat
in interfaceFormatSettingsManager
-
getEditorBlogPostDate
public String getEditorBlogPostDate()
Description copied from interface:FormatSettingsManager
Returns the date time format for the editor blog post date- Specified by:
getEditorBlogPostDate
in interfaceFormatSettingsManager
-
setDecimalNumberFormat
public void setDecimalNumberFormat(String pattern)
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
-
-