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.clientapp.vo;
18:
19: import edu.iu.uis.eden.workgroup.WorkflowGroupId;
20:
21: /**
22: * Transport object representing a {@link WorkflowGroupId}.
23: *
24: * @workflow.webservice-object
25: */
26: public class WorkflowGroupIdVO extends WorkgroupIdVO {
27:
28: private static final long serialVersionUID = 8008851999610283526L;
29: private Long workgroupId;
30:
31: public WorkflowGroupIdVO() {
32:
33: }
34:
35: public WorkflowGroupIdVO(Long workgroupId) {
36: this .workgroupId = workgroupId;
37: }
38:
39: public Long getWorkgroupId() {
40: return workgroupId;
41: }
42:
43: public void setWorkgroupId(Long workgroupId) {
44: this .workgroupId = workgroupId;
45: }
46:
47: public boolean equals(Object object) {
48: if (object instanceof WorkflowGroupIdVO) {
49: Long objectId = ((WorkflowGroupIdVO) object)
50: .getWorkgroupId();
51: return ((workgroupId == null && objectId == null) || (workgroupId != null && workgroupId
52: .equals(objectId)));
53: }
54: return false;
55: }
56:
57: public int hashCode() {
58: return (workgroupId == null ? 0 : workgroupId.hashCode());
59: }
60:
61: public String toString() {
62: return (workgroupId == null ? "null" : workgroupId.toString());
63: }
64: }
|