Last update: 2011-06-23

org.proteios.core
Interface DiskConsumable

All Superinterfaces:
AccessControlled, Controlled, Identifiable, Ownable
All Known Implementing Classes:
File

public interface DiskConsumable
extends Controlled, Ownable

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.

Version:
2.0
Author:
Nicklas
Last modified
$Date: 2009-04-09 08:48:11 +0200 (Thu, 09 Apr 2009) $

Method Summary
 Location getLocation()
          Get the Location the items is stored at.
 String getQuotaTypeSystemId()
          Get the QuotaType system id of this item.
 long getSizeInBytes()
          Get the number of bytes this item uses.
 
Methods inherited from interface org.proteios.core.Ownable
getOwner, setOwner
 
Methods inherited from interface org.proteios.core.Identifiable
getId, getType, getVersion
 
Methods inherited from interface org.proteios.core.AccessControlled
checkPermission, hasPermission
 

Method Detail

getSizeInBytes

long getSizeInBytes()
Get the number of bytes this item uses.

Returns:
The number of bytes.

getLocation

Location getLocation()
Get the Location the items is stored at.

Returns:
The location

getQuotaTypeSystemId

String getQuotaTypeSystemId()
Get the QuotaType system id of this item. It is not allowed to return the QuotaType.TOTAL quota type.

Returns:
The systemid of the QuotaType

Last update: 2011-06-23