ca.bc.gov.webade.config
Class ApplicationConfig

java.lang.Object
  extended byca.bc.gov.webade.config.ApplicationConfig
All Implemented Interfaces:
java.io.Serializable

public final class ApplicationConfig
extends java.lang.Object
implements java.io.Serializable

Author:
jross
See Also:
Serialized Form

Constructor Summary
ApplicationConfig(Preferences preferences)
          Creates a new instance of the ApplicationConfig class with the given preferences.
ApplicationConfig(WebADEPreferences preferences)
          Creates a new instance of the ApplicationConfig class with the given preferences.
 
Method Summary
 java.lang.String getAnonymousUser()
          Deprecated.  
 Preferences getApplicationPreferences()
          Deprecated.  
 java.util.Set getExtensions()
          Returns the set of extensions to load for this application.
 long getGroupMaxCacheTime()
           
 WebADEPreferences getInternalWebADEPreferences()
           
 ManagementSettings getManagementSettings()
           
 UserCredentials getSystemUserCredentials()
          Deprecated. No longer needed, set in the CAP web services provider directly.
 long getUserMaxCacheTime()
           
 java.util.ArrayList getUserProviderPreferences()
          Deprecated. Replaced with
 java.util.List getUserProviderWebADEPreferenceSets()
          Returns the set of user-provider configuration preferences.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ApplicationConfig

public ApplicationConfig(Preferences preferences)
                  throws WebADEException
Creates a new instance of the ApplicationConfig class with the given preferences.

Parameters:
preferences - The set of preferences related to the target application.
Throws:
WebADEException - Thrown when the WebADE configuration is incorrect.

ApplicationConfig

public ApplicationConfig(WebADEPreferences preferences)
                  throws WebADEException
Creates a new instance of the ApplicationConfig class with the given preferences.

Parameters:
preferences - The set of preferences related to the target application.
Throws:
WebADEException - Thrown when the WebADE configuration is incorrect.
Method Detail

getSystemUserCredentials

public UserCredentials getSystemUserCredentials()
Deprecated. No longer needed, set in the CAP web services provider directly.

Returns:
Returns The system user used for threads that are not tied to a user request.

getAnonymousUser

public java.lang.String getAnonymousUser()
Deprecated.  

No longer a valid method. Replaced by public role grants.

Returns:
Returns the anonymousUser.

getExtensions

public java.util.Set getExtensions()
Returns the set of extensions to load for this application.

Returns:
A Set of String objects.

getUserMaxCacheTime

public long getUserMaxCacheTime()
Returns:
Returns the userMaxCacheTime.

getGroupMaxCacheTime

public long getGroupMaxCacheTime()
Returns:
Returns the groupMaxCacheTime.

getManagementSettings

public ManagementSettings getManagementSettings()
Returns:
Returns the managementSettings.

getApplicationPreferences

public Preferences getApplicationPreferences()
Deprecated.  

Returns:
Returns the internalWebADEPreferences.

getInternalWebADEPreferences

public WebADEPreferences getInternalWebADEPreferences()
Returns:
Returns the internal WebADEPreferences.

getUserProviderPreferences

public java.util.ArrayList getUserProviderPreferences()
Deprecated. Replaced with

Returns the set of user-provider configuration preferences.

Returns:
An array-list of PreferenceSet objects for each user-provider.

getUserProviderWebADEPreferenceSets

public java.util.List getUserProviderWebADEPreferenceSets()
Returns the set of user-provider configuration preferences.

Returns:
An array-list of WebADEPreferenceSet objects for each user-provider.