001 /** 002 * Copyright 2005-2012 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 */ 016 package org.kuali.rice.edl.impl; 017 018 import javax.xml.transform.Transformer; 019 020 import org.kuali.rice.edl.impl.bo.EDocLiteAssociation; 021 import org.kuali.rice.krad.UserSession; 022 023 024 /** 025 * Convenience object to hang valuable objects in edl off of. 026 * 027 * @author Kuali Rice Team (rice.collab@kuali.org) 028 * 029 */ 030 public class EDLContext { 031 032 private EDocLiteAssociation edocLiteAssociation; 033 private EDLControllerChain edlControllerChain; 034 private UserSession userSession; 035 private Transformer transformer; 036 private RequestParser requestParser; 037 private boolean inError; 038 private UserAction userAction; 039 private String redirectUrl; 040 041 public EDLContext() { 042 redirectUrl = null; 043 } 044 045 public UserSession getUserSession() { 046 return userSession; 047 } 048 public void setUserSession(UserSession userSession) { 049 this.userSession = userSession; 050 } 051 public EDLControllerChain getEdlControllerChain() { 052 return edlControllerChain; 053 } 054 public void setEdlControllerChain(EDLControllerChain edlControllerChain) { 055 this.edlControllerChain = edlControllerChain; 056 } 057 public EDocLiteAssociation getEdocLiteAssociation() { 058 return edocLiteAssociation; 059 } 060 public void setEdocLiteAssociation(EDocLiteAssociation edocLiteAssociation) { 061 this.edocLiteAssociation = edocLiteAssociation; 062 } 063 public Transformer getTransformer() { 064 return transformer; 065 } 066 public void setTransformer(Transformer transformer) { 067 this.transformer = transformer; 068 } 069 public boolean isInError() { 070 return inError; 071 } 072 public void setInError(boolean inError) { 073 this.inError = inError; 074 } 075 public RequestParser getRequestParser() { 076 return requestParser; 077 } 078 public void setRequestParser(RequestParser requestParser) { 079 this.requestParser = requestParser; 080 } 081 public UserAction getUserAction() { 082 return this.userAction; 083 } 084 public void setUserAction(UserAction userAction) { 085 this.userAction = userAction; 086 } 087 088 public String getRedirectUrl() { 089 return redirectUrl; 090 } 091 092 public void setRedirectUrl(String redirectUrl) { 093 this.redirectUrl = redirectUrl; 094 } 095 096 }