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 import java.util.ArrayList;
19 import java.util.List;
20
21 /**
22 * KRA Audit Cluster; container for related set of audit errors.
23 *
24 * @author Kuali Rice Team (rice.collab@kuali.org)
25 *
26 * @deprecated Only used in KNS classes, use KRAD.
27 */
28 @Deprecated
29 public class AuditCluster {
30
31 private String label;
32 private List auditErrorList;
33 private String category;
34
35 public AuditCluster() {
36 this.auditErrorList = new ArrayList();
37 }
38
39 public AuditCluster(String label, List auditErrorList, String category) {
40 this.label = label;
41 this.auditErrorList = auditErrorList;
42 this.category = category;
43 }
44
45 /**
46 * Gets the label attribute.
47 *
48 * @return Returns the label.
49 */
50 public String getLabel() {
51 return label;
52 }
53
54 /**
55 * Sets the label attribute value.
56 *
57 * @param label The label to set.
58 */
59 public void setLabel(String label) {
60 this.label = label;
61 }
62
63 /**
64 * Gets the auditErrorList attribute.
65 *
66 * @return Returns the auditErrorList.
67 */
68 public List getAuditErrorList() {
69 return auditErrorList;
70 }
71
72 /**
73 * Sets the auditErrorList attribute value.
74 *
75 * @param auditErrorList The auditErrorList to set.
76 */
77 public void setAuditErrorList(List auditErrorList) {
78 this.auditErrorList = auditErrorList;
79 }
80
81 /**
82 * Returns the number of audit errors in the cluster.
83 *
84 * @return int size
85 */
86 public int getSize() {
87 return this.getAuditErrorList().size();
88 }
89
90 public String getCategory() {
91 return this.category;
92 }
93
94 public void setCategory(String category) {
95 this.category = category;
96 }
97 }
98