mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
RM: prevent publication of changes if node no longer exists
* fix occasional build failure git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/HEAD@54106 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -96,6 +96,8 @@ public class PublishUpdatesJobExecuter extends RecordsManagementJobExecuter
|
||||
|
||||
// Deal with each updated disposition action in turn
|
||||
for (NodeRef nodeRef : nodeRefs)
|
||||
{
|
||||
if (nodeService.exists(nodeRef) == true)
|
||||
{
|
||||
// Mark the update node as publishing in progress
|
||||
markPublishInProgress(nodeRef);
|
||||
@@ -129,6 +131,7 @@ public class PublishUpdatesJobExecuter extends RecordsManagementJobExecuter
|
||||
unmarkPublishInProgress(nodeRef);
|
||||
}
|
||||
}
|
||||
}
|
||||
return null;
|
||||
};
|
||||
}, AuthenticationUtil.getSystemUserName());
|
||||
@@ -208,10 +211,13 @@ public class PublishUpdatesJobExecuter extends RecordsManagementJobExecuter
|
||||
|
||||
behaviourFilter.disableBehaviour(nodeRef, TYPE_DISPOSITION_ACTION_DEFINITION);
|
||||
try
|
||||
{
|
||||
if (nodeService.exists(nodeRef) == true)
|
||||
{
|
||||
// Mark the node as publish in progress
|
||||
nodeService.setProperty(nodeRef, PROP_PUBLISH_IN_PROGRESS, true);
|
||||
}
|
||||
}
|
||||
finally
|
||||
{
|
||||
behaviourFilter.enableBehaviour(nodeRef, TYPE_DISPOSITION_ACTION_DEFINITION);
|
||||
|
Reference in New Issue
Block a user