mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
Replication Definition deletion support + unit test
(Disabled) unit test for edit/save/load/edit/save of replication definitions, so that Derek can look at why the node service breaks for this git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@21093 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -141,6 +141,15 @@ public class ReplicationDefinitionPersisterImpl implements ReplicationDefinition
|
||||
runtimeActionService.saveActionImpl(actionNodeRef, replicationAction);
|
||||
}
|
||||
|
||||
public void deleteReplicationDefinition(ReplicationDefinition replicationAction)
|
||||
{
|
||||
QName actionName = replicationAction.getReplicationName();
|
||||
NodeRef actionNode = findActionNode(actionName);
|
||||
if(actionNode != null) {
|
||||
nodeService.deleteNode(actionNode);
|
||||
}
|
||||
}
|
||||
|
||||
private NodeRef findActionNode(QName replicationDefinitionName)
|
||||
{
|
||||
checkReplicationActionRootNodeExists();
|
||||
|
Reference in New Issue
Block a user