1   
2   
3   
4   
5   
6   
7   
8   
9   
10  
11  
12  
13  
14  
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  
28  
29  
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 }