mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-10-01 14:41:46 +00:00
[feature/MNT-24127-EndpointToCalculateFolderSize] Adding endpoints to calculate and retrieve folder size
This commit is contained in:
@@ -367,25 +367,6 @@ public class NodesEntityResource implements
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Providing the response from SimpleCache.
|
|
||||||
*/
|
|
||||||
private Map<String, Object> getResult(Map<String, Object> cachedResult)
|
|
||||||
{
|
|
||||||
Map<String, Object> result;
|
|
||||||
|
|
||||||
if(cachedResult.containsKey("size"))
|
|
||||||
{
|
|
||||||
cachedResult.put(STATUS, COMPLETED);
|
|
||||||
result = cachedResult;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
result = cachedResult;
|
|
||||||
}
|
|
||||||
return result;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Validating node permission [i.e. READ permission should be there ]
|
* Validating node permission [i.e. READ permission should be there ]
|
||||||
*/
|
*/
|
||||||
|
Reference in New Issue
Block a user