|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.olat.core.util.vfs.QuotaManager
org.olat.admin.quota.QuotaManagerImpl
public class QuotaManagerImpl
Initial Date: 23.05.2007
| Method Summary | |
|---|---|
Quota |
createQuota(java.lang.String path,
java.lang.Long quotaKB,
java.lang.Long ulLimitKB)
Create a quota object (transient, not yet stored) |
boolean |
deleteCustomQuota(Quota quota)
|
Quota |
getCustomQuota(java.lang.String path)
Get the quota (in KB) for this path. |
Quota |
getCustomQuotaOrDefaultDependingOnRole(Identity identity,
java.lang.String relPath)
call to get appropriate quota depending on role. |
Quota |
getDefaultQuota(java.lang.String identifyer)
Get the default quota for the given identifyer or NULL if no such quota found |
Quota |
getDefaultQuotaDependingOnRole(Identity identity)
call to get appropriate quota depending on role. |
java.util.Set |
getDefaultQuotaIdentifyers()
Get the identifyers for the default quotas |
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. |
int |
getUploadLimitKB(long quotaKB2,
long uploadLimitKB2,
VFSContainer currentContainer2)
Return upload-limit depending on quota-limit and upload-limit values. |
void |
init()
Initialize the |
boolean |
isValidQuotaPath(java.lang.String path)
Check if a quota path is valid |
java.util.List |
listCustomQuotasKB()
Get a list of all objects which have an individual quota. |
void |
setCustomQuotaKB(Quota quota)
Sets or updates the quota (in KB) for this path. |
| Methods inherited from class org.olat.core.util.vfs.QuotaManager |
|---|
getInstance |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public Quota createQuota(java.lang.String path,
java.lang.Long quotaKB,
java.lang.Long ulLimitKB)
QuotaManager
createQuota in class QuotaManagerQuotaManager.createQuota(java.lang.String, java.lang.Long, java.lang.Long)public void init()
init in class QuotaManagerpublic java.util.Set getDefaultQuotaIdentifyers()
getDefaultQuotaIdentifyers in class QuotaManagerpublic Quota getDefaultQuota(java.lang.String identifyer)
getDefaultQuota in class QuotaManageridentifyer -
public Quota getCustomQuota(java.lang.String path)
getCustomQuota in class QuotaManagerpath -
public void setCustomQuotaKB(Quota quota)
setCustomQuotaKB in class QuotaManagerquota - public boolean deleteCustomQuota(Quota quota)
deleteCustomQuota in class QuotaManagerquota - to be deleted
public java.util.List listCustomQuotasKB()
listCustomQuotasKB in class QuotaManagerpublic Quota getDefaultQuotaDependingOnRole(Identity identity)
getDefaultQuotaDependingOnRole in class QuotaManageridentity -
public Quota getCustomQuotaOrDefaultDependingOnRole(Identity identity,
java.lang.String relPath)
getCustomQuotaOrDefaultDependingOnRole in class QuotaManageridentity -
public int getUploadLimitKB(long quotaKB2,
long uploadLimitKB2,
VFSContainer currentContainer2)
getUploadLimitKB in class QuotaManagerquotaKB2 - Quota limit in KB, can be Quota.UNLIMITEDuploadLimitKB2 - Upload limit in KB, can be Quota.UNLIMITEDcurrentContainer2 - Upload container (folder)
public boolean isValidQuotaPath(java.lang.String path)
isValidQuotaPath in class QuotaManagerpath -
public Controller getQuotaEditorInstance(UserRequest ureq,
WindowControl wControl,
java.lang.String relPath,
boolean modalMode)
QuotaManagerThe controller must fire the following events:
getQuotaEditorInstance in class QuotaManagerQuotaManager.getQuotaEditorInstance(org.olat.core.gui.UserRequest, org.olat.core.gui.control.WindowControl, java.lang.String, boolean)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||