public class NodeArchiveServiceImpl extends java.lang.Object implements NodeArchiveService
QNAME_ARCHIVED_ITEM| Constructor and Description |
|---|
NodeArchiveServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
org.alfresco.service.cmr.repository.NodeRef |
getArchivedNode(org.alfresco.service.cmr.repository.NodeRef originalNodeRef)
Get the likely node reference for the original node.
|
org.alfresco.service.cmr.repository.NodeRef |
getStoreArchiveNode(org.alfresco.service.cmr.repository.StoreRef originalStoreRef)
Get the parent node that holds all nodes archived from the given store.
|
void |
purgeAllArchivedNodes(org.alfresco.service.cmr.repository.StoreRef originalStoreRef)
Uses batch processing and job locking to purge all archived nodes
|
void |
purgeArchivedNode(org.alfresco.service.cmr.repository.NodeRef archivedNodeRef)
This is the primary purge methd that all purge methods fall back on.
|
void |
purgeArchivedNodes(java.util.List archivedNodes)
Permanently delete the archived nodes.
|
java.util.List |
restoreAllArchivedNodes(org.alfresco.service.cmr.repository.StoreRef originalStoreRef)
Deprecated.
In 3.4: to be removed
|
java.util.List |
restoreAllArchivedNodes(org.alfresco.service.cmr.repository.StoreRef originalStoreRef,
org.alfresco.service.cmr.repository.NodeRef destinationNodeRef,
org.alfresco.service.namespace.QName assocTypeQName,
org.alfresco.service.namespace.QName assocQName)
Deprecated.
In 3.4: to be removed
|
RestoreNodeReport |
restoreArchivedNode(org.alfresco.service.cmr.repository.NodeRef archivedNodeRef)
Attempt to restore the given archived node into its original location.
|
RestoreNodeReport |
restoreArchivedNode(org.alfresco.service.cmr.repository.NodeRef archivedNodeRef,
org.alfresco.service.cmr.repository.NodeRef destinationNodeRef,
org.alfresco.service.namespace.QName assocTypeQName,
org.alfresco.service.namespace.QName assocQName)
This is the primary restore method that all
restore methods fall back on. |
java.util.List |
restoreArchivedNodes(java.util.List archivedNodeRefs)
Attempt to restore a list of archived nodes into their original locations,
using the original association types and names.
|
java.util.List |
restoreArchivedNodes(java.util.List archivedNodeRefs,
org.alfresco.service.cmr.repository.NodeRef destinationNodeRef,
org.alfresco.service.namespace.QName assocTypeQName,
org.alfresco.service.namespace.QName assocQName)
Attempt to restore a list of archived nodes into a new location.
|
void |
setJobLockService(JobLockService jobLockService) |
void |
setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService) |
void |
setPermissionService(org.alfresco.service.cmr.security.PermissionService permissionService) |
void |
setTransactionService(TransactionService transactionService) |
public void setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService)
public void setPermissionService(org.alfresco.service.cmr.security.PermissionService permissionService)
public void setTransactionService(TransactionService transactionService)
public org.alfresco.service.cmr.repository.NodeRef getStoreArchiveNode(org.alfresco.service.cmr.repository.StoreRef originalStoreRef)
NodeArchiveServicegetStoreArchiveNode in interface NodeArchiveServicepublic void setJobLockService(JobLockService jobLockService)
public org.alfresco.service.cmr.repository.NodeRef getArchivedNode(org.alfresco.service.cmr.repository.NodeRef originalNodeRef)
NodeArchiveServicegetArchivedNode in interface NodeArchiveServiceoriginalNodeRef - the original node referencepublic RestoreNodeReport restoreArchivedNode(org.alfresco.service.cmr.repository.NodeRef archivedNodeRef, org.alfresco.service.cmr.repository.NodeRef destinationNodeRef, org.alfresco.service.namespace.QName assocTypeQName, org.alfresco.service.namespace.QName assocQName)
restore methods fall back on.
It executes the restore for the node in a separate transaction and attempts to catch
the known conditions that can be reported back to the client.restoreArchivedNode in interface NodeArchiveServicearchivedNodeRef - the node's reference in the archive. This
must be valid.destinationNodeRef - the parent of the restored node, or
null to use the original parent node referenceassocTypeQName - the type of the primary association to link the
restored node to the destination parent, or null to use
the orginal association typeassocQName - the name of the primary association to be created,
or null to use the original association namepublic RestoreNodeReport restoreArchivedNode(org.alfresco.service.cmr.repository.NodeRef archivedNodeRef)
NodeArchiveServiceTRANSACTIONS: This method will execute in a new transaction.
restoreArchivedNode in interface NodeArchiveServicearchivedNodeRef - the node's reference in the archiveNodeArchiveServiceImpl.restoreArchivedNode(NodeRef, NodeRef, QName, QName)public java.util.List restoreArchivedNodes(java.util.List archivedNodeRefs)
NodeArchiveServiceTRANSACTIONS: This method will execute in a new transaction.
restoreArchivedNodes in interface NodeArchiveServicearchivedNodeRefs - the nodes' references in the archive. These
must be valid.NodeArchiveServiceImpl.restoreArchivedNodes(List, NodeRef, QName, QName)public java.util.List restoreArchivedNodes(java.util.List archivedNodeRefs,
org.alfresco.service.cmr.repository.NodeRef destinationNodeRef,
org.alfresco.service.namespace.QName assocTypeQName,
org.alfresco.service.namespace.QName assocQName)
NodeArchiveServiceTRANSACTIONS: This method will execute in a new transaction.
restoreArchivedNodes in interface NodeArchiveServicearchivedNodeRefs - the nodes' references in the archive. These
must be valid.destinationNodeRef - the parent of the restored nodes, or
null to use the original parent node referencesassocTypeQName - the type of the primary associations to link the
restored node to the destination parent, or null to use
the orginal association typesassocQName - the name of the primary associations to be created,
or null to use the original association namesNodeArchiveServiceImpl.restoreArchivedNode(NodeRef, NodeRef, QName, QName)public java.util.List restoreAllArchivedNodes(org.alfresco.service.cmr.repository.StoreRef originalStoreRef)
restoreAllArchivedNodes in interface NodeArchiveServiceoriginalStoreRef - the store that the items originally came frompublic java.util.List restoreAllArchivedNodes(org.alfresco.service.cmr.repository.StoreRef originalStoreRef,
org.alfresco.service.cmr.repository.NodeRef destinationNodeRef,
org.alfresco.service.namespace.QName assocTypeQName,
org.alfresco.service.namespace.QName assocQName)
restoreAllArchivedNodes in interface NodeArchiveServiceoriginalStoreRef - the store that the items originally came fromdestinationNodeRef - the parent of the restored nodes, or
null to use the original parent node referencesassocTypeQName - the type of the primary associations to link the
restored node to the destination parent, or null to use
the orginal association typesassocQName - the name of the primary associations to be created,
or null to use the original association namesNodeService.getStoreArchiveNode(StoreRef),
NodeArchiveServiceImpl.restoreArchivedNode(NodeRef, NodeRef, QName, QName)public void purgeArchivedNode(org.alfresco.service.cmr.repository.NodeRef archivedNodeRef)
purgeArchivedNode in interface NodeArchiveServicearchivedNodeRef - the archived node to delete.public void purgeArchivedNodes(java.util.List archivedNodes)
NodeArchiveServicepurgeArchivedNodes in interface NodeArchiveServicearchivedNodes - the archived nodes to delete.NodeArchiveServiceImpl.purgeArchivedNode(NodeRef)public void purgeAllArchivedNodes(org.alfresco.service.cmr.repository.StoreRef originalStoreRef)
purgeAllArchivedNodes in interface NodeArchiveServiceoriginalStoreRef - the store that the items originally came fromCopyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.