org.opencms.gwt.shared.CmsDeleteResourceBean Maven / Gradle / Ivy
Show all versions of opencms-gwt Show documentation
/*
* This library is part of OpenCms -
* the Open Source Content Management System
*
* Copyright (c) Alkacon Software GmbH & Co. KG (http://www.alkacon.com)
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* For further information about Alkacon Software, please see the
* company website: http://www.alkacon.com
*
* For further information about OpenCms, please see the
* project website: http://www.opencms.org
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
package org.opencms.gwt.shared;
import java.util.List;
import com.google.gwt.user.client.rpc.IsSerializable;
/**
* A bean which represents the information for the delete dialog.
*
* @since 8.0.0
*/
public class CmsDeleteResourceBean implements IsSerializable {
/** The list of broken links. */
private List m_brokenLinks;
/** The page info for displaying the CmsListItemWidget. */
private CmsListInfoBean m_pageInfo;
/** The site path of the resource that to get the broken links for. */
private String m_sitePath;
/**
* Constructor.
* @param sitePath site path of the resource that to get the broken links for
* @param pageInfo page info
* @param brokenLinks list of broken links
*/
public CmsDeleteResourceBean(String sitePath, CmsListInfoBean pageInfo, List brokenLinks) {
m_sitePath = sitePath;
m_pageInfo = pageInfo;
m_brokenLinks = brokenLinks;
}
/**
* Hidden default constructor.
*/
protected CmsDeleteResourceBean() {
// noop
}
/**
* Returns the broken links.
*
* @return the broken links
*/
public List getBrokenLinks() {
return m_brokenLinks;
}
/**
* Returns the pageInfo.
*
* @return the pageInfo
*/
public CmsListInfoBean getPageInfo() {
return m_pageInfo;
}
/**
* Returns the sitePath.
*
* @return the sitePath
*/
public String getSitePath() {
return m_sitePath;
}
/**
* Sets the broken links.
*
* @param brokenLinks the broken links to set
*/
public void setBrokenLinks(List brokenLinks) {
m_brokenLinks = brokenLinks;
}
/**
* Sets the pageInfo.
*
* @param pageInfo the pageInfo to set
*/
public void setPageInfo(CmsListInfoBean pageInfo) {
m_pageInfo = pageInfo;
}
/**
* Sets the sitePath.
*
* @param sitePath the sitePath to set
*/
public void setSitePath(String sitePath) {
m_sitePath = sitePath;
}
}