View Javadoc

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