001: /*
002: * File : $Source: /usr/local/cvs/opencms/src/org/opencms/db/CmsUserExportSettings.java,v $
003: * Date : $Date: 2008-02-27 12:05:43 $
004: * Version: $Revision: 1.4 $
005: *
006: * This library is part of OpenCms -
007: * the Open Source Content Management System
008: *
009: * Copyright (c) 2002 - 2008 Alkacon Software GmbH (http://www.alkacon.com)
010: *
011: * This library is free software; you can redistribute it and/or
012: * modify it under the terms of the GNU Lesser General Public
013: * License as published by the Free Software Foundation; either
014: * version 2.1 of the License, or (at your option) any later version.
015: *
016: * This library is distributed in the hope that it will be useful,
017: * but WITHOUT ANY WARRANTY; without even the implied warranty of
018: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
019: * Lesser General Public License for more details.
020: *
021: * For further information about Alkacon Software GmbH, please see the
022: * company website: http://www.alkacon.com
023: *
024: * For further information about OpenCms, please see the
025: * project website: http://www.opencms.org
026: *
027: * You should have received a copy of the GNU Lesser General Public
028: * License along with this library; if not, write to the Free Software
029: * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
030: */
031:
032: package org.opencms.db;
033:
034: import java.util.ArrayList;
035: import java.util.List;
036:
037: /**
038: * Provides the user export settings.<p>
039: *
040: * @author Raphael Schnuck
041: *
042: * @version $Revision: 1.4 $
043: *
044: * @since 6.5.6
045: */
046: public class CmsUserExportSettings {
047:
048: /** The list of export values. */
049: private List m_columns;
050:
051: /** The separator used in export file. */
052: private String m_separator;
053:
054: /**
055: *Public constructor.<p>
056: */
057: public CmsUserExportSettings() {
058:
059: m_columns = new ArrayList();
060: }
061:
062: /**
063: * Public constructor.<p>
064: *
065: * @param separator the seperator to use during import
066: * @param columns the columns to export
067: */
068: public CmsUserExportSettings(String separator, List columns) {
069:
070: m_separator = separator;
071: m_columns = columns;
072: }
073:
074: /**
075: * Adds a column to the list of export columns.<p>
076: *
077: * @param column column to add to export columns list
078: */
079: public void addColumn(String column) {
080:
081: m_columns.add(column);
082: }
083:
084: /**
085: * Returns the list of export columns.<p>
086: *
087: * @return the list of export columns
088: */
089: public List getColumns() {
090:
091: return m_columns;
092: }
093:
094: /**
095: * Returns the export separator.<p>
096: *
097: * @return the export separator
098: */
099: public String getSeparator() {
100:
101: return m_separator;
102: }
103:
104: /**
105: * Sets the export columns.<p>
106: *
107: * @param columns the export columns to set
108: */
109: public void setColumns(List columns) {
110:
111: m_columns = columns;
112: }
113:
114: /**
115: * Sets the export separator.<p>
116: *
117: * @param separator the export separator to set
118: */
119: public void setSeparator(String separator) {
120:
121: m_separator = separator;
122: }
123: }
|