mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-10-15 15:02:20 +00:00
ACE-2179, fix TestCMIS test, MultiTNodeServiceInterceptor throws an exception when it tries to intercept a deleted node.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@76129 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -207,7 +207,8 @@ public class ActivityPosterImpl implements ActivityPoster, InitializingBean
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
postFileFolderActivity((isFolder ? ActivityType.FOLDER_ADDED : ActivityType.FILE_ADDED), path, parentNodeRef, nodeRef, siteId, name);
|
FileInfo fileInfo = fileFolderService.getFileInfo(nodeRef);
|
||||||
|
postFileFolderActivity((isFolder ? ActivityType.FOLDER_ADDED : ActivityType.FILE_ADDED), path, parentNodeRef, nodeRef, siteId, name, fileInfo);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -229,7 +230,8 @@ public class ActivityPosterImpl implements ActivityPoster, InitializingBean
|
|||||||
|
|
||||||
if (!isFolder)
|
if (!isFolder)
|
||||||
{
|
{
|
||||||
postFileFolderActivity(ActivityType.FILE_UPDATED, null, null, nodeRef, siteId, fileName);
|
FileInfo fileInfo = fileFolderService.getFileInfo(nodeRef);
|
||||||
|
postFileFolderActivity(ActivityType.FILE_UPDATED, null, null, nodeRef, siteId, fileName, fileInfo);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -245,7 +247,7 @@ public class ActivityPosterImpl implements ActivityPoster, InitializingBean
|
|||||||
{
|
{
|
||||||
// post only for nodes within sites
|
// post only for nodes within sites
|
||||||
postFileFolderActivity((activityInfo.isFolder() ? ActivityType.FOLDER_DELETED : ActivityType.FILE_DELETED), activityInfo.getParentPath(), activityInfo.getParentNodeRef(), activityInfo.getNodeRef(),
|
postFileFolderActivity((activityInfo.isFolder() ? ActivityType.FOLDER_DELETED : ActivityType.FILE_DELETED), activityInfo.getParentPath(), activityInfo.getParentNodeRef(), activityInfo.getNodeRef(),
|
||||||
activityInfo.getSiteId(), activityInfo.getFileName());
|
activityInfo.getSiteId(), activityInfo.getFileName(), null);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -288,10 +290,10 @@ public class ActivityPosterImpl implements ActivityPoster, InitializingBean
|
|||||||
NodeRef parentNodeRef,
|
NodeRef parentNodeRef,
|
||||||
NodeRef nodeRef,
|
NodeRef nodeRef,
|
||||||
String siteId,
|
String siteId,
|
||||||
String name)
|
String name,
|
||||||
|
FileInfo fileInfo)
|
||||||
{
|
{
|
||||||
JSONObject json = createActivityJSON(getCurrentTenantDomain(), path, parentNodeRef, nodeRef, name);
|
JSONObject json = createActivityJSON(getCurrentTenantDomain(), path, parentNodeRef, nodeRef, name);
|
||||||
FileInfo fileInfo = fileFolderService.getFileInfo(nodeRef);
|
|
||||||
|
|
||||||
activityService.postActivity(
|
activityService.postActivity(
|
||||||
activityType,
|
activityType,
|
||||||
|
Reference in New Issue
Block a user