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

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

import java.util.List;

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

/**
 * A bean that holds the upload file infos.

* * @since 8.0.0 */ public class CmsUploadFileBean implements IsSerializable { /** The active upload flag. */ private boolean m_active; /** The list of resource names that already exist on the VFS. */ private List m_existingFileNames; /** The list of filenames that are invalid. */ private List m_invalidFileNames; /** The list of filenames that point to existing but deleted files. */ private List m_existingDeletedFileNames; /** * The default constructor.

*/ public CmsUploadFileBean() { // noop } /** * The constructor with parameters.

* * @param existingFileNames list of filenames that already exist on the VFS * @param invalidFileNames list of filenames that are invalid * @param existingDeleted the list of filenames that point to existing but deleted files * @param active the upload active flag */ public CmsUploadFileBean( List existingFileNames, List invalidFileNames, List existingDeleted, boolean active) { m_existingFileNames = existingFileNames; m_invalidFileNames = invalidFileNames; m_existingDeletedFileNames = existingDeleted; m_active = active; } /** * Returns the list of filenames that point to existing but deleted files.

* * @return the list of filenames that point to existing but deleted files */ public List getExistingDeletedFileNames() { return m_existingDeletedFileNames; } /** * Returns the list of resource names that already exist on the VFS.

* * @return the list of resource names that already exist on the VFS */ public List getExistingResourceNames() { return m_existingFileNames; } /** * Returns the list of filenames that are invalid.

* * @return the list of filenames that are invalid */ public List getInvalidFileNames() { return m_invalidFileNames; } /** * Returns the active.

* * @return the active */ public boolean isActive() { return m_active; } /** * Sets the active.

* * @param active the active to set */ public void setActive(boolean active) { m_active = active; } /** * Sets the list of filenames that point to existing but deleted files.

* * @param existingDeletedFileNames list of filenames that point to existing but deleted files */ public void setExistingDeletedFileNames(List existingDeletedFileNames) { m_existingDeletedFileNames = existingDeletedFileNames; } /** * Sets the list of resource names that already exist on the VFS.

* * @param existingResourceNames the list of resource names that already exist on the VFS to set */ public void setExistingResourceNames(List existingResourceNames) { m_existingFileNames = existingResourceNames; } /** * Sets the list of filenames that are invalid.

* * @param invalidFileNames the list of filenames that are invalid to set */ public void setInvalidFileNames(List invalidFileNames) { m_invalidFileNames = invalidFileNames; } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy