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

org.opencms.gwt.shared.CmsRestoreInfoBean 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 (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 org.opencms.util.CmsUUID;

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

/**
 * The bean with the necessary information for the "Restore" dialog.

*/ public class CmsRestoreInfoBean implements IsSerializable { /** A flag which indicates whether a move operation can be undone. */ private boolean m_canUndoMove; /** The bean containing the data for the list item widget. */ private CmsListInfoBean m_listInfoBean; /** The offline modification date. */ private String m_offlineDate; /** The offline root path of the resource. */ private String m_offlinePath; /** The online modification date. */ private String m_onlineDate; /** The online root path of the resource. */ private String m_onlinePath; /** The structure id of the resource. */ private CmsUUID m_structureId; /** * Creates a new instance.

*/ public CmsRestoreInfoBean() { // empty } /** * Returns true if the move operation can be undone.

* * @return true if the move operation can be undone */ public boolean canUndoMove() { return m_canUndoMove; } /** * Gets the bean containing the information for the file info box.

* * @return the bean with the information for the file info box */ public CmsListInfoBean getListInfoBean() { return m_listInfoBean; } /** * Gets the offline modification date.

* * @return the offline modification date */ public String getOfflineDate() { return m_offlineDate; } /** * Gets the offline root path of the resource.

* * @return the offline path of the resource */ public String getOfflinePath() { return m_offlinePath; } /** * Gets the online modification date.

* * @return the online modification date */ public String getOnlineDate() { return m_onlineDate; } /** * Gets the online root path of the resource.

* * @return the online path of the resource */ public String getOnlinePath() { return m_onlinePath; } /** * Gets the structure id of the resource for which changes should be undone.

* * @return the structure id of the resource which changes should be undone */ public CmsUUID getStructureId() { return m_structureId; } /** * Returns true if the resource was moved.

* * @return true if the resource was moved */ public boolean isMoved() { return !m_offlinePath.equals(m_onlinePath); } /** * Sets the 'canUndoMove' property.

* * @param canUndoMove the new value for the 'canUndoMove' property */ public void setCanUndoMove(boolean canUndoMove) { m_canUndoMove = canUndoMove; } /** * Sets the list info bean for the resource.

* * @param listInfoBean the list info bean for the resource */ public void setListInfoBean(CmsListInfoBean listInfoBean) { m_listInfoBean = listInfoBean; } /** * Sets the offline modification date.

* * @param offlineDate the offline modification date */ public void setOfflineDate(String offlineDate) { m_offlineDate = offlineDate; } /** * Sets the offline root path.

* * @param offlinePath the offline path */ public void setOfflinePath(String offlinePath) { m_offlinePath = offlinePath; } /** * Sets the online modification date.

* * @param onlineDate the online modification date */ public void setOnlineDate(String onlineDate) { m_onlineDate = onlineDate; } /** * Sets the online root path.

* * @param onlinePath the online root path */ public void setOnlinePath(String onlinePath) { m_onlinePath = onlinePath; } /** * Sets the structure id of the resource.

* * @param structureId the structure id to set */ public void setStructureId(CmsUUID structureId) { m_structureId = structureId; } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy