Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
SessionTicket |
|
| 1.0;1 |
1 | /* | |
2 | * Copyright 2007-2010 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.kns.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 | 0 | public SessionTicket(String ticketTypeName) { |
31 | 0 | this.ticketTypeName = ticketTypeName; |
32 | 0 | } |
33 | ||
34 | public String getTicketTypeName() { | |
35 | 0 | return this.ticketTypeName; |
36 | } | |
37 | ||
38 | public void setTicketTypeName(String ticketTypeName) { | |
39 | 0 | this.ticketTypeName = ticketTypeName; |
40 | 0 | } |
41 | ||
42 | public Map<String, String> getTicketContext() { | |
43 | 0 | return this.ticketContext; |
44 | } | |
45 | ||
46 | public void setTicketContext(Map<String, String> ticketContext) { | |
47 | 0 | this.ticketContext = ticketContext; |
48 | 0 | } |
49 | } |