org.silverpeas.quota.service
Class TestQuotaService

java.lang.Object
  extended by org.silverpeas.quota.service.AbstractQuotaService<TestQuotaKey>
      extended by org.silverpeas.quota.service.TestQuotaService
All Implemented Interfaces:
QuotaService<TestQuotaKey>, TestQuotaServiceWithAdditionalTools

@Service
public class TestQuotaService
extends AbstractQuotaService<TestQuotaKey>
implements TestQuotaServiceWithAdditionalTools

Author:
Yohann Chastagnier

Constructor Summary
TestQuotaService()
           
 
Method Summary
 int getCount()
           
 long getCurrentCount(TestQuotaKey key)
           
protected  boolean isActivated()
           
 void setCount(int count)
           
 
Methods inherited from class org.silverpeas.quota.service.AbstractQuotaService
get, initialize, initialize, initialize, remove, verify, 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.quota.service.QuotaService
get, initialize, initialize, initialize, remove, verify, verify
 

Constructor Detail

TestQuotaService

public TestQuotaService()
Method Detail

getCurrentCount

public long getCurrentCount(TestQuotaKey key)
Specified by:
getCurrentCount in interface QuotaService<TestQuotaKey>

getCount

public int getCount()
Specified by:
getCount in interface TestQuotaServiceWithAdditionalTools
Returns:
the count

setCount

public void setCount(int count)
Specified by:
setCount in interface TestQuotaServiceWithAdditionalTools
Parameters:
count - the count to set

isActivated

protected boolean isActivated()
Specified by:
isActivated in class AbstractQuotaService<TestQuotaKey>


Copyright © 2016 Silverpeas. All Rights Reserved.