mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-31 17:39:05 +00:00
RM: Fix build
* double check existance of node ref prior to work git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/BRANCHES/V2.0@56793 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -97,37 +97,41 @@ public class PublishUpdatesJobExecuter extends RecordsManagementJobExecuter
|
|||||||
// Deal with each updated disposition action in turn
|
// Deal with each updated disposition action in turn
|
||||||
for (NodeRef nodeRef : nodeRefs)
|
for (NodeRef nodeRef : nodeRefs)
|
||||||
{
|
{
|
||||||
// Mark the update node as publishing in progress
|
// double check that the node in question still exists
|
||||||
markPublishInProgress(nodeRef);
|
if (nodeService.exists(nodeRef) == true)
|
||||||
try
|
{
|
||||||
{
|
// Mark the update node as publishing in progress
|
||||||
Date start = new Date();
|
markPublishInProgress(nodeRef);
|
||||||
if (logger.isDebugEnabled() == true)
|
try
|
||||||
{
|
{
|
||||||
logger.debug("Starting publish of updates ...");
|
Date start = new Date();
|
||||||
logger.debug(" - for " + nodeRef.toString());
|
if (logger.isDebugEnabled() == true)
|
||||||
logger.debug(" - at " + start.toString());
|
{
|
||||||
}
|
logger.debug("Starting publish of updates ...");
|
||||||
|
logger.debug(" - for " + nodeRef.toString());
|
||||||
|
logger.debug(" - at " + start.toString());
|
||||||
|
}
|
||||||
|
|
||||||
// Publish updates
|
// Publish updates
|
||||||
publishUpdates(nodeRef);
|
publishUpdates(nodeRef);
|
||||||
|
|
||||||
|
|
||||||
if (logger.isDebugEnabled() == true)
|
if (logger.isDebugEnabled() == true)
|
||||||
{
|
{
|
||||||
Date end = new Date();
|
Date end = new Date();
|
||||||
long duration = end.getTime() - start.getTime();
|
long duration = end.getTime() - start.getTime();
|
||||||
logger.debug("Completed publish of updates ...");
|
logger.debug("Completed publish of updates ...");
|
||||||
logger.debug(" - for " + nodeRef.toString());
|
logger.debug(" - for " + nodeRef.toString());
|
||||||
logger.debug(" - at " + end.toString());
|
logger.debug(" - at " + end.toString());
|
||||||
logger.debug(" - duration " + Long.toString(duration));
|
logger.debug(" - duration " + Long.toString(duration));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
finally
|
finally
|
||||||
{
|
{
|
||||||
// Ensure the update node has either completed the publish or is marked as no longer in progress
|
// Ensure the update node has either completed the publish or is marked as no longer in progress
|
||||||
unmarkPublishInProgress(nodeRef);
|
unmarkPublishInProgress(nodeRef);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return null;
|
return null;
|
||||||
};
|
};
|
||||||
|
Reference in New Issue
Block a user