1 | package org.apache.maven.continuum.web.action; |
2 | |
3 | /* |
4 | * Licensed to the Apache Software Foundation (ASF) under one |
5 | * or more contributor license agreements. See the NOTICE file |
6 | * distributed with this work for additional information |
7 | * regarding copyright ownership. The ASF licenses this file |
8 | * to you under the Apache License, Version 2.0 (the |
9 | * "License"); you may not use this file except in compliance |
10 | * with the License. You may obtain a copy of the License at |
11 | * |
12 | * http://www.apache.org/licenses/LICENSE-2.0 |
13 | * |
14 | * Unless required by applicable law or agreed to in writing, |
15 | * software distributed under the License is distributed on an |
16 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
17 | * KIND, either express or implied. See the License for the |
18 | * specific language governing permissions and limitations |
19 | * under the License. |
20 | */ |
21 | |
22 | public class ContinuumConfirmAction |
23 | extends ContinuumActionSupport |
24 | { |
25 | |
26 | public static final String CONFIRM = "confirm"; |
27 | |
28 | protected boolean confirmed = false; |
29 | |
30 | protected String confirmedDisplay; |
31 | |
32 | protected String confirmationTitle; |
33 | |
34 | protected String confirmedName; |
35 | |
36 | protected String confirmedValue; |
37 | |
38 | protected String action; |
39 | |
40 | protected void setConfirmationInfo( String title, String actionName, String displayString, String propertyName, |
41 | String propertyValue ) |
42 | { |
43 | action = actionName; |
44 | confirmationTitle = title; |
45 | confirmedDisplay = displayString; |
46 | confirmedName = propertyName; |
47 | confirmedValue = "" + propertyValue; |
48 | } |
49 | |
50 | // setters and getters |
51 | |
52 | public void setConfirmedName( String name ) |
53 | { |
54 | confirmedName = name; |
55 | } |
56 | |
57 | public String getConfirmedName() |
58 | { |
59 | return confirmedName; |
60 | } |
61 | |
62 | public void setConfirmedValue( String value ) |
63 | { |
64 | confirmedValue = value; |
65 | } |
66 | |
67 | public String getConfirmedValue() |
68 | { |
69 | return confirmedValue; |
70 | } |
71 | |
72 | public void setConfirmationTitle( String title ) |
73 | { |
74 | confirmationTitle = title; |
75 | } |
76 | |
77 | public String getConfirmationTitle() |
78 | { |
79 | return confirmationTitle; |
80 | } |
81 | |
82 | public void setConfirmedDisplay( String display ) |
83 | { |
84 | confirmedDisplay = display; |
85 | } |
86 | |
87 | public String getConfirmedDisplay() |
88 | { |
89 | return confirmedDisplay; |
90 | } |
91 | |
92 | public void setConfirmed( boolean confirmed ) |
93 | { |
94 | this.confirmed = confirmed; |
95 | } |
96 | |
97 | public boolean isConfirmed() |
98 | { |
99 | return confirmed; |
100 | } |
101 | |
102 | public void setAction( String action ) |
103 | { |
104 | this.action = action; |
105 | } |
106 | |
107 | public String getAction() |
108 | { |
109 | return action; |
110 | } |
111 | |
112 | } |