001/**
002 * Copyright 2010-2014 The Kuali Foundation
003 *
004 * Licensed under the Educational Community License, Version 2.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/ecl2.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 */
016package org.kuali.common.util;
017
018import java.util.List;
019
020import org.slf4j.Logger;
021
022/**
023 * @deprecated
024 */
025@Deprecated
026public class LogTableContext {
027
028        public static final LoggerLevel DEFAULT_LOGGER_LEVEL = LoggerLevel.INFO;
029        public static final boolean DEFAULT_LEFT_ALIGN = false;
030        public static final Logger DEFAULT_LOGGER = LoggerUtils.LOGGER_UTILS_LOGGER;
031        public static final String DEFAULT_TITLE = "Displaying Table";
032
033        LoggerLevel level = DEFAULT_LOGGER_LEVEL;
034        boolean leftAlign = DEFAULT_LEFT_ALIGN;
035        Logger logger = DEFAULT_LOGGER;
036
037        String title = DEFAULT_TITLE;
038        List<String> columns;
039        List<Object[]> rows;
040
041        public LogTableContext() {
042                this(null, null);
043        }
044
045        public LogTableContext(List<String> columns, List<Object[]> rows) {
046                this(columns, rows, DEFAULT_LOGGER);
047        }
048
049        public LogTableContext(List<String> columns, List<Object[]> rows, Logger logger) {
050                this(null, columns, rows, logger);
051        }
052
053        public LogTableContext(String title, List<String> columns, List<Object[]> rows, Logger logger) {
054                super();
055                this.title = title;
056                this.columns = columns;
057                this.rows = rows;
058                this.logger = logger;
059        }
060
061        public LoggerLevel getLevel() {
062                return level;
063        }
064
065        public void setLevel(LoggerLevel level) {
066                this.level = level;
067        }
068
069        public boolean isLeftAlign() {
070                return leftAlign;
071        }
072
073        public void setLeftAlign(boolean leftAlign) {
074                this.leftAlign = leftAlign;
075        }
076
077        public Logger getLogger() {
078                return logger;
079        }
080
081        public void setLogger(Logger logger) {
082                this.logger = logger;
083        }
084
085        public List<String> getColumns() {
086                return columns;
087        }
088
089        public void setColumns(List<String> columns) {
090                this.columns = columns;
091        }
092
093        public List<Object[]> getRows() {
094                return rows;
095        }
096
097        public void setRows(List<Object[]> rows) {
098                this.rows = rows;
099        }
100
101        public String getTitle() {
102                return title;
103        }
104
105        public void setTitle(String title) {
106                this.title = title;
107        }
108
109}