001: /*
002: * Copyright 2005-2007 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 org.kuali.workflow.workgroup;
018:
019: import java.util.ArrayList;
020: import java.util.List;
021:
022: import edu.iu.uis.eden.BaseWorkflowPersistable;
023:
024: /**
025: *
026: * @author ewestfal
027: */
028: public class WorkgroupType extends BaseWorkflowPersistable {
029:
030: private static final long serialVersionUID = 7394951204472441349L;
031:
032: private Long workgroupTypeId;
033: private String name;
034: private String label;
035: private String description;
036: private String documentTypeName;
037: private Boolean active = true;
038: private Integer lockVerNbr;
039:
040: private List<WorkgroupTypeAttribute> attributes = new ArrayList<WorkgroupTypeAttribute>();
041:
042: public String getDocumentTypeName() {
043: return documentTypeName;
044: }
045:
046: public void setDocumentTypeName(String documentTypeName) {
047: this .documentTypeName = documentTypeName;
048: }
049:
050: public Boolean getActive() {
051: return active;
052: }
053:
054: public void setActive(Boolean active) {
055: this .active = active;
056: }
057:
058: public List<WorkgroupTypeAttribute> getActiveAttributes() {
059: List<WorkgroupTypeAttribute> activeAttributes = new ArrayList<WorkgroupTypeAttribute>();
060: for (WorkgroupTypeAttribute attribute : getAttributes()) {
061: if (attribute.getActive()) {
062: activeAttributes.add(attribute);
063: }
064: }
065: return activeAttributes;
066: }
067:
068: public List<WorkgroupTypeAttribute> getAttributes() {
069: return attributes;
070: }
071:
072: public void setAttributes(List<WorkgroupTypeAttribute> attributes) {
073: this .attributes = attributes;
074: }
075:
076: public String getDescription() {
077: return description;
078: }
079:
080: public void setDescription(String description) {
081: this .description = description;
082: }
083:
084: public String getLabel() {
085: return label;
086: }
087:
088: public void setLabel(String label) {
089: this .label = label;
090: }
091:
092: public Integer getLockVerNbr() {
093: return lockVerNbr;
094: }
095:
096: public void setLockVerNbr(Integer lockVerNbr) {
097: this .lockVerNbr = lockVerNbr;
098: }
099:
100: public String getName() {
101: return name;
102: }
103:
104: public void setName(String name) {
105: this .name = name;
106: }
107:
108: public Long getWorkgroupTypeId() {
109: return workgroupTypeId;
110: }
111:
112: public void setWorkgroupTypeId(Long workgroupTypeId) {
113: this.workgroupTypeId = workgroupTypeId;
114: }
115:
116: }
|