Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle WebCenter Portal
11g Release 1 (11.1.1.6.0)
E15995-05


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 to access shared preference values from within ADF Faces pages. The Expression Language for this bean is #{generalSettings.[accessor]}.

See Also:
Serialized Form

Constructor Summary
GeneralSettingsBean()
           

 

Method Summary
 java.lang.String getFormattedCurrentDate()
          Gets the current date string in the format chosen by the current user.
 java.lang.String getFormattedCurrentDateTime()
          Gets the current date and time string in the format chosen by the current user.
 java.lang.String getFormattedCurrentTime()
          Gets the current time string in the format chosen by the current user.
 java.lang.String getPreferredAccessibilityMode()
          Gets the preferred accessibility mode.
 java.lang.String getPreferredDatePattern()
          Gets the preferred date pattern.
 java.lang.String getPreferredDateStyle()
          Gets the preferred date style.
 java.lang.String getPreferredDateTimePattern()
          Gets the preferred date and time pattern.
 java.lang.String getPreferredSkinName()
          Gets the preferred skin name.
 java.lang.String getPreferredTimePattern()
          Gets the preferred time pattern.
 java.lang.String getPreferredTimeStyle()
          Gets the preferred time style.
 java.util.TimeZone getUserTimeZone()
          Gets 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()
Gets the current date string in the format chosen by the current user.
EL: #{generalSettings.formattedCurrentDate}
Returns:
formatted current date string for the current user

getFormattedCurrentDateTime

public java.lang.String getFormattedCurrentDateTime()
Gets the current date and time string in the format chosen by the current user.
EL: #{generalSettings.formattedCurrentDateTime}
Returns:
formatted current date and time string for the current user

getFormattedCurrentTime

public java.lang.String getFormattedCurrentTime()
Gets the current time string in the format chosen by the current user.
EL: #{generalSettings.formattedCurrentTime}
Returns:
formatted current time string for the current user

getPreferredDateStyle

public java.lang.String getPreferredDateStyle()
Gets the preferred date style.
EL: #{generalSettings.preferredDateStyle} 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
See Also:
DateFormatSetting.getDateStyle()

getPreferredDatePattern

public java.lang.String getPreferredDatePattern()
Gets the preferred date pattern.
EL: #{generalSettings.preferredDatePattern} The value returned can be used directly in the pattern attribute of af:convertDateTime tags with the type="date". This will return null if date styles are used instead of date patterns.
Returns:
a valid pattern if exist, else null
See Also:
DateFormatSetting.getDatePattern()

getPreferredTimeStyle

public java.lang.String getPreferredTimeStyle()
Gets the preferred time style.
EL: #{generalSettings.preferredTimeStyle} 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
See Also:
DateFormatSetting.getTimeStyle()

getPreferredTimePattern

public java.lang.String getPreferredTimePattern()
Gets the preferred time pattern.
EL: #{generalSettings.preferredTimePattern} The value returned can be used directly in the pattern attribute of af:convertDateTime tags with the type="time". This will return null if time styles are used instead of time patterns.
Returns:
a valid pattern if exist, else null
See Also:
DateFormatSetting.getTimePattern()

getPreferredDateTimePattern

public java.lang.String getPreferredDateTimePattern()
Gets the preferred date and time pattern.
EL: #{generalSettings.preferredDateTimePattern} The value returned can be used directly in the pattern attribute of af:convertDateTime tags with the type="both". This will return null if time and date styles are used instead of time and date patterns.
Returns:
a valid pattern if exist, else null
See Also:
DateFormatSetting.getDateTimePattern()

getUserTimeZone

public java.util.TimeZone getUserTimeZone()
Gets the time zone for the current user.
EL: #{generalSettings.userTimeZone}
Returns:
time zone for the current user

getPreferredAccessibilityMode

public java.lang.String getPreferredAccessibilityMode()
Gets the preferred accessibility mode.
EL: #{generalSettings.preferrredAccessibilityMode} 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()
Gets the preferred skin name.
EL: #{generalSettings.preferredSkinName} 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 Portal
11g Release 1 (11.1.1.6.0)
E15995-05


Copyright © 2009, 2012, Oracle and/or its affiliates. All rights reserved.