001/**
002 * Copyright 2005-2016 The Kuali Foundation
003 *
004 * Licensed under the Educational Community License, Version 2.0 (the "License");
005 * you may not use this file except in compliance with the License.
006 * You may obtain a copy of the License at
007 *
008 * http://www.opensource.org/licenses/ecl2.php
009 *
010 * Unless required by applicable law or agreed to in writing, software
011 * distributed under the License is distributed on an "AS IS" BASIS,
012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
013 * See the License for the specific language governing permissions and
014 * limitations under the License.
015 */
016package org.kuali.rice.edl.impl;
017
018import javax.xml.transform.Transformer;
019import javax.xml.xpath.XPath;
020import javax.xml.xpath.XPathFactory;
021
022import org.kuali.rice.edl.impl.bo.EDocLiteAssociation;
023import org.kuali.rice.krad.UserSession;
024
025
026/**
027 * Convenience object to hang valuable objects in edl off of.
028 * 
029 * @author Kuali Rice Team (rice.collab@kuali.org)
030 *
031 */
032public class EDLContext {
033        
034        private EDocLiteAssociation edocLiteAssociation;
035        private EDLControllerChain      edlControllerChain;
036        private UserSession userSession;
037        private Transformer transformer;
038        private RequestParser requestParser;
039        private boolean inError;
040        private UserAction userAction;
041        private String redirectUrl;
042    private XPath xpath;
043
044    public EDLContext() {
045                redirectUrl = null;
046        xpath = XPathFactory.newInstance().newXPath();
047    }
048
049    public XPath getXpath() {
050        return xpath;
051    }
052
053    public void setXpath(XPath xpath) {
054        this.xpath = xpath;
055    }
056
057        public UserSession getUserSession() {
058                return userSession;
059        }
060        public void setUserSession(UserSession userSession) {
061                this.userSession = userSession;
062        }
063        public EDLControllerChain getEdlControllerChain() {
064                return edlControllerChain;
065        }
066        public void setEdlControllerChain(EDLControllerChain edlControllerChain) {
067                this.edlControllerChain = edlControllerChain;
068        }
069        public EDocLiteAssociation getEdocLiteAssociation() {
070                return edocLiteAssociation;
071        }
072        public void setEdocLiteAssociation(EDocLiteAssociation edocLiteAssociation) {
073                this.edocLiteAssociation = edocLiteAssociation;
074        }
075        public Transformer getTransformer() {
076                return transformer;
077        }
078        public void setTransformer(Transformer transformer) {
079                this.transformer = transformer;
080        }
081        public boolean isInError() {
082                return inError;
083        }
084        public void setInError(boolean inError) {
085                this.inError = inError;
086        }
087        public RequestParser getRequestParser() {
088                return requestParser;
089        }
090        public void setRequestParser(RequestParser requestParser) {
091                this.requestParser = requestParser;
092        }
093        public UserAction getUserAction() {
094            return this.userAction;
095        }
096        public void setUserAction(UserAction userAction) {
097            this.userAction = userAction;
098        }
099
100        public String getRedirectUrl() {
101                return redirectUrl;
102        }
103
104        public void setRedirectUrl(String redirectUrl) {
105                this.redirectUrl = redirectUrl;
106        }       
107        
108}