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.GroupNameId;
20:
21: /**
22: * Transport object for {@link GroupNameId}.
23: *
24: * @author rkirkend
25: * @author ewestfal
26: *
27: * @workflow.webservice-object
28: */
29: public class WorkgroupNameIdVO extends WorkgroupIdVO {
30:
31: private static final long serialVersionUID = 1935321896253453916L;
32: private String workgroupName;
33:
34: public WorkgroupNameIdVO() {
35:
36: }
37:
38: public WorkgroupNameIdVO(String workgroupName) {
39: this .workgroupName = workgroupName;
40: }
41:
42: public String getWorkgroupName() {
43: return workgroupName;
44: }
45:
46: public void setWorkgroupName(String workgroupName) {
47: this .workgroupName = workgroupName;
48: }
49:
50: public boolean equals(Object object) {
51: if (object instanceof WorkgroupNameIdVO) {
52: String objectId = ((WorkgroupNameIdVO) object)
53: .getWorkgroupName();
54: return ((workgroupName == null && objectId == null) || (workgroupName != null && workgroupName
55: .equals(objectId)));
56: }
57: return false;
58: }
59:
60: public int hashCode() {
61: return (workgroupName == null ? 0 : workgroupName.hashCode());
62: }
63:
64: public String toString() {
65: return (workgroupName == null ? "null" : workgroupName);
66: }
67: }
|