001: /*
002: * Copyright 2005-2006 The Kuali Foundation.
003: *
004: *
005: * Licensed under the Educational Community License, Version 1.0 (the "License");
006: * you may not use this file except in compliance with the License.
007: * You may obtain a copy of the License at
008: *
009: * http://www.opensource.org/licenses/ecl1.php
010: *
011: * Unless required by applicable law or agreed to in writing, software
012: * distributed under the License is distributed on an "AS IS" BASIS,
013: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
014: * See the License for the specific language governing permissions and
015: * limitations under the License.
016: */
017: package edu.iu.uis.eden.clientapp.vo;
018:
019: import edu.iu.uis.eden.workgroup.Workgroup;
020:
021: /**
022: * Transport object representing a {@link Workgroup}.
023: *
024: * @author rkirkend
025: * @author ewestfal
026: *
027: * @workflow.webservice-object
028: */
029: public class WorkgroupVO implements java.io.Serializable {
030:
031: static final long serialVersionUID = 5233450403505886792L;
032:
033: private static final String ACTIVE_LABEL = "ACTIVE";
034: private static final String INACTIVE_LABEL = "INACTIVE";
035:
036: private Long workgroupId;
037: private String description;
038: private String workgroupName;
039: private boolean activeInd;
040: private String workgroupType;
041: private UserVO[] members = new UserVO[0];
042:
043: public WorkgroupVO() {
044: }
045:
046: public boolean isActiveInd() {
047: return activeInd;
048: }
049:
050: public void setActiveInd(boolean activeInd) {
051: this .activeInd = activeInd;
052: }
053:
054: public String getDescription() {
055: return description;
056: }
057:
058: public void setDescription(String description) {
059: this .description = description;
060: }
061:
062: public UserVO[] getMembers() {
063: return members;
064: }
065:
066: public void setMembers(UserVO[] members) {
067: this .members = members;
068: }
069:
070: public Long getWorkgroupId() {
071: return workgroupId;
072: }
073:
074: public void setWorkgroupId(Long workgroupId) {
075: this .workgroupId = workgroupId;
076: }
077:
078: public String getWorkgroupName() {
079: return workgroupName;
080: }
081:
082: public void setWorkgroupName(String workgroupName) {
083: this .workgroupName = workgroupName;
084: }
085:
086: public String getWorkgroupType() {
087: return workgroupType;
088: }
089:
090: public void setWorkgroupType(String workgroupType) {
091: this .workgroupType = workgroupType;
092: }
093:
094: public String getActiveLabel() {
095: if (this.activeInd) {
096: return ACTIVE_LABEL;
097: } else {
098: return INACTIVE_LABEL;
099: }
100: }
101:
102: }
|