org.apache.lenya.cms.workflow
Class LenyaVersion

java.lang.Object
  extended by org.apache.lenya.cms.workflow.LenyaVersion
All Implemented Interfaces:
Version

public class LenyaVersion
extends java.lang.Object
implements Version

A version of the workflow history.


Constructor Summary
LenyaVersion(java.lang.String _event, java.lang.String _state)
          Ctor.
 
Method Summary
 java.util.Date getDate()
          Returns the date.
 java.lang.String getEvent()
          Returns the event.
 java.lang.String getIPAddress()
          Returns the ip address.
 java.lang.String getState()
          Returns the state.
 java.lang.String getUserId()
          Returns the user ID.
 boolean getValue(java.lang.String variableName)
          Returns the value of a variable.
 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)
          Sets a variable value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LenyaVersion

public LenyaVersion(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()
Description copied from interface: Version
Returns the event.

Specified by:
getEvent in interface Version
Returns:
An event.
See Also:
Version.getEvent()

getState

public java.lang.String getState()
Description copied from interface: Version
Returns the state.

Specified by:
getState in interface Version
Returns:
A state.
See Also:
Version.getState()

getDate

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

Specified by:
getDate in interface Version
Returns:
A string.

setDate

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

Specified by:
setDate in interface Version
Parameters:
_date - A date.

getUserId

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

Specified by:
getUserId in interface Version
Returns:
A string.

setUserId

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

Specified by:
setUserId in interface Version
Parameters:
_userId - A user ID.

getIPAddress

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

Specified by:
getIPAddress in interface Version
Returns:
A string.

setIPAddress

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

Specified by:
setIPAddress in interface Version
Parameters:
_ipaddress - A ip address.

getValue

public boolean getValue(java.lang.String variableName)
Description copied from interface: Version
Returns the value of a variable.

Specified by:
getValue in interface Version
Parameters:
variableName - The variable name.
Returns:
A boolean value.
See Also:
Version.getValue(java.lang.String)

setValue

public void setValue(java.lang.String variableName,
                     boolean value)
Description copied from interface: Version
Sets a variable value.

Specified by:
setValue in interface Version
Parameters:
variableName - The variable name.
value - The value.
See Also:
Version.setValue(java.lang.String, boolean)


Copyright © 1999-2006 Apache Software Foundation. All Rights Reserved.