1 /**
2 * Copyright 2005-2014 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 /**
19 * KRA Audit Error class.
20 *
21 * @author Kuali Rice Team (rice.collab@kuali.org)
22 *
23 * @deprecated Only used in KNS classes, use KRAD.
24 */
25 @Deprecated
26 public class AuditError {
27
28 private String errorKey;
29 private String messageKey;
30 private String link;
31 private String[] params;
32
33 public AuditError(String errorKey, String messageKey, String link) {
34 this.setErrorKey(errorKey);
35 this.setMessageKey(messageKey);
36 this.setLink(link);
37 this.params = new String[5]; // bean:message takes up to 5 tokenized parameters
38 }
39
40 public AuditError(String errorKey, String messageKey, String link, String[] params) {
41 this(errorKey, messageKey, link);
42 this.setParams(params);
43 }
44
45 /**
46 * Gets the errorKey attribute.
47 *
48 * @return Returns the errorKey.
49 */
50 public String getErrorKey() {
51 return errorKey;
52 }
53
54 /**
55 * Sets the errorKey attribute value.
56 *
57 * @param errorKey The errorKey to set.
58 */
59 public void setErrorKey(String errorKey) {
60 this.errorKey = errorKey;
61 }
62
63 /**
64 * Gets the link attribute.
65 *
66 * @return Returns the link.
67 */
68 public String getLink() {
69 return link;
70 }
71
72 /**
73 * Sets the link attribute value.
74 *
75 * @param link The link to set.
76 */
77 public void setLink(String link) {
78 this.link = link;
79 }
80
81 /**
82 * Gets the key attribute.
83 *
84 * @return Returns the key.
85 */
86 public String getMessageKey() {
87 return messageKey;
88 }
89
90 /**
91 * Sets the key attribute value.
92 *
93 * @param key The key to set.
94 */
95 public void setMessageKey(String messageKey) {
96 this.messageKey = messageKey;
97 }
98
99 /**
100 * Gets the params attribute.
101 *
102 * @return Returns the params.
103 */
104 public String[] getParams() {
105 return params;
106 }
107
108 /**
109 * Sets the params attribute value.
110 *
111 * @param params The params to set.
112 */
113 public void setParams(String[] params) {
114 this.params = params;
115 }
116 }