public interface IUserDiskUsage
Modifier and Type | Method and Description |
---|---|
long |
getCurrentDiskUsage(long userId)
Gets the current disk usage, in bytes
|
long |
getDiskUsageLimit(long userId)
Gets the disk usage limit, in bytes
|
boolean |
isMaxDiskUsageReached(long userId)
Checks if maximum disk usage is reached.
|
boolean |
setDiskUsageLimit(long userId,
long maxDiskUsageBytes)
Sets the disk usage limit, in bytes
|
boolean isMaxDiskUsageReached(long userId) throws SurveySystemException
userId
- User who is being checkedSurveySystemException
long getCurrentDiskUsage(long userId) throws SurveySystemException
userId
- id of user to get the disk usage for.SurveySystemException
boolean setDiskUsageLimit(long userId, long maxDiskUsageBytes) throws SurveySystemException
userId
- The user to set the new usage limit formaxDiskUsageBytes
- The new disk usage limit, in bytes. If value is 0 or less, the value
will be ignored and the current default will be used instead.SurveySystemException
long getDiskUsageLimit(long userId) throws SurveySystemException
userId
- The id of user to get disk usage limit.SurveySystemException
Built on January 26 2024