View Javadoc
1   /**
2    * Copyright 2005-2015 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  import javax.xml.xpath.XPath;
20  import javax.xml.xpath.XPathFactory;
21  
22  import org.kuali.rice.edl.impl.bo.EDocLiteAssociation;
23  import org.kuali.rice.krad.UserSession;
24  
25  
26  /**
27   * Convenience object to hang valuable objects in edl off of.
28   * 
29   * @author Kuali Rice Team (rice.collab@kuali.org)
30   *
31   */
32  public class EDLContext {
33  	
34  	private EDocLiteAssociation edocLiteAssociation;
35  	private EDLControllerChain	edlControllerChain;
36  	private UserSession userSession;
37  	private Transformer transformer;
38  	private RequestParser requestParser;
39  	private boolean inError;
40  	private UserAction userAction;
41  	private String redirectUrl;
42      private XPath xpath;
43  
44      public EDLContext() {
45  		redirectUrl = null;
46          xpath = XPathFactory.newInstance().newXPath();
47      }
48  
49      public XPath getXpath() {
50          return xpath;
51      }
52  
53      public void setXpath(XPath xpath) {
54          this.xpath = xpath;
55      }
56  
57  	public UserSession getUserSession() {
58  		return userSession;
59  	}
60  	public void setUserSession(UserSession userSession) {
61  		this.userSession = userSession;
62  	}
63  	public EDLControllerChain getEdlControllerChain() {
64  		return edlControllerChain;
65  	}
66  	public void setEdlControllerChain(EDLControllerChain edlControllerChain) {
67  		this.edlControllerChain = edlControllerChain;
68  	}
69  	public EDocLiteAssociation getEdocLiteAssociation() {
70  		return edocLiteAssociation;
71  	}
72  	public void setEdocLiteAssociation(EDocLiteAssociation edocLiteAssociation) {
73  		this.edocLiteAssociation = edocLiteAssociation;
74  	}
75  	public Transformer getTransformer() {
76  		return transformer;
77  	}
78  	public void setTransformer(Transformer transformer) {
79  		this.transformer = transformer;
80  	}
81  	public boolean isInError() {
82  		return inError;
83  	}
84  	public void setInError(boolean inError) {
85  		this.inError = inError;
86  	}
87  	public RequestParser getRequestParser() {
88  		return requestParser;
89  	}
90  	public void setRequestParser(RequestParser requestParser) {
91  		this.requestParser = requestParser;
92  	}
93  	public UserAction getUserAction() {
94  	    return this.userAction;
95  	}
96  	public void setUserAction(UserAction userAction) {
97  	    this.userAction = userAction;
98  	}
99  
100 	public String getRedirectUrl() {
101 		return redirectUrl;
102 	}
103 
104 	public void setRedirectUrl(String redirectUrl) {
105 		this.redirectUrl = redirectUrl;
106 	}	
107 	
108 }