1
22
23 package com.liferay.counter.service;
24
25 import com.liferay.portal.SystemException;
26
27 import java.util.List;
28
29
35 public class CounterLocalServiceUtil {
36
37 public static List<String> getNames() throws SystemException {
38 CounterLocalService counterService =
39 CounterLocalServiceFactory.getService();
40
41 return counterService.getNames();
42 }
43
44 public static long increment() throws SystemException {
45 CounterLocalService counterService =
46 CounterLocalServiceFactory.getService();
47
48 return counterService.increment();
49 }
50
51 public static long increment(String name) throws SystemException {
52 CounterLocalService counterService =
53 CounterLocalServiceFactory.getService();
54
55 return counterService.increment(name);
56 }
57
58 public static long increment(String name, int size) throws SystemException {
59 CounterLocalService counterService =
60 CounterLocalServiceFactory.getService();
61
62 return counterService.increment(name, size);
63 }
64
65 public static void rename(String oldName, String newName)
66 throws SystemException {
67
68 CounterLocalService counterService =
69 CounterLocalServiceFactory.getService();
70
71 counterService.rename(oldName, newName);
72 }
73
74 public static void reset(String name) throws SystemException {
75 CounterLocalService counterService =
76 CounterLocalServiceFactory.getService();
77
78 counterService.reset(name);
79 }
80
81 public static void reset(String name, long size) throws SystemException {
82 CounterLocalService counterService =
83 CounterLocalServiceFactory.getService();
84
85 counterService.reset(name, size);
86 }
87
88 }