org.opencms.ade.postupload.shared.CmsPostUploadDialogBean 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 (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.util.CmsUUID;
import java.util.HashMap;
import java.util.Map;
import com.google.gwt.user.client.rpc.IsSerializable;
/**
* Runtime data bean for prefetching.
*
* @since 8.0.0
*/
public class CmsPostUploadDialogBean implements IsSerializable {
/** Name of the used js variable. */
public static final String DICT_NAME = "postupload_dialog";
/**
* A map of the resources for which the properties should be edited, with the structure ids as keys and the resource
* paths as values.
*/
private Map m_resources = new HashMap();
/** Flag which controls whether the property configurations should be used. */
private boolean m_useConfiguration;
/**
* Default constructor for serialization.
*/
public CmsPostUploadDialogBean() {
// default constructor for serialization
}
/**
* Creates a new instance.
*
* @param resources the map of resources for which the properties should be uploaded
*/
public CmsPostUploadDialogBean(Map resources) {
m_resources.putAll(resources);
}
/**
* Returns the list of resource paths.
*
* @return the list of resource paths
*/
public Map getResources() {
return m_resources;
}
/**
* Returns true if the property configurations should be used.
*
* @return true if the property configurations should be used
*/
public boolean isUsePropertyConfiguration() {
return m_useConfiguration;
}
/**
* Sets the map of resources for which the properties should be uploaded.
*
* @param resources the map of resources for which the properties should be uploaded
*/
public void setResources(Map resources) {
m_resources = resources;
}
/**
* Enables/disables use of the property configuration.
*
* @param useConfiguration true if the property configuration should be used
*/
public void setUsePropertyConfiguration(boolean useConfiguration) {
m_useConfiguration = useConfiguration;
}
}