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 intgetAlertThreshold()floatgetPercentage()longgetQuota()longgetQuotaMaxValue()WorkspacegetWorkspace()booleanisAlert()booleanisOver()voidsetAlertThreshold(int alertThreshold)voidsetQuota(long quota)voidsetQuotaMaxValue(long quotaMaxValue)voidsetWorkspace(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()
-
-