|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.alfresco.repo.node.archive.NodeArchiveServiceImpl
public class NodeArchiveServiceImpl
Implementation of the node archive abstraction.
Constructor Summary | |
---|---|
NodeArchiveServiceImpl()
|
Method Summary | |
---|---|
NodeRef |
getArchivedNode(NodeRef originalNodeRef)
Get the likely node reference for the original node. |
NodeRef |
getStoreArchiveNode(StoreRef originalStoreRef)
Get the parent node that holds all nodes archived from the given store. |
void |
purgeAllArchivedNodes(StoreRef originalStoreRef)
Permanently delete all archived nodes. |
void |
purgeArchivedNode(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(StoreRef originalStoreRef)
Attempt to restore all archived nodes into their original locations. |
java.util.List |
restoreAllArchivedNodes(StoreRef originalStoreRef,
NodeRef destinationNodeRef,
QName assocTypeQName,
QName assocQName)
Finds the archive location for nodes that were deleted from the given store and attempt to restore each node. |
RestoreNodeReport |
restoreArchivedNode(NodeRef archivedNodeRef)
Attempt to restore the given archived node into its original location. |
RestoreNodeReport |
restoreArchivedNode(NodeRef archivedNodeRef,
NodeRef destinationNodeRef,
QName assocTypeQName,
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,
NodeRef destinationNodeRef,
QName assocTypeQName,
QName assocQName)
Attempt to restore a list of archived nodes into a new location. |
void |
setNodeService(NodeService nodeService)
|
void |
setSearchService(SearchService searchService)
|
void |
setTransactionService(TransactionService transactionService)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public NodeArchiveServiceImpl()
Method Detail |
---|
public void setNodeService(NodeService nodeService)
public void setTransactionService(TransactionService transactionService)
public void setSearchService(SearchService searchService)
public NodeRef getStoreArchiveNode(StoreRef originalStoreRef)
NodeArchiveService
getStoreArchiveNode
in interface NodeArchiveService
public NodeRef getArchivedNode(NodeRef originalNodeRef)
NodeArchiveService
getArchivedNode
in interface NodeArchiveService
originalNodeRef
- the original node reference
public RestoreNodeReport restoreArchivedNode(NodeRef archivedNodeRef, NodeRef destinationNodeRef, QName assocTypeQName, 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 NodeArchiveService
archivedNodeRef
- 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 name
public RestoreNodeReport restoreArchivedNode(NodeRef archivedNodeRef)
NodeArchiveService
TRANSACTIONS: This method will execute in a new transaction.
restoreArchivedNode
in interface NodeArchiveService
archivedNodeRef
- the node's reference in the archive
NodeArchiveServiceImpl.restoreArchivedNode(NodeRef, NodeRef, QName, QName)
public java.util.List restoreArchivedNodes(java.util.List archivedNodeRefs)
NodeArchiveService
TRANSACTIONS: This method will execute in a new transaction.
restoreArchivedNodes
in interface NodeArchiveService
archivedNodeRefs
- 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, NodeRef destinationNodeRef, QName assocTypeQName, QName assocQName)
NodeArchiveService
TRANSACTIONS: This method will execute in a new transaction.
restoreArchivedNodes
in interface NodeArchiveService
archivedNodeRefs
- 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 names
NodeArchiveServiceImpl.restoreArchivedNode(NodeRef, NodeRef, QName, QName)
public java.util.List restoreAllArchivedNodes(StoreRef originalStoreRef)
NodeArchiveService
TRANSACTIONS: This method will execute in a new transaction.
restoreAllArchivedNodes
in interface NodeArchiveService
originalStoreRef
- the store that the items originally came from
NodeArchiveServiceImpl.restoreAllArchivedNodes(StoreRef, NodeRef, QName, QName)
public java.util.List restoreAllArchivedNodes(StoreRef originalStoreRef, NodeRef destinationNodeRef, QName assocTypeQName, QName assocQName)
restoreAllArchivedNodes
in interface NodeArchiveService
originalStoreRef
- 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 names
NodeService.getStoreArchiveNode(StoreRef)
,
NodeArchiveServiceImpl.restoreArchivedNode(NodeRef, NodeRef, QName, QName)
public void purgeArchivedNode(NodeRef archivedNodeRef)
purgeArchivedNode
in interface NodeArchiveService
archivedNodeRef
- the archived node to delete.public void purgeArchivedNodes(java.util.List archivedNodes)
NodeArchiveService
purgeArchivedNodes
in interface NodeArchiveService
archivedNodes
- the archived nodes to delete.NodeArchiveServiceImpl.purgeArchivedNode(NodeRef)
public void purgeAllArchivedNodes(StoreRef originalStoreRef)
NodeArchiveService
purgeAllArchivedNodes
in interface NodeArchiveService
originalStoreRef
- the store that the items originally came from
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |