Oracle Fusion Middleware Java API Reference for Oracle ADF Controller
11g Release 2 (11.1.2.0.0)

E17480-01

oracle.adf.controller.config
Class ControllerConfig

java.lang.Object
  extended by oracle.adf.controller.config.ControllerConfig

public class ControllerConfig
extends java.lang.Object

Provides access to the initialization parameters for ADF Controller.
The parameters are specified inside adf-config.xml.
For example

 <adf-config xmlns:xsi="www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation=" http://xmlns.oracle.com/adf/config
    ../../../../../bc4jrt/src/oracle/adf/share/config/schema/config.xsd"
    xmlns="http://xmlns.oracle.com/adf/config"
    xmlns:mdsC="http://xmlns.oracle.com/adf/mds/config"
    xmlns:adfc="http://xmlns.oracle.com/adf/controller/config"
    xmlns:sec="http://xmlns.oracle.com/adf/security/config">
    <adfc:adf-controller-config>
      <adfc:savepoint-manager>DATABASE</adfc:savepoint-manager>
      <adfc:savepoint-datasource>jdbc/Connection1DS</adfc:savepoint-datasource>
      <adfc:enable-implicit-savepoints>true</adfc:enable-implicit-savepoints>
      <adfc:max-snapshot-history>50</adfc:max-snapshot-history>
      <adfc:lifecycle>
        <adfc:phase-listener>
          <adfc:listener-id>Dave</adfc:listener-id>
          <adfc:class>test.myPhaseListener</adfc:class>
          <adfc:after-id-set>
            <adfc:listener-id>Adam</adfc:listener-id>
            <adfc:listener-id>Blake</adfc:listener-id>
          </adfc:after-id-set>
          <adfc:before-id-set>
            <adfc:listener-id>Ted</adfc:listener-id>
            <adfc:listener-id>Chris</adfc:listener-id>
            <adfc:listener-id>Pete</adfc:listener-id>
          </adfc:before-id-set>
        </adfc:phase-listener>
      </adfc:lifecycle>
    </adfc:adf-controller-config>
 </adf-config>
 
For a complete list of parameters, see ControllerProperty


Field Summary
static java.lang.String CONTROLLER_CONFIG_ELEMENT
          The element name for controller configuration.
static java.lang.String CONTROLLER_CONFIG_NAMESPACE
          The namespace used by adf controller config.
static java.lang.String SECURITY_MODE_ALL_ACTIVITY_TYPES
          One of two possible values for the 'activity-security-mode' property.
static java.lang.String SECURITY_MODE_VIEW_ACTIVITY_ONLY
          One of two possible values for the 'activity-security-mode' property.
 
Method Summary
static java.util.Map getCurrent()
          Gets the current ControllerConfig from the current ADFContext.
static java.lang.String getCurrentProperty(ControllerProperty property)
           
static java.lang.Object getDefaultedProperty(ControllerProperty property, java.lang.String value)
           
static java.util.Map<java.lang.String,PhaseListenerDefinition> getPhaseListeners()
          Deprecated. 
static java.lang.Object getProperty(ControllerProperty property)
          Gets the current value of the specified paramter.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CONTROLLER_CONFIG_NAMESPACE

public static final java.lang.String CONTROLLER_CONFIG_NAMESPACE
The namespace used by adf controller config.

See Also:
Constant Field Values

CONTROLLER_CONFIG_ELEMENT

public static final java.lang.String CONTROLLER_CONFIG_ELEMENT
The element name for controller configuration.

See Also:
Constant Field Values

SECURITY_MODE_ALL_ACTIVITY_TYPES

public static final java.lang.String SECURITY_MODE_ALL_ACTIVITY_TYPES
One of two possible values for the 'activity-security-mode' property.
See ControllerProperty for more detail.
This value indicates that all activity types are potentially checked for permission before executing.

See Also:
Constant Field Values

SECURITY_MODE_VIEW_ACTIVITY_ONLY

public static final java.lang.String SECURITY_MODE_VIEW_ACTIVITY_ONLY
One of two possible values for the 'activity-security-mode' property.
See ControllerProperty for more detail.
This value indicates that only view activities will be checked for permission before executing.

See Also:
Constant Field Values
Method Detail

getCurrent

public static java.util.Map getCurrent()
Gets the current ControllerConfig from the current ADFContext.

Returns:
The map of controller properties.

getProperty

public static java.lang.Object getProperty(ControllerProperty property)
Gets the current value of the specified paramter. If no value is specified, a default value is returned. Values are cached according to their ChangePolicy.

Parameters:
property - the property
Returns:
the value

getDefaultedProperty

public static java.lang.Object getDefaultedProperty(ControllerProperty property,
                                                    java.lang.String value)

getPhaseListeners

@Deprecated
public static java.util.Map<java.lang.String,PhaseListenerDefinition> getPhaseListeners()
Deprecated. 


getCurrentProperty

public static java.lang.String getCurrentProperty(ControllerProperty property)
Parameters:
property - the latest value of the property as specified in adf-config.xml. This value can be different than the value originally specified if MBeans were used to modify the value.
Returns:

Oracle Fusion Middleware Java API Reference for Oracle ADF Controller
11g Release 2 (11.1.2.0.0)

E17480-01

Copyright © 1997, 2011, Oracle. All rights reserved.