wt.fc
Class IdentityHelper

java.lang.Object
  extended bywt.fc.IdentityHelper
All Implemented Interfaces:
Serializable

public class IdentityHelper
extends Object
implements Serializable

The IdentityHelper provides access to the identity service through its public 'service' member.

Supported API: true

Extendable: false

See Also:
Serialized Form

Field Summary
private static String CLASSNAME
           
private static String RESOURCE
           
protected static Object SECRET_HANDSHAKE
          This property is used by getNewContainerRef to store a WTContainedIdentified's new parent container in the currently active MethodContext.
static IdentityService service
          

Supported API: false
 
Constructor Summary
IdentityHelper()
           
 
Method Summary
static boolean isChangeable(Object obj)
          Used in conjunction with system generation's "Changeable ViaOtherMeans" property to restrict changes to the identity of persisted objects.
static void setIdentity(Identified obj, IdentificationObject identity)
          Sets the identity of the Identified object passed as argument to the one held by the IdentificationObject, also passed as argument.
 
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

SECRET_HANDSHAKE

protected static final Object SECRET_HANDSHAKE
This property is used by getNewContainerRef to store a WTContainedIdentified's new parent container in the currently active MethodContext.

Supported API: false


service

public static final IdentityService service


Supported API: false

Constructor Detail

IdentityHelper

public IdentityHelper()
Method Detail

setIdentity

public static void setIdentity(Identified obj,
                               IdentificationObject identity)
                        throws WTException
Sets the identity of the Identified object passed as argument to the one held by the IdentificationObject, also passed as argument. Throws WTexception if Identified object is persistent.

Supported API: false

Parameters:
obj -
identity -
Throws:
WTException

isChangeable

public static final boolean isChangeable(Object obj)
Used in conjunction with system generation's "Changeable ViaOtherMeans" property to restrict changes to the identity of persisted objects.

Supported API: false

Parameters:
obj -
Returns:
boolean