Class UserDomainQuotaService
- java.lang.Object
-
- org.silverpeas.core.admin.quota.service.AbstractQuotaService<UserDomainQuotaKey>
-
- org.silverpeas.core.admin.domain.quota.UserDomainQuotaService
-
- All Implemented Interfaces:
QuotaService<UserDomainQuotaKey>
@Service @Singleton public class UserDomainQuotaService extends AbstractQuotaService<UserDomainQuotaKey>
- Author:
- Yohann Chastagnier
-
-
Constructor Summary
Constructors Constructor Description UserDomainQuotaService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
getCurrentCount(UserDomainQuotaKey key)
Gets the current count from a given quota keyprotected boolean
isActivated()
Indicates if the type of quota is activated-
Methods inherited from class org.silverpeas.core.admin.quota.service.AbstractQuotaService
get, initialize, initialize, initialize, remove, verify, verify, verify, verify, verifyQuota
-
-
-
-
Method Detail
-
getCurrentCount
public long getCurrentCount(UserDomainQuotaKey key) throws QuotaException
Description copied from interface:QuotaService
Gets the current count from a given quota key- Parameters:
key
- the key- Returns:
- the current count
- Throws:
QuotaException
- on error
-
isActivated
protected boolean isActivated()
Description copied from class:AbstractQuotaService
Indicates if the type of quota is activated- Specified by:
isActivated
in classAbstractQuotaService<UserDomainQuotaKey>
- Returns:
- true if activated, false otherwise
-
-