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.user.web;
018:
019: import java.sql.Timestamp;
020:
021: import edu.iu.uis.eden.lookupable.WebLookupableDecorator;
022: import edu.iu.uis.eden.user.AuthenticationUserId;
023: import edu.iu.uis.eden.user.EmplId;
024: import edu.iu.uis.eden.user.UuId;
025: import edu.iu.uis.eden.user.WorkflowUser;
026: import edu.iu.uis.eden.user.WorkflowUserId;
027:
028: /**
029: * A decorator on the {@link WorkflowUser} which adds some convienance methods for
030: * use by the web-tier of the application.
031: *
032: * @author bmcgough
033: * @author temay
034: */
035: public class WebWorkflowUser extends WebLookupableDecorator implements
036: WorkflowUser {
037:
038: private static final long serialVersionUID = 3165333859388741253L;
039:
040: private WorkflowUser workflowUser;
041: private Boolean newUuid;
042: private Boolean newEmplId;
043: private Boolean newAuthenticationId;
044: protected Integer lockVerNbr;
045: private Timestamp createDate;
046: private UuId oldUuid;
047: private EmplId oldEmplId;
048: private AuthenticationUserId oldAuthenticationUserId;
049:
050: public WebWorkflowUser(WorkflowUser workflowUser) {
051: this .workflowUser = workflowUser;
052: }
053:
054: public String getWorkflowId() {
055: return getWorkflowUserId().getWorkflowId();
056: }
057:
058: public AuthenticationUserId getAuthenticationUserId() {
059: return workflowUser.getAuthenticationUserId();
060: }
061:
062: public String getDisplayName() {
063: return workflowUser.getDisplayName();
064: }
065:
066: public String getEmailAddress() {
067: return workflowUser.getEmailAddress();
068: }
069:
070: public EmplId getEmplId() {
071: return workflowUser.getEmplId();
072: }
073:
074: public String getGivenName() {
075: return workflowUser.getGivenName();
076: }
077:
078: public String getLastName() {
079: return workflowUser.getLastName();
080: }
081:
082: public String getTransposedName() {
083: return workflowUser.getTransposedName();
084: }
085:
086: public UuId getUuId() {
087: return workflowUser.getUuId();
088: }
089:
090: public WorkflowUserId getWorkflowUserId() {
091: return workflowUser.getWorkflowUserId();
092: }
093:
094: public void setAuthenticationUserId(
095: AuthenticationUserId authenticationUserId) {
096: workflowUser.setAuthenticationUserId(authenticationUserId);
097: }
098:
099: public void setDisplayName(String displayName) {
100: workflowUser.setDisplayName(displayName);
101: }
102:
103: public void setEmailAddress(String emailAddress) {
104: workflowUser.setEmailAddress(emailAddress);
105: }
106:
107: public void setEmplId(EmplId emplId) {
108: workflowUser.setEmplId(emplId);
109: }
110:
111: public void setGivenName(String givenName) {
112: workflowUser.setGivenName(givenName);
113: }
114:
115: public void setLastName(String lastName) {
116: workflowUser.setLastName(lastName);
117: }
118:
119: public void setUuId(UuId uuId) {
120: workflowUser.setUuId(uuId);
121: }
122:
123: public void setWorkflowUserId(WorkflowUserId workflowUserId) {
124: workflowUser.setWorkflowUserId(workflowUserId);
125: }
126:
127: public boolean hasId() {
128: return workflowUser.hasId();
129: }
130:
131: public Boolean isNewAuthenticationId() {
132: return newAuthenticationId;
133: }
134:
135: public void setNewAuthenticationId(Boolean newAuthenticationId) {
136: this .newAuthenticationId = newAuthenticationId;
137: }
138:
139: public Boolean isNewEmplId() {
140: return newEmplId;
141: }
142:
143: public void setNewEmplId(Boolean newEmplId) {
144: this .newEmplId = newEmplId;
145: }
146:
147: public Boolean isNewUuid() {
148: return newUuid;
149: }
150:
151: public void setNewUuid(Boolean newUuid) {
152: this .newUuid = newUuid;
153: }
154:
155: public Integer getLockVerNbr() {
156: return lockVerNbr;
157: }
158:
159: public void setLockVerNbr(Integer lockVerNbr) {
160: this .lockVerNbr = lockVerNbr;
161: }
162:
163: public Timestamp getCreateDate() {
164: return createDate;
165: }
166:
167: public void setCreateDate(Timestamp createDate) {
168: this .createDate = createDate;
169: }
170:
171: public AuthenticationUserId getOldAuthenticationUserId() {
172: return oldAuthenticationUserId;
173: }
174:
175: public void setOldAuthenticationUserId(
176: AuthenticationUserId oldAuthenticationUserId) {
177: this .oldAuthenticationUserId = oldAuthenticationUserId;
178: }
179:
180: public EmplId getOldEmplId() {
181: return oldEmplId;
182: }
183:
184: public void setOldEmplId(EmplId oldEmplId) {
185: this .oldEmplId = oldEmplId;
186: }
187:
188: public UuId getOldUuid() {
189: return oldUuid;
190: }
191:
192: public void setOldUuid(UuId oldUuid) {
193: this.oldUuid = oldUuid;
194: }
195: }
|