|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface NodeArchiveService
A service interface providing methods that map onto the low-level node restore functionality.
Field Summary | |
---|---|
static org.alfresco.service.namespace.QName |
QNAME_ARCHIVED_ITEM
Static 'sys:archivedItem' path for all archived nodes. |
Method Summary | |
---|---|
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)
Permanently delete all archived nodes. |
void |
purgeArchivedNode(org.alfresco.service.cmr.repository.NodeRef archivedNodeRef)
Permanently delete the archived node. |
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: no longer supported as it seldom works due to missing parents |
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: no longer supported as it seldom works due to missing parents |
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)
Attempt to restore the given archived node into a new location. |
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. |
Field Detail |
---|
static final org.alfresco.service.namespace.QName QNAME_ARCHIVED_ITEM
Method Detail |
---|
org.alfresco.service.cmr.repository.NodeRef getStoreArchiveNode(org.alfresco.service.cmr.repository.StoreRef originalStoreRef)
storeRef
- the original store of the archived nodes. This is the
store where the currently archived nodes could originally be found.
org.alfresco.service.cmr.repository.NodeRef getArchivedNode(org.alfresco.service.cmr.repository.NodeRef originalNodeRef)
originalNodeRef
- the original node reference
RestoreNodeReport restoreArchivedNode(org.alfresco.service.cmr.repository.NodeRef archivedNodeRef)
TRANSACTIONS: This method will execute in a new transaction.
archivedNodeRef
- the node's reference in the archive
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)
TRANSACTIONS: This method will execute in a new transaction.
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
java.util.List restoreArchivedNodes(java.util.List archivedNodeRefs)
TRANSACTIONS: This method will execute in a new transaction.
archivedNodeRefs
- the nodes' references in the archive. These
must be valid.
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)
TRANSACTIONS: This method will execute in a new transaction.
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
java.util.List restoreAllArchivedNodes(org.alfresco.service.cmr.repository.StoreRef originalStoreRef)
TRANSACTIONS: This method will execute in a new transaction.
originalStoreRef
- the store that the items originally came from
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)
TRANSACTIONS: This method will execute in a new transaction.
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
void purgeArchivedNode(org.alfresco.service.cmr.repository.NodeRef archivedNodeRef)
archivedNodeRef
- the archived node to delete.void purgeArchivedNodes(java.util.List archivedNodes)
archivedNodes
- the archived nodes to delete.void purgeAllArchivedNodes(org.alfresco.service.cmr.repository.StoreRef originalStoreRef)
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 |