mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-10-01 14:41:46 +00:00
[feature/MNT-24127-EndpointToCalculateFolderSize] Added endpoint to calculate folder size
This commit is contained in:
@@ -25,13 +25,13 @@
|
||||
*/
|
||||
package org.alfresco.rest.framework.resource.actions.interfaces;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import org.alfresco.rest.framework.core.exceptions.RelationshipResourceNotFoundException;
|
||||
import org.alfresco.rest.framework.resource.parameters.CollectionWithPagingInfo;
|
||||
import org.alfresco.rest.framework.resource.parameters.Parameters;
|
||||
import org.alfresco.rest.framework.webscripts.WithResponse;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* Permissible actions for an Relationship Resources
|
||||
* Based around CRUD - Create, ReadAll, ReadById, Update, Delete, DeleteSet
|
||||
@@ -163,5 +163,4 @@ public interface RelationshipResourceAction
|
||||
*/
|
||||
public void deleteSet(String entityResourceId, Parameters params, WithResponse withResponse);
|
||||
}
|
||||
|
||||
}
|
||||
|
@@ -141,6 +141,7 @@ public class NodeSizeActionExecuter extends ActionExecuterAbstractBase
|
||||
});
|
||||
|
||||
totalSizeFromFacet+=resultSize.longValue();
|
||||
resultSize.set(0);
|
||||
|
||||
if (results.getFieldFacet(FIELD_FACET).size() <= totalItems || results.getFieldFacet(FIELD_FACET).size() <= maxItems)
|
||||
{
|
||||
|
Reference in New Issue
Block a user