001/*
002 * This library is part of OpenCms -
003 * the Open Source Content Management System
004 *
005 * Copyright (c) Alkacon Software GmbH & Co. KG (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;
029
030import java.util.List;
031
032import com.google.gwt.user.client.rpc.IsSerializable;
033
034/**
035 * A bean which represents the information for the delete dialog.<p>
036 *
037 * @since 8.0.0
038 */
039public class CmsDeleteResourceBean implements IsSerializable {
040
041    /** The list of broken links. */
042    private List<CmsBrokenLinkBean> m_brokenLinks;
043
044    /** The page info for displaying the CmsListItemWidget. */
045    private CmsListInfoBean m_pageInfo;
046
047    /** The site path of the resource that to get the broken links for. */
048    private String m_sitePath;
049
050    /**
051     * Constructor.<p>
052     * @param sitePath site path of the resource that to get the broken links for
053     * @param pageInfo page info
054     * @param brokenLinks list of broken links
055     */
056    public CmsDeleteResourceBean(String sitePath, CmsListInfoBean pageInfo, List<CmsBrokenLinkBean> brokenLinks) {
057
058        m_sitePath = sitePath;
059        m_pageInfo = pageInfo;
060        m_brokenLinks = brokenLinks;
061    }
062
063    /**
064     * Hidden default constructor.<p>
065     */
066    protected CmsDeleteResourceBean() {
067
068        // noop
069    }
070
071    /**
072     * Returns the broken links.<p>
073     *
074     * @return the broken links
075     */
076    public List<CmsBrokenLinkBean> getBrokenLinks() {
077
078        return m_brokenLinks;
079    }
080
081    /**
082     * Returns the pageInfo.<p>
083     *
084     * @return the pageInfo
085     */
086    public CmsListInfoBean getPageInfo() {
087
088        return m_pageInfo;
089    }
090
091    /**
092     * Returns the sitePath.<p>
093     *
094     * @return the sitePath
095     */
096    public String getSitePath() {
097
098        return m_sitePath;
099    }
100
101    /**
102     * Sets the broken links.<p>
103     *
104     * @param brokenLinks the broken links to set
105     */
106    public void setBrokenLinks(List<CmsBrokenLinkBean> brokenLinks) {
107
108        m_brokenLinks = brokenLinks;
109    }
110
111    /**
112     * Sets the pageInfo.<p>
113     *
114     * @param pageInfo the pageInfo to set
115     */
116    public void setPageInfo(CmsListInfoBean pageInfo) {
117
118        m_pageInfo = pageInfo;
119    }
120
121    /**
122     * Sets the sitePath.<p>
123     *
124     * @param sitePath the sitePath to set
125     */
126    public void setSitePath(String sitePath) {
127
128        m_sitePath = sitePath;
129    }
130}