001: /*
002: * Copyright 2006-2007 The Kuali Foundation.
003: *
004: * Licensed under the Educational Community License, Version 1.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/ecl1.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: */
016: package org.kuali.module.kra.util;
017:
018: /**
019: * KRA Audit Error class.
020: */
021: public class AuditError {
022:
023: private String errorKey;
024: private String messageKey;
025: private String link;
026: private String[] params;
027:
028: public AuditError(String errorKey, String messageKey, String link) {
029: this .setErrorKey(errorKey);
030: this .setMessageKey(messageKey);
031: this .setLink(link);
032: this .params = new String[5]; // bean:message takes up to 5 tokenized parameters
033: }
034:
035: public AuditError(String errorKey, String messageKey, String link,
036: String[] params) {
037: this (errorKey, messageKey, link);
038: this .setParams(params);
039: }
040:
041: /**
042: * Gets the errorKey attribute.
043: *
044: * @return Returns the errorKey.
045: */
046: public String getErrorKey() {
047: return errorKey;
048: }
049:
050: /**
051: * Sets the errorKey attribute value.
052: *
053: * @param errorKey The errorKey to set.
054: */
055: public void setErrorKey(String errorKey) {
056: this .errorKey = errorKey;
057: }
058:
059: /**
060: * Gets the link attribute.
061: *
062: * @return Returns the link.
063: */
064: public String getLink() {
065: return link;
066: }
067:
068: /**
069: * Sets the link attribute value.
070: *
071: * @param link The link to set.
072: */
073: public void setLink(String link) {
074: this .link = link;
075: }
076:
077: /**
078: * Gets the key attribute.
079: *
080: * @return Returns the key.
081: */
082: public String getMessageKey() {
083: return messageKey;
084: }
085:
086: /**
087: * Sets the key attribute value.
088: *
089: * @param key The key to set.
090: */
091: public void setMessageKey(String messageKey) {
092: this .messageKey = messageKey;
093: }
094:
095: /**
096: * Gets the params attribute.
097: *
098: * @return Returns the params.
099: */
100: public String[] getParams() {
101: return params;
102: }
103:
104: /**
105: * Sets the params attribute value.
106: *
107: * @param params The params to set.
108: */
109: public void setParams(String[] params) {
110: this.params = params;
111: }
112: }
|