01: /*
02: * Licensed to the Apache Software Foundation (ASF) under one or more
03: * contributor license agreements. See the NOTICE file distributed with
04: * this work for additional information regarding copyright ownership.
05: * The ASF licenses this file to You under the Apache License, Version 2.0
06: * (the "License"); you may not use this file except in compliance with
07: * the License. You may obtain a copy of the License at
08: *
09: * http://www.apache.org/licenses/LICENSE-2.0
10: *
11: * Unless required by applicable law or agreed to in writing, software
12: * distributed under the License is distributed on an "AS IS" BASIS,
13: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14: * See the License for the specific language governing permissions and
15: * limitations under the License.
16: *
17: */
18: package org.apache.lenya.workflow;
19:
20: import java.util.Date;
21:
22: /**
23: * A version of the workflow history.
24: *
25: * @version $Id: Version.java 473861 2006-11-12 03:51:14Z gregor $
26: */
27: public interface Version {
28:
29: /**
30: * Returns the event.
31: * @return An event.
32: */
33: String getEvent();
34:
35: /**
36: * Returns the state.
37: * @return A state.
38: */
39: String getState();
40:
41: /**
42: * Returns the date.
43: * @return A string.
44: */
45: Date getDate();
46:
47: /**
48: * Sets the date.
49: * @param _date A date.
50: */
51: void setDate(Date _date);
52:
53: /**
54: * Returns the user ID.
55: * @return A string.
56: */
57: public String getUserId();
58:
59: /**
60: * Sets the user ID.
61: * @param _userId A user ID.
62: */
63: public void setUserId(String _userId);
64:
65: /**
66: * Returns the ip address.
67: * @return A string.
68: */
69: public String getIPAddress();
70:
71: /**
72: * Sets the ip address.
73: * @param _ipaddress A ip address.
74: */
75: public void setIPAddress(String _ipaddress);
76:
77: /**
78: * Returns the value of a variable.
79: * @param variableName The variable name.
80: * @return A boolean value.
81: */
82: boolean getValue(String variableName);
83:
84: /**
85: * Sets a variable value.
86: * @param variableName The variable name.
87: * @param value The value.
88: */
89: void setValue(String variableName, boolean value);
90:
91: }
|