public interface DiskConsumable extends Controlled, Ownable
DbControl
object to check the logged in users quota before saving or updating
items.Modifier and Type | Method and Description |
---|---|
long |
getBytes()
Get the absolute number of bytes this item uses.
|
long |
getDifference()
Get the number of bytes this items now is using compared to when it was
loaded from the database.
|
Location |
getLocation()
Get the
Location the items is stored at. |
java.lang.String |
getQuotaTypeSystemId()
Get the
QuotaType system id of this item. |
boolean |
useDifference()
If this item reports the difference in used bytes or the absolute
number.
|
getOwner, isOwner, setOwner, takeOwnership
getId, getType, getVersion
checkPermission, getPermissions, hasPermission
boolean useDifference()
getBytes()
,
getDifference()
long getBytes()
useDifference()
,
getDifference()
long getDifference()
useDifference()
returns FALSE.java.lang.String getQuotaTypeSystemId()
QuotaType
system id of this item. It is not allowed
to return the QuotaType.TOTAL
quota type.