01: /*
02: * Copyright 2005-2006 The Kuali Foundation.
03: *
04: *
05: * Licensed under the Educational Community License, Version 1.0 (the "License");
06: * you may not use this file except in compliance with the License.
07: * You may obtain a copy of the License at
08: *
09: * http://www.opensource.org/licenses/ecl1.php
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: package edu.iu.uis.eden.useroptions;
18:
19: import edu.iu.uis.eden.preferences.Preferences;
20:
21: /**
22: * An option defined for a user. These are used to store user {@link Preferences}.
23: *
24: * @author rkirkend
25: */
26: public class UserOptions implements Comparable {
27:
28: private String workflowId;
29: private String optionId;
30: private String optionVal;
31: private Integer lockVerNbr;
32:
33: /**
34: * @return
35: */
36: public Integer getLockVerNbr() {
37: return lockVerNbr;
38: }
39:
40: /**
41: * @return
42: */
43: public String getOptionId() {
44: return optionId;
45: }
46:
47: /**
48: * @return
49: */
50: public String getOptionVal() {
51: return optionVal;
52: }
53:
54: /**
55: * @return
56: */
57: public String getWorkflowId() {
58: return workflowId;
59: }
60:
61: /**
62: * @param integer
63: */
64: public void setLockVerNbr(Integer integer) {
65: lockVerNbr = integer;
66: }
67:
68: /**
69: * @param string
70: */
71: public void setOptionId(String string) {
72: optionId = string;
73: }
74:
75: /**
76: * @param string
77: */
78: public void setOptionVal(String string) {
79: optionVal = string;
80: }
81:
82: /**
83: * @param string
84: */
85: public void setWorkflowId(String string) {
86: workflowId = string;
87: }
88:
89: public int compareTo(Object o) {
90: if (o instanceof UserOptions) {
91: return this .getOptionId().compareTo(
92: ((UserOptions) o).getOptionId());
93: }
94: return 0;
95: }
96: }
|