All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.opencms.gwt.shared.CmsResourceStatusRelationBean Maven / Gradle / Ivy

Go to download

OpenCms is an enterprise-ready, easy to use website content management system based on Java and XML technology. Offering a complete set of features, OpenCms helps content managers worldwide to create and maintain beautiful websites fast and efficiently.

There is a newer version: 18.0
Show newest version
/*
 * This library is part of OpenCms -
 * the Open Source Content Management System
 *
 * Copyright (C) Alkacon Software (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 org.opencms.util.CmsUUID;

import com.google.gwt.user.client.rpc.IsSerializable;

/**
 * Bean class which represents a resource which is related to another resource.

*/ public class CmsResourceStatusRelationBean implements IsSerializable { /** The info bean for the resource. */ private CmsListInfoBean m_infoBean; /** True if the resource is an xml content. */ private boolean m_isXmlContent; /** A link to the resource. */ private String m_link; /** The permission info. */ private CmsPermissionInfo m_permissionInfo; /** The site path of the resource. */ private String m_sitePath; /** The site root. */ private String m_siteRoot; /** The structure id of the resource. */ private CmsUUID m_structureId; /** * Creates a new instance.

* * @param infoBean the list info bean * @param link the link to the resource * @param structureId the structure id of the resource * @param permissionInfo the permission info */ public CmsResourceStatusRelationBean( CmsListInfoBean infoBean, String link, CmsUUID structureId, CmsPermissionInfo permissionInfo) { m_infoBean = infoBean; m_link = link; m_structureId = structureId; m_permissionInfo = permissionInfo; } /** * Default constructor for serialization.

*/ protected CmsResourceStatusRelationBean() { // do nothing } /** * Gets the list info bean.

* * @return the list info bean */ public CmsListInfoBean getInfoBean() { return m_infoBean; } /** * Gets the link to the resource.

* * @return the link to the resource */ public String getLink() { return m_link; } /** * Returns the permission info.

* * @return the permission info */ public CmsPermissionInfo getPermissionInfo() { return m_permissionInfo; } /** * Gets the site path of the resource.

* * @return the site path of the resource */ public String getSitePath() { return m_sitePath; } /** * Returns the siteRoot.

* * @return the siteRoot */ public String getSiteRoot() { return m_siteRoot; } /** * Returns the structure id of the resource.

* * @return the structure id of the resource */ public CmsUUID getStructureId() { return m_structureId; } /** * Returns true if the resource is an XML content.

* * @return true if the resource is an XML content */ public boolean isXmlContent() { return m_isXmlContent; } /** * Sets the list info bean.

* * @param infoBean the new list info bean */ public void setInfoBean(CmsListInfoBean infoBean) { m_infoBean = infoBean; } /** * Marks this bean as belonging to an XML content resource.

* * @param isXmlContent if the resource is an XML content */ public void setIsXmlContent(boolean isXmlContent) { m_isXmlContent = isXmlContent; } /** * Sets the link for the resource.

* * @param link the link for the resource */ public void setLink(String link) { m_link = link; } /** * Sets the site path for the resource.

* * @param path the new site path */ public void setSitePath(String path) { m_sitePath = path; } /** * Sets the siteRoot.

* * @param siteRoot the siteRoot to set */ public void setSiteRoot(String siteRoot) { m_siteRoot = siteRoot; } /** * Sets the structure id for the resource.

* * @param structureId the new structure id */ public void setStructureId(CmsUUID structureId) { m_structureId = structureId; } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy