wt.fc
Class IdentityServiceEvent

java.lang.Object
  extended bywt.events.KeyedEvent
      extended bywt.fc.IdentityServiceEvent
All Implemented Interfaces:
Serializable

public class IdentityServiceEvent
extends KeyedEvent
implements Serializable

The IdentityServiceEvent encapsulates identity change events. These events are posted so that other classes can object to the change or synchronize with the identity change.

Supported API: true

Extendable: false

See Also:
Serialized Form

Field Summary
private static String CLASSNAME
           
private  IdentificationObject identity
           
static String POST_CHANGE_IDENTITY
          

Supported API: false
static String PRE_CHANGE_IDENTITY
          

Supported API: false
private static String RESOURCE
           
private  IdentityService service
           
 
Fields inherited from class wt.events.KeyedEvent
 
Constructor Summary
IdentityServiceEvent(IdentityService service, String event_type, Identified target, IdentificationObject identity)
          Event constructor.
IdentityServiceEvent(String event_type, WTKeyedMap target)
          Multi Object Event constructor.
 
Method Summary
static String generateEventKey(String event_type)
          Helper function used to generate the event key from the event type.
 IdentificationObject getIdentity()
          Gets the value of the attribute: identity; Identification object that encapsulates the identity change.
 IdentityService getService()
          Gets the value of the attribute: service.
 void setIdentity(IdentificationObject a_Identity)
          Sets the value of the attribute: identity; Identification object that encapsulates the identity change.
 void setService(IdentityService a_Service)
          Sets the value of the attribute: service.
 KeyedEvent toMultiObjectEvent()
          

Supported API: false
 KeyedEvent[] toSingleObjectEvents()
          

Supported API: false
 
Methods inherited from class wt.events.KeyedEvent
generateEventKey, generateEventKey, getConceptualClassname, getEventKey, getEventTarget, getEventType, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

RESOURCE

private static final String RESOURCE
See Also:
Constant Field Values

CLASSNAME

private static final String CLASSNAME

service

private IdentityService service

identity

private IdentificationObject identity

PRE_CHANGE_IDENTITY

public static final String PRE_CHANGE_IDENTITY


Supported API: false

See Also:
Constant Field Values

POST_CHANGE_IDENTITY

public static final String POST_CHANGE_IDENTITY


Supported API: false

See Also:
Constant Field Values
Constructor Detail

IdentityServiceEvent

public IdentityServiceEvent(IdentityService service,
                            String event_type,
                            Identified target,
                            IdentificationObject identity)
Event constructor. Takes three objects as arguments: the service, the type of the event and the IdentificationObject.

Supported API: false

Parameters:
service -
event_type -
target -
identity -

IdentityServiceEvent

public IdentityServiceEvent(String event_type,
                            WTKeyedMap target)
Multi Object Event constructor. Takes target as WTKeyedMap with the Identified object as map key and identificationobject as map value.

Supported API: false

Parameters:
event_type -
target -
Method Detail

getService

public IdentityService getService()
Gets the value of the attribute: service.

Supported API: false

Returns:
IdentityService

setService

public void setService(IdentityService a_Service)
                throws WTPropertyVetoException
Sets the value of the attribute: service.

Supported API: false

Parameters:
a_Service -
Throws:
WTPropertyVetoException

getIdentity

public IdentificationObject getIdentity()
Gets the value of the attribute: identity; Identification object that encapsulates the identity change.

Supported API: false

Returns:
IdentificationObject

setIdentity

public void setIdentity(IdentificationObject a_Identity)
                 throws WTPropertyVetoException
Sets the value of the attribute: identity; Identification object that encapsulates the identity change.

Supported API: false

Parameters:
a_Identity -
Throws:
WTPropertyVetoException

generateEventKey

public static String generateEventKey(String event_type)
Helper function used to generate the event key from the event type.

Supported API: false

Parameters:
event_type -
Returns:
String

toSingleObjectEvents

public KeyedEvent[] toSingleObjectEvents()
                                  throws WTException


Supported API: false

Overrides:
toSingleObjectEvents in class KeyedEvent
Returns:
KeyedEvent[]
Throws:
WTException

toMultiObjectEvent

public KeyedEvent toMultiObjectEvent()


Supported API: false

Overrides:
toMultiObjectEvent in class KeyedEvent
Returns:
KeyedEvent