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

org.opencms.gwt.shared.property.CmsPropertiesBean 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 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.property;

import org.opencms.gwt.shared.CmsListInfoBean;
import org.opencms.util.CmsUUID;
import org.opencms.xml.content.CmsXmlContentProperty;

import java.util.List;
import java.util.Map;

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

/**
 * A bean containing the information needed to edit the properties of a resource.

* * @since 8.0.0 */ public class CmsPropertiesBean implements IsSerializable { /** A list of all property names. */ private List m_allProperties; /** The map of inherited properties of the resource. */ private Map m_inheritedProperties; /** Indicates if the resource is a container page. */ private boolean m_isContainerPage; /** Indicates if the resource is a folder. */ private boolean m_isFolder; /** A map of the resource's own properties. */ private Map m_ownProperties; /** Page information for displaying a list item representing the resource. */ private CmsListInfoBean m_pageInfo; /** A map of configured properties. */ private Map m_propertyDefinitions; /** The site path of the resource. */ private String m_sitePath; /** The structure id of the resource. */ private CmsUUID m_structureId; /** The map of available templates. */ private Map m_templates; /** Flag which indicates whether the properties are read-only. */ private boolean m_isReadOnly; /** * Creates a new instance.

*/ public CmsPropertiesBean() { // do nothing } /** * Returns a list of all property names.

* * @return a list of all property names */ public List getAllProperties() { return m_allProperties; } /** * Returns a map of the inherited properties.

* * @return a map of inherited properties */ public Map getInheritedProperties() { return m_inheritedProperties; } /** * Gets a map of the resource's own properties.

* * @return the resource's own properties */ public Map getOwnProperties() { return m_ownProperties; } /** * Gets the list info bean for the resource.

* * @return a list info bean */ public CmsListInfoBean getPageInfo() { return m_pageInfo; } /** * Gets a map of the configured properties.

* * @return the configured properties as a map */ public Map getPropertyDefinitions() { return m_propertyDefinitions; } /** * Gets the site path of the resource.

* * @return the site path of the resource */ public String getSitePath() { return m_sitePath; } /** * Gets the structure id of the resource.

* * @return the structure id of the resource */ public CmsUUID getStructureId() { return m_structureId; } /** * Gets a map of the available templates.

* * @return the available templates */ public Map getTemplates() { return m_templates; } /** * Returns the if the resource is a container page.

* * @return the if the resource is a container page */ public boolean isContainerPage() { return m_isContainerPage; } /** * Returns the if the resource is a folder.

* * @return the if the resource is a folder */ public boolean isFolder() { return m_isFolder; } /** * If true, the properties can't be modified.

* * @return true if the properties can't be modified */ public boolean isReadOnly() { return m_isReadOnly; } /** * Sets the list of property names.

* * @param allProperties the list of property names */ public void setAllProperties(List allProperties) { m_allProperties = allProperties; } /** * Sets if the resource is a container page.

* * @param isContainerPage true if the resource is a container page */ public void setContainerPage(boolean isContainerPage) { m_isContainerPage = isContainerPage; } /** * Sets if the resource is a folder.

* * @param isFolder true if the resource is a folder */ public void setFolder(boolean isFolder) { m_isFolder = isFolder; } /** * Sets the inherited properties.

* * @param inheritedProperties the inherited properties */ public void setInheritedProperties(Map inheritedProperties) { m_inheritedProperties = inheritedProperties; } /** * Sets the resource's own properties.

* * @param ownProperties the resource's own properties */ public void setOwnProperties(Map ownProperties) { m_ownProperties = ownProperties; } /** * Sets the page info.

* * @param pageInfo the page info */ public void setPageInfo(CmsListInfoBean pageInfo) { m_pageInfo = pageInfo; } /** * Sets the property configuration.

* * @param propertyDefinitions the property configuration */ public void setPropertyDefinitions(Map propertyDefinitions) { m_propertyDefinitions = propertyDefinitions; } /** * Sets "readonly mode".

* * @param isReadOnly true if "readonly mode" should be enabled */ public void setReadOnly(boolean isReadOnly) { m_isReadOnly = isReadOnly; } /** * Sets the site path.

* @param sitePath */ public void setSitePath(String sitePath) { m_sitePath = sitePath; } /** * Sets the structure id.

* * @param structureId the structure id */ public void setStructureId(CmsUUID structureId) { m_structureId = structureId; } /** * Sets the available templates.

* * @param templates the available templates */ public void setTemplates(Map templates) { m_templates = templates; } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy