01: /**********************************************************************************
02: * $URL: https://source.sakaiproject.org/svn/osp/tags/sakai_2-4-1/common/api/src/java/org/theospi/portfolio/shared/model/CommonFormBean.java $
03: * $Id: CommonFormBean.java 17627 2006-10-31 19:00:52Z chmaurer@iupui.edu $
04: ***********************************************************************************
05: *
06: * Copyright (c) 2005, 2006 The Sakai Foundation.
07: *
08: * Licensed under the Educational Community License, Version 1.0 (the "License");
09: * you may not use this file except in compliance with the License.
10: * You may obtain a copy of the License at
11: *
12: * http://www.opensource.org/licenses/ecl1.php
13: *
14: * Unless required by applicable law or agreed to in writing, software
15: * distributed under the License is distributed on an "AS IS" BASIS,
16: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17: * See the License for the specific language governing permissions and
18: * limitations under the License.
19: *
20: **********************************************************************************/package org.theospi.portfolio.shared.model;
21:
22: import java.util.Comparator;
23: import java.util.Date;
24:
25: public class CommonFormBean {
26:
27: private String id;
28: private String name;
29: private String type;
30: private String owner;
31: private Date modifiedDate;
32:
33: public static Comparator beanComparator;
34: static {
35: beanComparator = new Comparator() {
36: public int compare(Object o1, Object o2) {
37: return ((CommonFormBean) o1).getName().toLowerCase()
38: .compareTo(
39: ((CommonFormBean) o2).getName()
40: .toLowerCase());
41: }
42: };
43: }
44:
45: public CommonFormBean() {
46: }
47:
48: public CommonFormBean(String id, String name, String type,
49: String owner, Date modifiedDate) {
50: this .id = id;
51: this .name = name;
52: this .type = type;
53: this .owner = owner;
54: this .modifiedDate = modifiedDate;
55: }
56:
57: public String getId() {
58: return id;
59: }
60:
61: public void setId(String id) {
62: this .id = id;
63: }
64:
65: public String getName() {
66: return name;
67: }
68:
69: public void setName(String name) {
70: this .name = name;
71: }
72:
73: public String getType() {
74: return type;
75: }
76:
77: public void setType(String type) {
78: this .type = type;
79: }
80:
81: public String getOwner() {
82: return owner;
83: }
84:
85: public void setOwner(String owner) {
86: this .owner = owner;
87: }
88:
89: public Date getModifiedDate() {
90: return modifiedDate;
91: }
92:
93: public void setModifiedDate(Date modifiedDate) {
94: this.modifiedDate = modifiedDate;
95: }
96:
97: }
|