|
2.17.2: 2011-06-17 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface DiskConsumable
This interface is implemented by items that can use a lot
of disk space. This interface directs the DbControl
object to check the logged in users quota before saving or updating
items.
Method Summary | |
---|---|
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. |
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. |
Methods inherited from interface net.sf.basedb.core.Ownable |
---|
getOwner, isOwner, setOwner, takeOwnership |
Methods inherited from interface net.sf.basedb.core.Identifiable |
---|
getId, getType, getVersion |
Methods inherited from interface net.sf.basedb.core.AccessControlled |
---|
checkPermission, getPermissions, hasPermission |
Method Detail |
---|
boolean useDifference()
getBytes()
,
getDifference()
long getBytes()
useDifference()
,
getDifference()
long getDifference()
useDifference()
returns FALSE.
Location getLocation()
Location
the items is stored at.
String getQuotaTypeSystemId()
QuotaType
system id of this item. It is not allowed
to return the QuotaType.TOTAL
quota type.
|
2.17.2: 2011-06-17 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |