01: /*
02: * Copyright 2007 The Kuali Foundation.
03: *
04: * Licensed under the Educational Community License, Version 1.0 (the "License");
05: * you may not use this file except in compliance with the License.
06: * You may obtain a copy of the License at
07: *
08: * http://www.opensource.org/licenses/ecl1.php
09: *
10: * Unless required by applicable law or agreed to in writing, software
11: * distributed under the License is distributed on an "AS IS" BASIS,
12: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13: * See the License for the specific language governing permissions and
14: * limitations under the License.
15: */
16: package org.kuali.module.kra.bo;
17:
18: import java.util.LinkedHashMap;
19:
20: import org.kuali.kfs.KFSPropertyConstants;
21:
22: /**
23: * This class represents an ad-hoc workgroup.
24: */
25: public class AdhocWorkgroup extends AbstractAdhoc {
26:
27: private String workgroupName;
28:
29: public AdhocWorkgroup() {
30: super ();
31: }
32:
33: public AdhocWorkgroup(String workgroupName) {
34: this ();
35: this .workgroupName = workgroupName;
36: }
37:
38: public AdhocWorkgroup(String workgroupName, String documentNumber) {
39: this ();
40: this .workgroupName = workgroupName;
41: this .setDocumentNumber(documentNumber);
42: }
43:
44: /**
45: * Gets the workgroupName attribute.
46: *
47: * @return Returns the workgroupName.
48: */
49: public String getWorkgroupName() {
50: return workgroupName;
51: }
52:
53: /**
54: * Sets the workgroupName attribute value.
55: *
56: * @param workgroupName The workgroupName to set.
57: */
58: public void setWorkgroupName(String workgroupName) {
59: this .workgroupName = workgroupName;
60: }
61:
62: /**
63: * @see org.kuali.core.bo.BusinessObjectBase#toStringMapper()
64: */
65: protected LinkedHashMap toStringMapper() {
66: LinkedHashMap m = new LinkedHashMap();
67: m.put(KFSPropertyConstants.DOCUMENT_NUMBER, this
68: .getDocumentNumber());
69: m.put("workgroupName", this.workgroupName);
70:
71: return m;
72: }
73: }
|