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
 java.lang.String getDateFormat()
          Returns the formatting pattern used for dates.
 java.lang.String getDateTimeFormat()
          Returns the formatting pattern used for date and time together.
 java.lang.String getDecimalNumberFormat()
          Returns the formatting pattern used for decimal numbers.
 java.lang.String getEditorBlogPostDate()
          Returns the date time format for the editor blog post date
 java.lang.String getLongNumberFormat()
          Returns the formatting pattern used for integer numbers.
 java.lang.String getTimeFormat()
          Returns the formatting pattern used for times.
 void setDateFormat(java.lang.String pattern)
          Stores the formatting pattern to be used for dates.
 void setDateTimeFormat(java.lang.String pattern)
          Stores the formatting pattern to be used for date and time together.
 void setDecimalNumberFormat(java.lang.String pattern)
          Stores the formatting pattern to be used for decimal numbers.
 void setLongNumberFormat(java.lang.String pattern)
          Stores the formatting pattern to be used for integer numbers.
 void setTimeFormat(java.lang.String pattern)
          Stores the formatting pattern to be used for times.
 

Method Detail

getDateFormat

java.lang.String getDateFormat()
Returns the formatting pattern used for dates. Typically something like "d MMM, yyyy".


setDateFormat

void setDateFormat(java.lang.String pattern)
Stores the formatting pattern to be used for dates.

Parameters:
pattern - a pattern compatible with SimpleDateFormat

getTimeFormat

java.lang.String getTimeFormat()
Returns the formatting pattern used for times. Typically something like "h:mm a".


setTimeFormat

void setTimeFormat(java.lang.String pattern)
Stores the formatting pattern to be used for times.

Parameters:
pattern - a pattern compatible with SimpleDateFormat

getDateTimeFormat

java.lang.String getDateTimeFormat()
Returns the formatting pattern used for date and time together. Typically something like "d MMM, yyyy HH:mm".


setDateTimeFormat

void setDateTimeFormat(java.lang.String pattern)
Stores the formatting pattern to be used for date and time together.

Parameters:
pattern - a pattern compatible with SimpleDateFormat

getLongNumberFormat

java.lang.String getLongNumberFormat()
Returns the formatting pattern used for integer numbers. Typically something like "###############".


setLongNumberFormat

void setLongNumberFormat(java.lang.String pattern)
Stores the formatting pattern to be used for integer numbers.

Parameters:
pattern - a pattern compatible with DecimalFormat

getDecimalNumberFormat

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


getEditorBlogPostDate

java.lang.String getEditorBlogPostDate()
Returns the date time format for the editor blog post date


setDecimalNumberFormat

void setDecimalNumberFormat(java.lang.String pattern)
Stores the formatting pattern to be used for decimal numbers.

Parameters:
pattern - a pattern compatible with DecimalFormat


Copyright © 2003-2014 Atlassian. All Rights Reserved.