Package com.atlassian.confluence.core
Interface FormatSettingsManager
-
- All Known Implementing Classes:
CachingFormatSettingsManager
,DefaultFormatSettingsManager
,TestingFormatSettingsManager
@Transactional public interface FormatSettingsManager
Persistent 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 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 format for the editor blog post dateString
getEditorBlogPostTime()
Returns the 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
-
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 format for the editor blog post date
-
getEditorBlogPostTime
@Transactional(readOnly=true) String getEditorBlogPostTime()
Returns the 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
-
-