mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
Merged HEAD-QA to HEAD (4.2) (including moving test classes into separate folders)
51903 to 54309 git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@54310 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -361,22 +361,21 @@ public class ContentUsageImpl implements ContentUsageService,
|
||||
if (stores.contains(tenantService.getBaseName(nodeRef.getStoreRef()).toString()) && (! alreadyDeleted(nodeRef)))
|
||||
{
|
||||
// TODO use data dictionary to get content property
|
||||
ContentData contentData = (ContentData)nodeService.getProperty(nodeRef, ContentModel.PROP_CONTENT);
|
||||
ContentData contentData = (ContentData) nodeService.getProperty(nodeRef, ContentModel.PROP_CONTENT);
|
||||
|
||||
if (contentData != null)
|
||||
{
|
||||
long contentSize = contentData.getSize();
|
||||
|
||||
// Get owner/creator
|
||||
String owner = (String)nodeService.getProperty(nodeRef, ContentModel.PROP_ARCHIVED_ORIGINAL_OWNER); // allow for case where someone else is deleting the node
|
||||
if (owner == null)
|
||||
String owner = (String) nodeService.getProperty(nodeRef, ContentModel.PROP_ARCHIVED_ORIGINAL_OWNER); // allow for case where someone else is deleting the node
|
||||
if (owner == null || owner.equals(OwnableService.NO_OWNER))
|
||||
{
|
||||
|
||||
owner = (String)nodeService.getProperty(nodeRef, ContentModel.PROP_OWNER);
|
||||
if ((owner == null) || (owner.equals(OwnableService.NO_OWNER)))
|
||||
{
|
||||
owner = (String)nodeService.getProperty(nodeRef, ContentModel.PROP_CREATOR);
|
||||
}
|
||||
owner = (String) nodeService.getProperty(nodeRef, ContentModel.PROP_OWNER);
|
||||
if ((owner == null) || (owner.equals(OwnableService.NO_OWNER)))
|
||||
{
|
||||
owner = (String) nodeService.getProperty(nodeRef, ContentModel.PROP_CREATOR);
|
||||
}
|
||||
}
|
||||
|
||||
if (contentSize != 0 && owner != null)
|
||||
@@ -524,7 +523,7 @@ public class ContentUsageImpl implements ContentUsageService,
|
||||
{
|
||||
currentUsage = getUserUsage(personNodeRef, false);
|
||||
}
|
||||
return currentUsage;
|
||||
return currentUsage;
|
||||
}
|
||||
|
||||
public long getUserUsage(NodeRef personNodeRef, boolean removeDeltas)
|
||||
|
Reference in New Issue
Block a user