001/** 002 * Copyright 2005-2014 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.krad.util; 017 018import java.io.Serializable; 019import java.util.Map; 020 021/** 022 * Holds information on an action (ticket type name) and context (ticketContext) that has been performed and can be placed in the 023 * UserSession objectMap. This can be checked for by subsequent session requests to determine if the action has already taken place (for 024 * example a Question or document action where the action is not recorded on the document or form). 025 */ 026public class SessionTicket implements Serializable { 027 private String ticketTypeName; 028 private Map<String, String> ticketContext; 029 030 public SessionTicket(String ticketTypeName) { 031 this.ticketTypeName = ticketTypeName; 032 } 033 034 public String getTicketTypeName() { 035 return this.ticketTypeName; 036 } 037 038 public void setTicketTypeName(String ticketTypeName) { 039 this.ticketTypeName = ticketTypeName; 040 } 041 042 public Map<String, String> getTicketContext() { 043 return this.ticketContext; 044 } 045 046 public void setTicketContext(Map<String, String> ticketContext) { 047 this.ticketContext = ticketContext; 048 } 049}