org.silverpeas.admin.space.quota
Class DefaultComponentSpaceQuotaService
java.lang.Object
org.silverpeas.quota.service.AbstractQuotaService<T>
org.silverpeas.admin.space.quota.AbstractSpaceQuotaService<ComponentSpaceQuotaKey>
org.silverpeas.admin.space.quota.DefaultComponentSpaceQuotaService
- All Implemented Interfaces:
- ComponentSpaceQuotaService, SpaceQuotaService<ComponentSpaceQuotaKey>, QuotaService<ComponentSpaceQuotaKey>
@Service
public class DefaultComponentSpaceQuotaService
- extends AbstractSpaceQuotaService<ComponentSpaceQuotaKey>
- implements ComponentSpaceQuotaService
- Author:
- Yohann Chastagnier
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultComponentSpaceQuotaService
public DefaultComponentSpaceQuotaService()
createKeyFrom
protected ComponentSpaceQuotaKey createKeyFrom(SpaceInst space)
- Description copied from class:
AbstractSpaceQuotaService
- Creates a quota key
- Specified by:
createKeyFrom
in class AbstractSpaceQuotaService<ComponentSpaceQuotaKey>
- Returns:
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 interface QuotaService<ComponentSpaceQuotaKey>
- Returns:
-
- Throws:
QuotaException
isActivated
protected boolean isActivated()
- Description copied from class:
AbstractQuotaService
- Indicates if the type of quota is activated
- Specified by:
isActivated
in class AbstractQuotaService<ComponentSpaceQuotaKey>
- Returns:
Copyright © 2016 Silverpeas. All Rights Reserved.