Package com.atlassian.confluence.core
Interface FormatSettingsManager
-
- All Known Implementing Classes:
CachingFormatSettingsManager,DefaultFormatSettingsManager,TestingFormatSettingsManager
@Transactional public interface FormatSettingsManagerPersistent storage and retrieval of format settings. Implementations should return a default value if no configuration currently exists.
-
-
Method Summary
All Methods Instance Methods Abstract 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 time format for the editor blog post dateStringgetLongNumberFormat()Returns the formatting pattern used for integer numbers.StringgetTimeFormat()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 Detail
-
getDateFormat
@Transactional(readOnly=true) String getDateFormat()
Returns the formatting pattern used for dates. Typically something like "d MMM, yyyy".
-
setDateFormat
void setDateFormat(String pattern)
Stores the formatting pattern to be used for dates.- Parameters:
pattern- a pattern compatible withSimpleDateFormat
-
getTimeFormat
@Transactional(readOnly=true) String getTimeFormat()
Returns the formatting pattern used for times. Typically something like "h:mm a".
-
setTimeFormat
void setTimeFormat(String pattern)
Stores the formatting pattern to be used for times.- Parameters:
pattern- a pattern compatible withSimpleDateFormat
-
getDateTimeFormat
@Transactional(readOnly=true) String getDateTimeFormat()
Returns the formatting pattern used for date and time together. Typically something like "d MMM, yyyy HH:mm".
-
setDateTimeFormat
void setDateTimeFormat(String pattern)
Stores the formatting pattern to be used for date and time together.- Parameters:
pattern- a pattern compatible withSimpleDateFormat
-
getLongNumberFormat
@Transactional(readOnly=true) String getLongNumberFormat()
Returns the formatting pattern used for integer numbers. Typically something like "###############".
-
setLongNumberFormat
void setLongNumberFormat(String pattern)
Stores the formatting pattern to be used for integer numbers.- Parameters:
pattern- a pattern compatible withDecimalFormat
-
getDecimalNumberFormat
@Transactional(readOnly=true) String getDecimalNumberFormat()
Returns the formatting pattern used for decimal numbers. Typically something like "###############.##########".
-
getEditorBlogPostDate
@Transactional(readOnly=true) String getEditorBlogPostDate()
Returns the date time format for the editor blog post date
-
setDecimalNumberFormat
void setDecimalNumberFormat(String pattern)
Stores the formatting pattern to be used for decimal numbers.- Parameters:
pattern- a pattern compatible withDecimalFormat
-
-