wt.epm
Class EPMContextHelper

java.lang.Object
  extended bywt.epm.EPMContextHelper
All Implemented Interfaces:
Externalizable, Serializable

public class EPMContextHelper
extends Object
implements Externalizable



Supported API: true

Extendable: false

See Also:
Serialized Form

Field Summary
private static EPMApplicationType application
           
private static String APPLICATION_KEY
           
private static EPMVetoableChangeListener[] changeListeners
           
private static String CLASSNAME
           
private static EPMConstructorListener[] constructorListeners
           
static long EXTERNALIZATION_VERSION_UID
           
static EPMContextManager manager
          

Supported API: true
protected static long OLD_FORMAT_VERSION_UID
           
private static String RESOURCE
           
(package private) static long serialVersionUID
           
(package private) static boolean SERVER
           
 
Constructor Summary
EPMContextHelper()
           
 
Method Summary
static void fireConstructor(EPMObject object)
          EPMObjects call this from within their constructors functions to allow client-side listeners to fill in default values for the object, and to perform checking.
static void fireVetoableChange(EPMObject object, String name, Object oldvalue, Object newvalue)
          EPMObjects call this from within set() functions to allow client-side listeners to veto changes to fields.
static EPMApplicationType getApplication()
          Gett the "current application" as set by setApplication().
private static EPMVetoableChangeListener[] getChangeListeners()
           
private static EPMConstructorListener[] getConstructorListeners()
           
 void readExternal(ObjectInput input)
          Reads the non-transient fields of this class from an external source.
private  boolean readOldVersion(ObjectInput input, long readSerialVersionUID, boolean passThrough, boolean superDone)
          Reads the non-transient fields of this class from an external source, which is not the current version.
protected  boolean readVersion(EPMContextHelper thisObject, ObjectInput input, long readSerialVersionUID, boolean passThrough, boolean superDone)
          Reads the non-transient fields of this class from an external source.
static void setApplication(EPMApplicationType a_Application)
          Set the "current application" for use by checking code.
 void writeExternal(ObjectOutput output)
          Writes the non-transient fields of this class to an external source.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RESOURCE

private static final String RESOURCE
See Also:
Constant Field Values

CLASSNAME

private static final String CLASSNAME

changeListeners

private static EPMVetoableChangeListener[] changeListeners

constructorListeners

private static EPMConstructorListener[] constructorListeners

application

private static EPMApplicationType application

manager

public static final EPMContextManager manager


Supported API: true


serialVersionUID

static final long serialVersionUID
See Also:
Constant Field Values

EXTERNALIZATION_VERSION_UID

public static final long EXTERNALIZATION_VERSION_UID
See Also:
Constant Field Values

OLD_FORMAT_VERSION_UID

protected static final long OLD_FORMAT_VERSION_UID
See Also:
Constant Field Values

SERVER

static final boolean SERVER

APPLICATION_KEY

private static final String APPLICATION_KEY
See Also:
Constant Field Values
Constructor Detail

EPMContextHelper

public EPMContextHelper()
Method Detail

writeExternal

public void writeExternal(ObjectOutput output)
                   throws IOException
Writes the non-transient fields of this class to an external source.

Supported API: false

Specified by:
writeExternal in interface Externalizable
Parameters:
output -
Throws:
IOException

readExternal

public void readExternal(ObjectInput input)
                  throws IOException,
                         ClassNotFoundException
Reads the non-transient fields of this class from an external source.

Supported API: false

Specified by:
readExternal in interface Externalizable
Parameters:
input -
Throws:
IOException
ClassNotFoundException

readVersion

protected boolean readVersion(EPMContextHelper thisObject,
                              ObjectInput input,
                              long readSerialVersionUID,
                              boolean passThrough,
                              boolean superDone)
                       throws IOException,
                              ClassNotFoundException
Reads the non-transient fields of this class from an external source.

Supported API: false

Parameters:
thisObject -
input -
readSerialVersionUID -
passThrough -
superDone -
Returns:
boolean
Throws:
IOException
ClassNotFoundException

readOldVersion

private boolean readOldVersion(ObjectInput input,
                               long readSerialVersionUID,
                               boolean passThrough,
                               boolean superDone)
                        throws IOException,
                               ClassNotFoundException
Reads the non-transient fields of this class from an external source, which is not the current version.

Parameters:
input -
readSerialVersionUID -
passThrough -
superDone -
Returns:
boolean
Throws:
IOException
ClassNotFoundException

fireConstructor

public static void fireConstructor(EPMObject object)
                            throws WTException
EPMObjects call this from within their constructors functions to allow client-side listeners to fill in default values for the object, and to perform checking.

Supported API: false

Parameters:
object -
Throws:
WTException

getApplication

public static EPMApplicationType getApplication()
                                         throws WTException
Gett the "current application" as set by setApplication(). This value is cached on the client-side, but is also sent (via the EPMContextManager) to the server-side SessionContext.

Supported API: true

Returns:
EPMApplicationType
Throws:
WTException

setApplication

public static void setApplication(EPMApplicationType a_Application)
                           throws WTPropertyVetoException
Set the "current application" for use by checking code. This value is cached on the client-side, but is also sent (via the EPMContextManager) to the server-side SessionContext.

This operation is intended for client-side use only.

Supported API: true

Parameters:
a_Application -
Throws:
WTPropertyVetoException

fireVetoableChange

public static void fireVetoableChange(EPMObject object,
                                      String name,
                                      Object oldvalue,
                                      Object newvalue)
                               throws WTPropertyVetoException
EPMObjects call this from within set() functions to allow client-side listeners to veto changes to fields.

Supported API: false

Parameters:
object -
name -
oldvalue -
newvalue -
Throws:
WTPropertyVetoException

getChangeListeners

private static EPMVetoableChangeListener[] getChangeListeners()
                                                       throws WTException
Throws:
WTException

getConstructorListeners

private static EPMConstructorListener[] getConstructorListeners()
                                                         throws WTException
Throws:
WTException