Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle WebCenter
11g Release 1 (11.1.1.3.0)
E15995-02


oracle.webcenter.generalsettings.model
Class GeneralSettingsBean

java.lang.Object
  extended by oracle.webcenter.generalsettings.model.GeneralSettingsBean

All Implemented Interfaces:
java.io.Serializable

public class GeneralSettingsBean
extends java.lang.Object
implements java.io.Serializable

A Managed Bean for accessing shared preference values from Faces pages.

See Also:
Serialized Form

Constructor Summary
GeneralSettingsBean()
           

 

Method Summary
 java.lang.String getFormattedCurrentDate()
          Get the formatted current date string for the current user.
 java.lang.String getFormattedCurrentDateTime()
          Get the formatted current date and time string for the current user.
 java.lang.String getFormattedCurrentTime()
          Get the formatted current time string for the current user.
 java.lang.String getPreferredAccessibilityMode()
          Get the preferred accessibility mode.
 java.lang.String getPreferredDatePattern()
          Get the preferred Date pattern.
 java.lang.String getPreferredDateStyle()
          Get the preferred time style.
 java.lang.String getPreferredDateTimePattern()
          Get the preferred DateTime pattern.
 java.lang.String getPreferredSkinName()
          Get the preferred skin name.
 java.lang.String getPreferredTimePattern()
          Get the preferred Time pattern.
 java.lang.String getPreferredTimeStyle()
          Get the preferred time style.
 java.util.TimeZone getUserTimeZone()
          Get the time zone for the current user.

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Constructor Detail

GeneralSettingsBean

public GeneralSettingsBean()

Method Detail

getFormattedCurrentDate

public java.lang.String getFormattedCurrentDate()
Get the formatted current date string for the current user.
Returns:
formatted current date string for the current user

getFormattedCurrentDateTime

public java.lang.String getFormattedCurrentDateTime()
Get the formatted current date and time string for the current user.
Returns:
formatted current date and time string for the current user

getFormattedCurrentTime

public java.lang.String getFormattedCurrentTime()
Get the formatted current time string for the current user.
Returns:
formatted current time string for the current user

getPreferredDateStyle

public java.lang.String getPreferredDateStyle()
Get the preferred time style. This method will never return null. See DateFormatSetting.getDateStyle() for the details of the date style returned if the user preference does not exist. The value returned can be used directly in the dateStyle attribute of af:convertDateTime or f:convertDateTime tags. This value, along with an appropriate value for the locale attribute, will format/parse your date output/input in accordance with the current Locale.
Returns:
short, medium, long or full

getPreferredDatePattern

public java.lang.String getPreferredDatePattern()
Get the preferred Date pattern. See DateFormatSetting.getDatePattern() The value returned can be used directly in the pattern attribute of af:convertDateTime tags with the type="date".
Returns:
a valid pattern if exist, else null

getPreferredTimeStyle

public java.lang.String getPreferredTimeStyle()
Get the preferred time style. This method will never return null. See DateFormatSetting.getTimeStyle() for the details of the time style returned if the user preference does not exist. The value returned can be used directly in the timeStyle attribute of af:convertDateTime or f:convertDateTime tags. This value, along with an appropriate value for the locale attribute, will format/parse your date output/input in accordance with the current Locale.
Returns:
short, medium, long or full

getPreferredTimePattern

public java.lang.String getPreferredTimePattern()
Get the preferred Time pattern. See DateFormatSetting.getTimePattern() The value returned can be used directly in the pattern attribute of af:convertDateTime tags with the type="time".
Returns:
a valid pattern if exist, else null

getPreferredDateTimePattern

public java.lang.String getPreferredDateTimePattern()
Get the preferred DateTime pattern. See DateFormatSetting.getDateTimePattern() The value returned can be used directly in the pattern attribute of af:convertDateTime tags with the type="both".
Returns:
a valid pattern if exist, else null

getUserTimeZone

public java.util.TimeZone getUserTimeZone()
Get the time zone for the current user.
Returns:
time zone for the current user

getPreferredAccessibilityMode

public java.lang.String getPreferredAccessibilityMode()
Get the preferred accessibility mode. This may be used in trinidad-config.xml in order to set the <accessibility-mode> element using #{generalSettings.preferredAccessibilityMode}
Returns:
the preferred accessibility mode if one is specified, otherwise the default value

getPreferredSkinName

public java.lang.String getPreferredSkinName()
Get the preferred skin name. This may be used in trinidad-config.xml in order to set the <skin-family> element using #{generalSettings.preferredSkinName}
Returns:
the preferred skin name if one is specified, otherwise the default value

Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle WebCenter
11g Release 1 (11.1.1.3.0)
E15995-02


Copyright © 2009, 2010, Oracle. All rights reserved.