|
Last update: 2011-06-23 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.proteios.core.BasicItem<DiskUsageData>
org.proteios.core.DiskUsage
public class DiskUsage
This class is used to represent the disk usage of
DiskConsumable items. The creation, updating
and deletion of items of this type is handled entirely by Base
using the data package.
For each DiskConsuming item there is a corresponding
item of this type.
DiskUsageData| Field Summary | |
|---|---|
static Item |
TYPE
The type of item represented by this class. |
| Method Summary | |
|---|---|
long |
getBytes()
Get the number of bytes the DiskConsumable
item is using. |
Group |
getGroup()
Get the group that owns the DiskConsumable item or null
if ther is none. |
Location |
getLocation()
Get the location of the DiskConsumable item. |
static ItemQuery<DiskUsage> |
getQuery(User user)
Get a query configured to retrieve disk usage for the specified user. |
QuotaType |
getQuotaType()
Get the QuotaType the DiskConsumable item is using. |
Item |
getType()
Get the type of item represented by the object. |
User |
getUser()
Get the user that owns the DiskConsumable item. |
boolean |
isUsed()
Check if this item is used by some other item. |
| Methods inherited from class org.proteios.core.BasicItem |
|---|
checkPermission, equals, getDbControl, getId, getPermissions, getSessionControl, getVersion, hashCode, hasPermission, isDetached, isInDatabase, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final Item TYPE
Item.DISKUSAGE,
getType()| Method Detail |
|---|
public static ItemQuery<DiskUsage> getQuery(User user)
user - The user to retreive disk usage for, null is allowed if
the logged in user has generic READ permission for disk usage in which case
all items will be returned
ItemQuery objectpublic Item getType()
IdentifiableItem enumeration.
public boolean isUsed()
BasicItem
isUsed in class BasicItem<DiskUsageData>
public QuotaType getQuotaType()
throws BaseException
QuotaType the DiskConsumable item is using.
DiskUsage item.
BaseException - If there is any errorpublic Location getLocation()
DiskConsumable item.
Location of this DiskUsage item.public long getBytes()
DiskConsumable
item is using.
DiskUsage item.
public User getUser()
throws BaseException
DiskConsumable item.
user
BaseException - If there is any error
public Group getGroup()
throws BaseException
DiskConsumable item or null
if ther is none.
group
BaseException - If there is any error
|
Last update: 2011-06-23 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||