org.opencms.ade.postupload.shared.CmsPostUploadDialogPanelBean 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 (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.postupload.shared;
import org.opencms.gwt.shared.CmsListInfoBean;
import org.opencms.gwt.shared.property.CmsClientProperty;
import org.opencms.util.CmsUUID;
import org.opencms.xml.content.CmsXmlContentProperty;
import java.util.Map;
import com.google.gwt.user.client.rpc.IsSerializable;
/**
* A bean representing the state of a single resource to be edited in the upload property dialog.
*/
public class CmsPostUploadDialogPanelBean implements IsSerializable {
/** The page info for displaying the CmsListItemWidget. */
private CmsListInfoBean m_infoBean;
/** The properties of the resource. */
private Map m_properties;
/** The property definitions for the resource type of the resource. */
private Map m_propertyDefinitions;
/** The structure id of the resource. */
private CmsUUID m_structureId;
/**
* Creates a new instance.
*/
public CmsPostUploadDialogPanelBean() {
}
/**
* Creates a new instance.
*
* @param structureId the structure id of the resource
* @param infoBean the list info bean
*/
public CmsPostUploadDialogPanelBean(CmsUUID structureId, CmsListInfoBean infoBean) {
m_structureId = structureId;
m_infoBean = infoBean;
}
/**
* Gets the info bean for the resource.
*
* @return the info bean for the resource
*/
public CmsListInfoBean getInfoBean() {
return m_infoBean;
}
/**
* Gets the properties for the resource.
*
* @return the map of properties by property name
*/
public Map getProperties() {
return m_properties;
}
/**
* Gets the property definitions for the type of the resource.
*
* @return the map of property definitions by property names
*/
public Map getPropertyDefinitions() {
return m_propertyDefinitions;
}
/**
* Gets the structure id of the resource.
*
* @return the user id
*/
public CmsUUID getStructureId() {
return m_structureId;
}
/**
* Sets the list info bean for the resource.
*
* @param info the list info bean for the resource
*/
public void setInfoBean(CmsListInfoBean info) {
m_infoBean = info;
}
/**
* Sets the properties for the resource.
*
* @param properties the properties for the resource
*/
public void setProperties(Map properties) {
m_properties = properties;
}
/**
* Sets the property definitions for the type of the resource.
*
* @param propertyDefinitions the map of property definitions
*/
public void setPropertyDefinitions(Map propertyDefinitions) {
m_propertyDefinitions = propertyDefinitions;
}
/**
* Sets the structure id of the resource.
*
* @param structureId the structure id of the resource
*/
public void setStructureId(CmsUUID structureId) {
m_structureId = structureId;
}
}