org.obe.spi.event
Class PackageEvent

java.lang.Object
  extended byjava.util.EventObject
      extended byorg.obe.spi.event.ApplicationEvent
          extended byorg.obe.spi.event.WorkflowEvent
              extended byorg.obe.spi.event.PackageEvent
All Implemented Interfaces:
java.io.Serializable

public final class PackageEvent
extends WorkflowEvent

Delivers package event notifications.

Author:
Adrian Price
See Also:
Serialized Form

Field Summary
static int CREATED
          The package was created.
static int DELETED
          The package was removed.
static int UPDATED
          The package was updated.
 
Fields inherited from class org.obe.spi.event.WorkflowEvent
_broker, _id, _timestamp
 
Fields inherited from class org.obe.spi.event.ApplicationEvent
ACTION, CONTENT_TYPE, EMPTY_KEYS, EMPTY_MAP, EXCEPTION_EVENT, SCHEMA, TIMEOUT_EVENT
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
PackageEvent(XPDLPackage src, int id, WorkflowEventBroker broker)
          Constructs a new package event.
 
Method Summary
 XPDLPackage getPackage()
          Returns the source package.
 WMAEventCode getWMAEventCode()
          Returns the WfMC Interface 5 audit event code (if defined).
 java.lang.String toString()
           
 
Methods inherited from class org.obe.spi.event.WorkflowEvent
getId, getTimestamp
 
Methods inherited from class org.obe.spi.event.ApplicationEvent
getAction, getApplication, getContentType, getEventType, getExpiry, getKeys, getProperties, getProperty, getSchema, setApplication, setEventType, setExpiry, setKeys
 
Methods inherited from class java.util.EventObject
getSource
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

CREATED

public static final int CREATED
The package was created.

See Also:
Constant Field Values

DELETED

public static final int DELETED
The package was removed.

See Also:
Constant Field Values

UPDATED

public static final int UPDATED
The package was updated.

See Also:
Constant Field Values
Constructor Detail

PackageEvent

public PackageEvent(XPDLPackage src,
                    int id,
                    WorkflowEventBroker broker)
Constructs a new package event.

Parameters:
src -
id -
broker -
Method Detail

getPackage

public XPDLPackage getPackage()
Returns the source package.

Returns:
The package that fired the event.

getWMAEventCode

public WMAEventCode getWMAEventCode()
Description copied from class: WorkflowEvent
Returns the WfMC Interface 5 audit event code (if defined).

Specified by:
getWMAEventCode in class WorkflowEvent
Returns:
Audit event code.

toString

public java.lang.String toString()
Overrides:
toString in class ApplicationEvent


SourceForge.net Logo OBE-1.0 Copyright (c) 2002-2006 Adrian Price. All Rights Reserved.