com.atlassian.confluence.core
Interface FormatSettingsManager

All Known Implementing Classes:
DefaultFormatSettingsManager, TestingFormatSettingsManager

public interface FormatSettingsManager

Persistent storage and retrieval of format settings. Implementations should return a default value if no configuration currently exists.


Method Summary
 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 date
 String 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

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 with SimpleDateFormat

getTimeFormat

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 with SimpleDateFormat

getDateTimeFormat

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 with SimpleDateFormat

getLongNumberFormat

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 with DecimalFormat

getDecimalNumberFormat

String getDecimalNumberFormat()
Returns the formatting pattern used for decimal numbers. Typically something like "###############.##########".


getEditorBlogPostDate

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 with DecimalFormat


Copyright © 2003–2015 Atlassian. All rights reserved.