|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.silverpeas.quota.model.Quota
@Entity public class Quota
Constructor Summary | |
---|---|
Quota()
|
Method Summary | |
---|---|
Quota |
clone()
|
boolean |
exists()
Indicates if the quota is well registred |
long |
getCount()
|
Long |
getId()
|
QuotaLoad |
getLoad()
Indicates by a basic way the load of the data |
BigDecimal |
getLoadPercentage()
Calculates the load percentage of the quota rounded at two decimals |
BigDecimal |
getLoadRate()
Calculates the load rate of the quota without rounded rounded at 20 decimals |
long |
getMaxCount()
|
long |
getMinCount()
|
String |
getResourceId()
|
Date |
getSaveDate()
|
QuotaType |
getType()
|
boolean |
isReached()
Indicates if the quota is reached or not |
void |
setCount(long count)
|
void |
setId(Long id)
|
void |
setMaxCount(long maxCount)
|
void |
setMaxCount(String maxCount)
|
void |
setMinCount(long minCount)
|
void |
setMinCount(String minCount)
|
void |
setResourceId(String resourceId)
|
void |
setSaveDate(Date saveDate)
|
void |
setType(QuotaType type)
|
void |
setType(String type)
|
String |
toString()
|
void |
validate()
Validates data |
void |
validateBounds()
Validates count data |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Quota()
Method Detail |
---|
public boolean exists()
public void validate() throws QuotaException
QuotaException
public void validateBounds() throws QuotaException
QuotaException
public QuotaLoad getLoad()
public boolean isReached()
public BigDecimal getLoadRate()
public BigDecimal getLoadPercentage()
public Long getId()
public void setId(Long id)
id
- the id to setpublic QuotaType getType()
public void setType(QuotaType type)
type
- the type to setpublic void setType(String type)
type
- the type to setpublic String getResourceId()
public void setResourceId(String resourceId)
resourceId
- the resourceId to setpublic long getMinCount()
public void setMinCount(long minCount)
minCount
- the minCount to setpublic void setMinCount(String minCount) throws QuotaException
minCount
- the minCount to set
QuotaException
public long getMaxCount()
public void setMaxCount(long maxCount)
maxCount
- the maxCount to setpublic void setMaxCount(String maxCount) throws QuotaException
maxCount
- the maxCount to set
QuotaException
public long getCount()
public void setCount(long count)
count
- the count to setpublic Date getSaveDate()
public void setSaveDate(Date saveDate)
saveDate
- the saveDate to setpublic Quota clone()
clone
in class Object
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |