1 /**
2 * Copyright 2005-2016 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.krad.util;
17
18 import java.io.Serializable;
19 import java.util.Map;
20
21 /**
22 * Holds information on an action (ticket type name) and context (ticketContext) that has been performed and can be placed in the
23 * UserSession objectMap. This can be checked for by subsequent session requests to determine if the action has already taken place (for
24 * example a Question or document action where the action is not recorded on the document or form).
25 */
26 public class SessionTicket implements Serializable {
27 private String ticketTypeName;
28 private Map<String, String> ticketContext;
29
30 public SessionTicket(String ticketTypeName) {
31 this.ticketTypeName = ticketTypeName;
32 }
33
34 public String getTicketTypeName() {
35 return this.ticketTypeName;
36 }
37
38 public void setTicketTypeName(String ticketTypeName) {
39 this.ticketTypeName = ticketTypeName;
40 }
41
42 public Map<String, String> getTicketContext() {
43 return this.ticketContext;
44 }
45
46 public void setTicketContext(Map<String, String> ticketContext) {
47 this.ticketContext = ticketContext;
48 }
49 }