org.silverpeas.admin.space.quota
Class DefaultComponentSpaceQuotaService

java.lang.Object
  extended by org.silverpeas.quota.service.AbstractQuotaService<T>
      extended by org.silverpeas.admin.space.quota.AbstractSpaceQuotaService<ComponentSpaceQuotaKey>
          extended by 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

Constructor Summary
DefaultComponentSpaceQuotaService()
           
 
Method Summary
protected  ComponentSpaceQuotaKey createKeyFrom(SpaceInst space)
          Creates a quota key
 long getCurrentCount(ComponentSpaceQuotaKey key)
          Gets the current count from a given quota key
protected  boolean isActivated()
          Indicates if the type of quota is activated
 
Methods inherited from class org.silverpeas.admin.space.quota.AbstractSpaceQuotaService
getQuotaReachedFromSpacePath, verify
 
Methods inherited from class org.silverpeas.quota.service.AbstractQuotaService
get, initialize, initialize, initialize, remove, verify, verify
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.silverpeas.admin.space.quota.SpaceQuotaService
getQuotaReachedFromSpacePath
 
Methods inherited from interface org.silverpeas.quota.service.QuotaService
get, initialize, initialize, initialize, remove, verify, verify
 

Constructor Detail

DefaultComponentSpaceQuotaService

public DefaultComponentSpaceQuotaService()
Method Detail

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.