/*
* Copyright (C) 2005-2010 Alfresco Software Limited.
*
* This file is part of Alfresco
*
* Alfresco 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 3 of the License, or
* (at your option) any later version.
*
* Alfresco 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.
*
* You should have received a copy of the GNU Lesser General Public License
* along with Alfresco. If not, see
* TRANSACTIONS: This method will execute in a new transaction. * * @param archivedNodeRef the node's reference in the archive * @return Returns the results of the restore operation */ public RestoreNodeReport restoreArchivedNode(NodeRef archivedNodeRef); /** * Attempt to restore the given archived node into a new location. *
* TRANSACTIONS: This method will execute in a new transaction. * * @param archivedNodeRef the node's reference in the archive. This * must be valid. * @param destinationNodeRef the parent of the restored node, or * null to use the original parent node reference * @param assocTypeQName the type of the primary association to link the * restored node to the destination parent, or null to use * the orginal association type * @param assocQName the name of the primary association to be created, * or null to use the original association name * @return Returns the results of the restore operation */ public RestoreNodeReport restoreArchivedNode( NodeRef archivedNodeRef, NodeRef destinationNodeRef, QName assocTypeQName, QName assocQName); /** * Attempt to restore a list of archived nodes into their original locations, * using the original association types and names. *
* TRANSACTIONS: This method will execute in a new transaction.
*
* @param archivedNodeRefs the nodes' references in the archive. These
* must be valid.
* @return Returns the results of the each attempted restore operation
*/
public List
* TRANSACTIONS: This method will execute in a new transaction.
*
* @param archivedNodeRefs the nodes' references in the archive. These
* must be valid.
* @param destinationNodeRef the parent of the restored nodes, or
* null to use the original parent node references
* @param assocTypeQName the type of the primary associations to link the
* restored node to the destination parent, or null to use
* the orginal association types
* @param assocQName the name of the primary associations to be created,
* or null to use the original association names
* @return Returns the results of the each attempted restore operation
*/
public List
* TRANSACTIONS: This method will execute in a new transaction.
*
* @param originalStoreRef the store that the items originally came from
* @return Returns the results of the each attempted restore operation
*
* @deprecated In 3.4: no longer supported as it seldom works due to missing parents
*/
public List
* TRANSACTIONS: This method will execute in a new transaction.
*
* @param originalStoreRef the store that the items originally came from
* @param destinationNodeRef the parent of the restored nodes, or
* null to use the original parent node references
* @param assocTypeQName the type of the primary associations to link the
* restored node to the destination parent, or null to use
* the orginal association types
* @param assocQName the name of the primary associations to be created,
* or null to use the original association names
* @return Returns the results of the each attempted restore operation
*
* @deprecated In 3.4: no longer supported as it seldom works due to missing parents
*/
public List