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

org.opencms.ade.galleries.shared.CmsResourceInfoBean 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 (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.ade.galleries.shared;

import org.opencms.util.CmsUUID;

import java.util.Date;
import java.util.LinkedHashMap;
import java.util.Map;

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

/**
 * This bean contains the preview content for the selected item.

* * @since 8.0.0 */ public class CmsResourceInfoBean implements IsSerializable { /** The description of the resource. */ private String m_description; /** The last modification date. */ private Date m_lastModified; /** The no edit reason. If empty editing is allowed. */ private String m_noEditReason; /** The HTML content generated by the preview formatter. */ private String m_previewContent; /** The main properties. */ private Map m_properties; /** The path to the selected resource. */ private String m_resourcePath; /** The resource type name. */ private String m_resourceType; /** The file size. */ private String m_size; /** The structure id of the resource. */ private CmsUUID m_structureId; /** The title of the resource. */ private String m_title; /** * The constructor.

*/ public CmsResourceInfoBean() { m_properties = new LinkedHashMap(); } /** * Returns the description of the resource.

* * @return the description */ public String getDescription() { return m_description; } /** * Returns the last modification date.

* * @return the last modification date */ public Date getLastModified() { return m_lastModified; } /** * Returns the no edit reason. If empty editing is allowed.

* * @return the no edit reason */ public String getNoEditReason() { return m_noEditReason; } /** * Returns the preview content.

* * @return the preview content */ public String getPreviewContent() { return m_previewContent; } /** * Returns the properties.

* * @return the properties */ public Map getProperties() { return m_properties; } /** * Returns the resource path.

* * @return the resource path */ public String getResourcePath() { return m_resourcePath; } /** * Returns the resource type name.

* * @return the resource type name */ public String getResourceType() { return m_resourceType; } /** * Returns the file size.

* * @return the file size */ public String getSize() { return m_size; } /** * Gets the structure id of the resource.

* @return the structure id of the resource */ public CmsUUID getStructureId() { return m_structureId; } /** * Returns the title of the resource.

* * @return the title */ public String getTitle() { return m_title; } /** * Sets the description of the resource.

* * @param description the description to set */ public void setDescription(String description) { m_description = description; } /** * Sets the last modification date.

* * @param lastModified the last modification date to set */ public void setLastModified(Date lastModified) { m_lastModified = lastModified; } /** * Sets the no edit reason.

* * @param noEditReason the no edit reason to set */ public void setNoEditReason(String noEditReason) { m_noEditReason = noEditReason; } /** * Sets the preview content.

* * @param previewContent the preview content to set */ public void setPreviewContent(String previewContent) { m_previewContent = previewContent; } /** * Sets the propeties.

* * @param propeties the propeties to set */ public void setProperties(Map propeties) { m_properties = propeties; } /** * Sets the resource path.

* * @param resourcePath the resource path to set */ public void setResourcePath(String resourcePath) { m_resourcePath = resourcePath; } /** * Sets the resource type name.

* * @param resourceType the resource type name to set */ public void setResourceType(String resourceType) { m_resourceType = resourceType; } /** * Sets the file size.

* * @param size the file size to set */ public void setSize(String size) { m_size = size; } /** * Sets the resource structure id.

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

* * @param title the title to set */ public void setTitle(String title) { m_title = title; } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy