com.liferay.counter.service.impl
Class CounterServiceImpl

java.lang.Object
  extended by com.liferay.counter.service.impl.CounterServiceImpl
All Implemented Interfaces:
com.liferay.counter.service.CounterService

public class CounterServiceImpl
extends java.lang.Object
implements com.liferay.counter.service.CounterService

View Source

Author:
Brian Wing Shun Chan

Constructor Summary
CounterServiceImpl()
           
 
Method Summary
 java.util.List<java.lang.String> getNames()
           
 long increment()
           
 long increment(java.lang.String name)
           
 long increment(java.lang.String name, int size)
           
 void rename(java.lang.String oldName, java.lang.String newName)
           
 void reset(java.lang.String name)
           
 void reset(java.lang.String name, long size)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CounterServiceImpl

public CounterServiceImpl()
Method Detail

getNames

public java.util.List<java.lang.String> getNames()
                                          throws com.liferay.portal.SystemException
Specified by:
getNames in interface com.liferay.counter.service.CounterService
Throws:
com.liferay.portal.SystemException

increment

public long increment()
               throws com.liferay.portal.SystemException
Specified by:
increment in interface com.liferay.counter.service.CounterService
Throws:
com.liferay.portal.SystemException

increment

public long increment(java.lang.String name)
               throws com.liferay.portal.SystemException
Specified by:
increment in interface com.liferay.counter.service.CounterService
Throws:
com.liferay.portal.SystemException

increment

public long increment(java.lang.String name,
                      int size)
               throws com.liferay.portal.SystemException
Specified by:
increment in interface com.liferay.counter.service.CounterService
Throws:
com.liferay.portal.SystemException

rename

public void rename(java.lang.String oldName,
                   java.lang.String newName)
            throws com.liferay.portal.SystemException
Specified by:
rename in interface com.liferay.counter.service.CounterService
Throws:
com.liferay.portal.SystemException

reset

public void reset(java.lang.String name)
           throws com.liferay.portal.SystemException
Specified by:
reset in interface com.liferay.counter.service.CounterService
Throws:
com.liferay.portal.SystemException

reset

public void reset(java.lang.String name,
                  long size)
           throws com.liferay.portal.SystemException
Specified by:
reset in interface com.liferay.counter.service.CounterService
Throws:
com.liferay.portal.SystemException