Oracle Fusion Middleware extensions for Applications Core API Reference
11g Release 1 (11.1.1.5)

E22562-01

oracle.apps.fnd.applcore.common.biPrefs
Class PreferencesExtractorImpl

java.lang.Object
  extended by oracle.apps.fnd.applcore.common.biPrefs.PreferencesExtractorImpl
All Implemented Interfaces:
PreferencesExtractor

public class PreferencesExtractorImpl
extends java.lang.Object
implements PreferencesExtractor


Constructor Summary
PreferencesExtractorImpl()
           
 
Method Summary
 boolean checkPrefsUpdateRequired(javax.servlet.http.Cookie[] cookies, java.lang.String cacheKey)
          This method checks the current set of cookies to see if any pillar update has occurred for preferences since the last time preferences were retrieved.
 UserPreferences getPreferences(ConfigurationProvider cfgProvider, javax.servlet.http.Cookie[] cookies, java.lang.String userName)
          This method will retrieve the user preferences properties by invoking the Applsession webservice.
 UserPreferences getPreferencesFromLdap(java.lang.String userName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PreferencesExtractorImpl

public PreferencesExtractorImpl()
Method Detail

checkPrefsUpdateRequired

public boolean checkPrefsUpdateRequired(javax.servlet.http.Cookie[] cookies,
                                        java.lang.String cacheKey)
Description copied from interface: PreferencesExtractor
This method checks the current set of cookies to see if any pillar update has occurred for preferences since the last time preferences were retrieved. If cacheKey is null,this method always returns true. Or if it indicates that information was retrievd from LDAP last time it will return false.

Specified by:
checkPrefsUpdateRequired in interface PreferencesExtractor
Parameters:
cookies - Collection of cookies in the current request
cacheKey - Cache key returned by previous call to getPreferences or null
Returns:
True if an update to preferences is required, false otherwise.

getPreferences

public UserPreferences getPreferences(ConfigurationProvider cfgProvider,
                                      javax.servlet.http.Cookie[] cookies,
                                      java.lang.String userName)
Description copied from interface: PreferencesExtractor
This method will retrieve the user preferences properties by invoking the Applsession webservice. In case theres is no Cookie info or the session webservice is not available the required information will be retrieved from the LDAP complete set of session properties and returns them

Specified by:
getPreferences in interface PreferencesExtractor
Parameters:
cfgProvider - Abstract interface which provides configuration parameters
cookies - Collection of cookies in the current request
userName - this parameter is needed in case LDAP needs to be queried
Returns:

getPreferencesFromLdap

public UserPreferences getPreferencesFromLdap(java.lang.String userName)
Specified by:
getPreferencesFromLdap in interface PreferencesExtractor
Returns:

Oracle Fusion Middleware extensions for Applications Core API Reference
11g Release 1 (11.1.1.5)

E22562-01

Copyright © 2011 Oracle. All Rights Reserved.