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.role;
018:
019: import java.sql.Timestamp;
020: import java.util.ArrayList;
021: import java.util.List;
022:
023: /**
024: *
025: * @author ewestfal
026: */
027: public class QualifiedRole implements java.io.Serializable {
028:
029: private Long qualifiedRoleId;
030:
031: private Long roleId;
032: private boolean active;
033: private String description;
034: private Long documentId;
035: private Timestamp fromDate;
036: private Timestamp toDate;
037: private Timestamp activationDate;
038: private Timestamp deactivationDate;
039: private Integer versionNumber;
040: private boolean current;
041: private Long previousVersionId;
042: private Integer lockVerNbr;
043:
044: private Role role;
045: private List<QualifiedRoleMember> members = new ArrayList<QualifiedRoleMember>();
046: private List<QualifiedRoleExtension> extensions = new ArrayList<QualifiedRoleExtension>();
047:
048: public Timestamp getActivationDate() {
049: return activationDate;
050: }
051:
052: public void setActivationDate(Timestamp activationDate) {
053: this .activationDate = activationDate;
054: }
055:
056: public boolean isActive() {
057: return active;
058: }
059:
060: public void setActive(boolean active) {
061: this .active = active;
062: }
063:
064: public boolean isCurrent() {
065: return current;
066: }
067:
068: public void setCurrent(boolean current) {
069: this .current = current;
070: }
071:
072: public Timestamp getDeactivationDate() {
073: return deactivationDate;
074: }
075:
076: public void setDeactivationDate(Timestamp deactivationDate) {
077: this .deactivationDate = deactivationDate;
078: }
079:
080: public String getDescription() {
081: return description;
082: }
083:
084: public void setDescription(String description) {
085: this .description = description;
086: }
087:
088: public Long getDocumentId() {
089: return documentId;
090: }
091:
092: public void setDocumentId(Long documentId) {
093: this .documentId = documentId;
094: }
095:
096: public List<QualifiedRoleExtension> getExtensions() {
097: return extensions;
098: }
099:
100: public void setExtensions(List<QualifiedRoleExtension> extensions) {
101: this .extensions = extensions;
102: }
103:
104: public Timestamp getFromDate() {
105: return fromDate;
106: }
107:
108: public void setFromDate(Timestamp fromDate) {
109: this .fromDate = fromDate;
110: }
111:
112: public Integer getLockVerNbr() {
113: return lockVerNbr;
114: }
115:
116: public void setLockVerNbr(Integer lockVerNbr) {
117: this .lockVerNbr = lockVerNbr;
118: }
119:
120: public List<QualifiedRoleMember> getMembers() {
121: return members;
122: }
123:
124: public void setMembers(List<QualifiedRoleMember> members) {
125: this .members = members;
126: }
127:
128: public Long getPreviousVersionId() {
129: return previousVersionId;
130: }
131:
132: public void setPreviousVersionId(Long previousVersionId) {
133: this .previousVersionId = previousVersionId;
134: }
135:
136: public Long getQualifiedRoleId() {
137: return qualifiedRoleId;
138: }
139:
140: public void setQualifiedRoleId(Long qualifiedRoleId) {
141: this .qualifiedRoleId = qualifiedRoleId;
142: }
143:
144: public Role getRole() {
145: return role;
146: }
147:
148: public void setRole(Role role) {
149: this .role = role;
150: }
151:
152: public Long getRoleId() {
153: return roleId;
154: }
155:
156: public void setRoleId(Long roleId) {
157: this .roleId = roleId;
158: }
159:
160: public Timestamp getToDate() {
161: return toDate;
162: }
163:
164: public void setToDate(Timestamp toDate) {
165: this .toDate = toDate;
166: }
167:
168: public Integer getVersionNumber() {
169: return versionNumber;
170: }
171:
172: public void setVersionNumber(Integer versionNumber) {
173: this.versionNumber = versionNumber;
174: }
175:
176: }
|