|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.olat.core.util.vfs.QuotaManager
public abstract class QuotaManager
Initial Date: Feb 17, 2004
, Florian Gnägi
Comment: Refactoring to core package make default quotas generic
| Constructor Summary | |
|---|---|
QuotaManager()
|
|
| Method Summary | |
|---|---|
abstract Quota |
createQuota(java.lang.String path,
java.lang.Long quotaKB,
java.lang.Long ulLimitKB)
Create a quota object (transient, not yet stored) |
abstract boolean |
deleteCustomQuota(Quota quota)
|
abstract Quota |
getCustomQuota(java.lang.String path)
Get the quota (in KB) for this path. |
abstract Quota |
getCustomQuotaOrDefaultDependingOnRole(Identity identity,
java.lang.String relPath)
call to get appropriate quota depending on role. |
abstract Quota |
getDefaultQuota(java.lang.String identifyer)
Get the default quota for the given identifyer or NULL if no such quota found |
abstract Quota |
getDefaultQuotaDependingOnRole(Identity identity)
call to get appropriate quota depending on role. |
abstract java.util.Set |
getDefaultQuotaIdentifyers()
Get the identifyers for the default quotas |
static QuotaManager |
getInstance()
|
abstract Controller |
getQuotaEditorInstance(UserRequest ureq,
WindowControl wControl,
java.lang.String relPath,
boolean modalMode)
Factory method to create a controller that is capable of editing the quota for the given path. |
abstract int |
getUploadLimitKB(long quotaKB2,
long uploadLimitKB2,
VFSContainer currentContainer2)
Return upload-limit depending on quota-limit and upload-limit values. |
abstract void |
init()
Initialize the |
abstract boolean |
isValidQuotaPath(java.lang.String path)
Check if a quota path is valid |
abstract java.util.List |
listCustomQuotasKB()
Get a list of all objects which have an individual quota. |
abstract void |
setCustomQuotaKB(Quota quota)
Sets or updates the quota (in KB) for this path. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public QuotaManager()
| Method Detail |
|---|
public static QuotaManager getInstance()
public abstract Quota createQuota(java.lang.String path,
java.lang.Long quotaKB,
java.lang.Long ulLimitKB)
path - quotaKB - ulLimitKB -
public abstract void init()
public abstract java.util.Set getDefaultQuotaIdentifyers()
public abstract Quota getDefaultQuota(java.lang.String identifyer)
identifyer -
public abstract Quota getCustomQuota(java.lang.String path)
path -
public abstract void setCustomQuotaKB(Quota quota)
quota - public abstract boolean deleteCustomQuota(Quota quota)
quota - to be deleted
public abstract java.util.List listCustomQuotasKB()
public abstract Quota getDefaultQuotaDependingOnRole(Identity identity)
identity -
public abstract Quota getCustomQuotaOrDefaultDependingOnRole(Identity identity,
java.lang.String relPath)
identity -
public abstract int getUploadLimitKB(long quotaKB2,
long uploadLimitKB2,
VFSContainer currentContainer2)
quotaKB2 - Quota limit in KB, can be Quota.UNLIMITEDuploadLimitKB2 - Upload limit in KB, can be Quota.UNLIMITEDcurrentContainer2 - Upload container (folder)
public abstract boolean isValidQuotaPath(java.lang.String path)
path -
public abstract Controller getQuotaEditorInstance(UserRequest ureq,
WindowControl wControl,
java.lang.String relPath,
boolean modalMode)
The controller must fire the following events:
ureq - wControl - relPath - modalMode -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||