Package com.jalios.jcms.quota
Class QuotaElement
- java.lang.Object
-
- com.jalios.jcms.quota.QuotaElement
-
public class QuotaElement extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description QuotaElement(Workspace workspace, long quota, long quotaMaxValue, int alertThreshold)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getAlertThreshold()
float
getPercentage()
long
getQuota()
long
getQuotaMaxValue()
Workspace
getWorkspace()
boolean
isAlert()
boolean
isOver()
void
setAlertThreshold(int alertThreshold)
void
setQuota(long quota)
void
setQuotaMaxValue(long quotaMaxValue)
void
setWorkspace(Workspace workspace)
-
-
-
Constructor Detail
-
QuotaElement
public QuotaElement(Workspace workspace, long quota, long quotaMaxValue, int alertThreshold)
-
-
Method Detail
-
getWorkspace
public Workspace getWorkspace()
-
setWorkspace
public void setWorkspace(Workspace workspace)
-
getQuota
public long getQuota()
-
setQuota
public void setQuota(long quota)
-
getQuotaMaxValue
public long getQuotaMaxValue()
-
setQuotaMaxValue
public void setQuotaMaxValue(long quotaMaxValue)
-
getAlertThreshold
public int getAlertThreshold()
-
setAlertThreshold
public void setAlertThreshold(int alertThreshold)
-
isAlert
public boolean isAlert()
-
isOver
public boolean isOver()
-
getPercentage
public float getPercentage()
-
-