Package org.opencms.file.quota
Class CmsFolderReportEntry
java.lang.Object
org.opencms.file.quota.CmsFolderReportEntry
Information about a folder's size.
-
Constructor Summary
ConstructorsConstructorDescriptionCmsFolderReportEntry
(long treeSize, long treeSizeExclusive) Creates a new entry. -
Method Summary
Modifier and TypeMethodDescriptionlong
Gets the total sum of file sizes in the subtree starting at this folder.long
Gets the total sum of file sizes in the subtree starting at this folder, but excluding the contents of other requested folders.toString()
-
Constructor Details
-
CmsFolderReportEntry
Creates a new entry.- Parameters:
treeSize
- the total tree sizetreeSizeExclusive
- the total tree size without any subtrees corresponding to folders that have also been requested in the report
-
-
Method Details
-
getTreeSize
Gets the total sum of file sizes in the subtree starting at this folder.- Returns:
- the file size sum
-
getTreeSizeExclusive
Gets the total sum of file sizes in the subtree starting at this folder, but excluding the contents of other requested folders.- Returns:
- the exclusive tree size
-
toString
-