com.arsdigita.cms.lifecycle
Class LifecycleEvent

java.lang.Object
  extended bycom.arsdigita.cms.lifecycle.LifecycleEvent

public class LifecycleEvent
extends Object

This event class stores the information necessary for the firing of events in the LifecycleListener class.

Version:
$Revision: #8 $ $DateTime: 2004/04/07 16:07:11 $
Author:
Jack Chung (flattop@arsdigita.com)

Field Summary
static int LIFECYCLE
           
static int PHASE
           
static String versionId
           
 
Constructor Summary
protected LifecycleEvent(int eventType, Date start, Date end, com.arsdigita.persistence.OID oid)
          Construct a lifecycle event
protected LifecycleEvent(int eventType, Date start, Date end, String objectType, BigDecimal id)
          Construct a lifecycle event
 
Method Summary
 Date getEndDate()
           
 int getEventType()
           
 com.arsdigita.persistence.OID getOID()
           
 Date getStartDate()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

versionId

public static final String versionId
See Also:
Constant Field Values

PHASE

public static final int PHASE
See Also:
Constant Field Values

LIFECYCLE

public static final int LIFECYCLE
See Also:
Constant Field Values
Constructor Detail

LifecycleEvent

protected LifecycleEvent(int eventType,
                         Date start,
                         Date end,
                         String objectType,
                         BigDecimal id)
Construct a lifecycle event

Parameters:
eventType - specify either PHASE or LIFECYCLE
start - the start date time of this event
end - the end date time of this event
objectType - the object-type of the object receiving of the action
id - the ID of the object receiving of the action

LifecycleEvent

protected LifecycleEvent(int eventType,
                         Date start,
                         Date end,
                         com.arsdigita.persistence.OID oid)
Construct a lifecycle event

Parameters:
eventType - specify either PHASE or LIFECYCLE
start - the start date time of this event
end - the end date time of this event
oid - the OID of the object of receiving of the action
Method Detail

getEventType

public int getEventType()

getStartDate

public Date getStartDate()

getEndDate

public Date getEndDate()

getOID

public com.arsdigita.persistence.OID getOID()

toString

public String toString()


Copyright (c) 2004 Red Hat, Inc. Corporation. All Rights Reserved. Generated at July 21 2004:2352 UTC