Package org.nuxeo.ecm.quota.count
Class QuotaStatsNonFolderishCountAdapter
- java.lang.Object
-
- org.nuxeo.ecm.quota.count.QuotaStatsNonFolderishCountAdapter
-
- All Implemented Interfaces:
QuotaStats
,QuotaStatsNonFolderishCount
public class QuotaStatsNonFolderishCountAdapter extends Object implements QuotaStatsNonFolderishCount
Adapter implementingQuotaStatsNonFolderishCount
to have information about children and descendants count.- Since:
- 5.5
- Author:
- Thomas Roger
-
-
Constructor Summary
Constructors Constructor Description QuotaStatsNonFolderishCountAdapter(DocumentModel doc)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
getChildren()
Returns the cardinal value of all the children of the underlying document.long
getIntrinsic()
Returns the intrinsic cardinal value of the underlying document.long
getTotal()
Returns the cardinal value of all the descendants of the underlying document.
-
-
-
Constructor Detail
-
QuotaStatsNonFolderishCountAdapter
public QuotaStatsNonFolderishCountAdapter(DocumentModel doc)
-
-
Method Detail
-
getIntrinsic
public long getIntrinsic()
Description copied from interface:QuotaStats
Returns the intrinsic cardinal value of the underlying document.- Specified by:
getIntrinsic
in interfaceQuotaStats
-
getChildren
public long getChildren()
Description copied from interface:QuotaStats
Returns the cardinal value of all the children of the underlying document.- Specified by:
getChildren
in interfaceQuotaStats
-
getTotal
public long getTotal()
Description copied from interface:QuotaStats
Returns the cardinal value of all the descendants of the underlying document. plus the value ofQuotaStats.getIntrinsic()
.- Specified by:
getTotal
in interfaceQuotaStats
-
-