Class DefaultComponentSpaceQuotaService
- java.lang.Object
-
- org.silverpeas.core.admin.quota.service.AbstractQuotaService<T>
-
- org.silverpeas.core.admin.space.quota.AbstractSpaceQuotaService<ComponentSpaceQuotaKey>
-
- org.silverpeas.core.admin.space.quota.DefaultComponentSpaceQuotaService
-
- All Implemented Interfaces:
QuotaService<ComponentSpaceQuotaKey>
,ComponentSpaceQuotaService
,SpaceQuotaService<ComponentSpaceQuotaKey>
@Service @Singleton public class DefaultComponentSpaceQuotaService extends AbstractSpaceQuotaService<ComponentSpaceQuotaKey> implements ComponentSpaceQuotaService
- Author:
- Yohann Chastagnier
-
-
Constructor Summary
Constructors Constructor Description DefaultComponentSpaceQuotaService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ComponentSpaceQuotaKey
createKeyFrom(SpaceInst space)
Creates a quota key for the specified space.long
getCurrentCount(ComponentSpaceQuotaKey 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.space.quota.AbstractSpaceQuotaService
getQuotaReachedFromSpacePath, verify
-
Methods inherited from class org.silverpeas.core.admin.quota.service.AbstractQuotaService
get, initialize, initialize, initialize, remove, verify, verify, verify, verifyQuota
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.silverpeas.core.admin.quota.service.QuotaService
get, initialize, initialize, initialize, remove, verify, verify, verify, verify
-
Methods inherited from interface org.silverpeas.core.admin.space.quota.SpaceQuotaService
getQuotaReachedFromSpacePath
-
-
-
-
Method Detail
-
createKeyFrom
protected ComponentSpaceQuotaKey createKeyFrom(SpaceInst space)
Description copied from class:AbstractSpaceQuotaService
Creates a quota key for the specified space.- Specified by:
createKeyFrom
in classAbstractSpaceQuotaService<ComponentSpaceQuotaKey>
- Parameters:
space
- a space instance.- Returns:
- the key
-
getCurrentCount
public long getCurrentCount(ComponentSpaceQuotaKey key) throws QuotaException
Description copied from interface:QuotaService
Gets the current count from a given quota key- Specified by:
getCurrentCount
in interfaceQuotaService<ComponentSpaceQuotaKey>
- 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<ComponentSpaceQuotaKey>
- Returns:
- true if activated, false otherwise
-
-