org.apache.lenya.workflow.impl
Class VersionImpl

java.lang.Object
  extended by org.apache.lenya.workflow.impl.VersionImpl
All Implemented Interfaces:
org.apache.lenya.workflow.Version

public class VersionImpl
extends java.lang.Object
implements org.apache.lenya.workflow.Version

A version of the workflow history.


Constructor Summary
VersionImpl(java.lang.String _event, java.lang.String _state)
          Ctor.
 
Method Summary
 java.util.Date getDate()
          Returns the date.
 java.lang.String getEvent()
           
 java.lang.String getIPAddress()
          Returns the ip address.
 java.lang.String getState()
           
 java.lang.String getUserId()
          Returns the user ID.
 boolean getValue(java.lang.String variableName)
           
 void setDate(java.util.Date _date)
          Sets the date.
 void setIPAddress(java.lang.String _ipaddress)
          Sets the ip address.
 void setUserId(java.lang.String _userId)
          Sets the user ID.
 void setValue(java.lang.String variableName, boolean value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VersionImpl

public VersionImpl(java.lang.String _event,
                   java.lang.String _state)
Ctor.

Parameters:
_event - The event that caused the version change.
_state - The destination state.
Method Detail

getEvent

public java.lang.String getEvent()
Specified by:
getEvent in interface org.apache.lenya.workflow.Version
See Also:
Version.getEvent()

getState

public java.lang.String getState()
Specified by:
getState in interface org.apache.lenya.workflow.Version
See Also:
Version.getState()

getDate

public java.util.Date getDate()
Returns the date.

Specified by:
getDate in interface org.apache.lenya.workflow.Version
Returns:
A string.

setDate

public void setDate(java.util.Date _date)
Sets the date.

Specified by:
setDate in interface org.apache.lenya.workflow.Version
Parameters:
_date - A date.

getUserId

public java.lang.String getUserId()
Returns the user ID.

Specified by:
getUserId in interface org.apache.lenya.workflow.Version
Returns:
A string.

setUserId

public void setUserId(java.lang.String _userId)
Sets the user ID.

Specified by:
setUserId in interface org.apache.lenya.workflow.Version
Parameters:
_userId - A user ID.

getIPAddress

public java.lang.String getIPAddress()
Returns the ip address.

Specified by:
getIPAddress in interface org.apache.lenya.workflow.Version
Returns:
A string.

setIPAddress

public void setIPAddress(java.lang.String _ipaddress)
Sets the ip address.

Specified by:
setIPAddress in interface org.apache.lenya.workflow.Version
Parameters:
_ipaddress - A ip address.

getValue

public boolean getValue(java.lang.String variableName)
Specified by:
getValue in interface org.apache.lenya.workflow.Version
See Also:
Version.getValue(java.lang.String)

setValue

public void setValue(java.lang.String variableName,
                     boolean value)
Specified by:
setValue in interface org.apache.lenya.workflow.Version
See Also:
Version.setValue(java.lang.String, boolean)


Copyright $ Apache Software Foundation. All Rights Reserved.