001/*
002 * This library is part of OpenCms -
003 * the Open Source Content Management System
004 *
005 * Copyright (C) Alkacon Software (http://www.alkacon.com)
006 *
007 * This library is free software; you can redistribute it and/or
008 * modify it under the terms of the GNU Lesser General Public
009 * License as published by the Free Software Foundation; either
010 * version 2.1 of the License, or (at your option) any later version.
011 *
012 * This library is distributed in the hope that it will be useful,
013 * but WITHOUT ANY WARRANTY; without even the implied warranty of
014 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
015 * Lesser General Public License for more details.
016 *
017 * For further information about Alkacon Software, please see the
018 * company website: http://www.alkacon.com
019 *
020 * For further information about OpenCms, please see the
021 * project website: http://www.opencms.org
022 *
023 * You should have received a copy of the GNU Lesser General Public
024 * License along with this library; if not, write to the Free Software
025 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
026 */
027
028package org.opencms.gwt.shared.alias;
029
030import java.util.ArrayList;
031import java.util.List;
032
033import com.google.gwt.user.client.rpc.IsSerializable;
034
035/**
036 * The class used to transmit the original alias list when the alias editor dialog is first loaded.<p>
037 */
038public class CmsAliasInitialFetchResult implements IsSerializable {
039
040    /** The alias lock owner name (null if the current user is lock owner). */
041    private String m_aliasLockOwner;
042
043    /** The list of aliases. */
044    private List<CmsAliasTableRow> m_aliasRows;
045
046    /** The alias download URL. */
047    private String m_downloadUrl;
048
049    /** The initial list of rewrite aliases. */
050    private List<CmsRewriteAliasTableRow> m_rewriteAliases = new ArrayList<CmsRewriteAliasTableRow>();
051
052    /**
053     * Gets the alias lock owner.<p>
054     *
055     * This will return null if the current user is the lock owner.<p>
056     *
057     * @return the alias lock owner
058     */
059    public String getAliasTableLockOwner() {
060
061        return m_aliasLockOwner;
062    }
063
064    /**
065     * Gets the alias download URL.<p>
066     *
067     * @return the alias download URL
068     */
069    public String getDownloadUrl() {
070
071        return m_downloadUrl;
072    }
073
074    /**
075     * Gets the list of rewrite aliases.<p>
076     *
077     * @return the list of rewrite aliases
078     */
079    public List<CmsRewriteAliasTableRow> getRewriteAliases() {
080
081        return m_rewriteAliases;
082    }
083
084    /**
085     * Gets the alias table rows.<p>
086     *
087     * @return the alias table rows
088     */
089    public List<CmsAliasTableRow> getRows() {
090
091        return m_aliasRows;
092    }
093
094    /**
095     * Sets the alias lock owner name.<p>
096     *
097     * @param name the alias lock owner name
098     */
099    public void setAliasLockOwner(String name) {
100
101        m_aliasLockOwner = name;
102    }
103
104    /**
105     * Sets the download URL for aliases.<p>
106     *
107     * @param downloadUrl the download URL for aliases
108     */
109    public void setDownloadUrl(String downloadUrl) {
110
111        m_downloadUrl = downloadUrl;
112
113    }
114
115    /**
116     * Sets the initial list of rewrite aliases.<p>
117     *
118     * @param rows the list of rewrite aliases
119     */
120    public void setRewriteRows(List<CmsRewriteAliasTableRow> rows) {
121
122        m_rewriteAliases = rows;
123    }
124
125    /**
126     * Sets the alias table rows.<p>
127     *
128     * @param rows the alias table rows
129     */
130    public void setRows(List<CmsAliasTableRow> rows) {
131
132        m_aliasRows = rows;
133    }
134
135}