View Javadoc

1   /*
2    * Copyright 2005-2007 The Kuali Foundation
3    * 
4    * 
5    * Licensed under the Educational Community License, Version 2.0 (the "License");
6    * you may not use this file except in compliance with the License.
7    * You may obtain a copy of the License at
8    * 
9    * http://www.opensource.org/licenses/ecl2.php
10   * 
11   * Unless required by applicable law or agreed to in writing, software
12   * distributed under the License is distributed on an "AS IS" BASIS,
13   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14   * See the License for the specific language governing permissions and
15   * limitations under the License.
16   */
17  package org.kuali.rice.kew.edl;
18  
19  import javax.xml.transform.Transformer;
20  
21  import org.kuali.rice.kew.edl.bo.EDocLiteAssociation;
22  import org.kuali.rice.kew.web.session.UserSession;
23  
24  
25  /**
26   * Convenience object to hang valuable objects in edl off of.
27   * 
28   * @author Kuali Rice Team (rice.collab@kuali.org)
29   *
30   */
31  public class EDLContext {
32  	
33  	private EDocLiteAssociation edocLiteAssociation;
34  	private EDLControllerChain	edlControllerChain;
35  	private UserSession userSession;
36  	private Transformer transformer;
37  	private RequestParser requestParser;
38  	private boolean inError;
39  	private UserAction userAction;
40  	private String redirectUrl;
41  	
42  	public EDLContext() {
43  		redirectUrl = null;
44  	}
45  	
46  	public UserSession getUserSession() {
47  		return userSession;
48  	}
49  	public void setUserSession(UserSession userSession) {
50  		this.userSession = userSession;
51  	}
52  	public EDLControllerChain getEdlControllerChain() {
53  		return edlControllerChain;
54  	}
55  	public void setEdlControllerChain(EDLControllerChain edlControllerChain) {
56  		this.edlControllerChain = edlControllerChain;
57  	}
58  	public EDocLiteAssociation getEdocLiteAssociation() {
59  		return edocLiteAssociation;
60  	}
61  	public void setEdocLiteAssociation(EDocLiteAssociation edocLiteAssociation) {
62  		this.edocLiteAssociation = edocLiteAssociation;
63  	}
64  	public Transformer getTransformer() {
65  		return transformer;
66  	}
67  	public void setTransformer(Transformer transformer) {
68  		this.transformer = transformer;
69  	}
70  	public boolean isInError() {
71  		return inError;
72  	}
73  	public void setInError(boolean inError) {
74  		this.inError = inError;
75  	}
76  	public RequestParser getRequestParser() {
77  		return requestParser;
78  	}
79  	public void setRequestParser(RequestParser requestParser) {
80  		this.requestParser = requestParser;
81  	}
82  	public UserAction getUserAction() {
83  	    return this.userAction;
84  	}
85  	public void setUserAction(UserAction userAction) {
86  	    this.userAction = userAction;
87  	}
88  
89  	public String getRedirectUrl() {
90  		return redirectUrl;
91  	}
92  
93  	public void setRedirectUrl(String redirectUrl) {
94  		this.redirectUrl = redirectUrl;
95  	}	
96  	
97  }