1
19
20 package com.liferay.portal.service;
21
22
23
44 public class ServiceComponentLocalServiceUtil {
45 public static com.liferay.portal.model.ServiceComponent addServiceComponent(
46 com.liferay.portal.model.ServiceComponent serviceComponent)
47 throws com.liferay.portal.SystemException {
48 return getService().addServiceComponent(serviceComponent);
49 }
50
51 public static com.liferay.portal.model.ServiceComponent createServiceComponent(
52 long serviceComponentId) {
53 return getService().createServiceComponent(serviceComponentId);
54 }
55
56 public static void deleteServiceComponent(long serviceComponentId)
57 throws com.liferay.portal.PortalException,
58 com.liferay.portal.SystemException {
59 getService().deleteServiceComponent(serviceComponentId);
60 }
61
62 public static void deleteServiceComponent(
63 com.liferay.portal.model.ServiceComponent serviceComponent)
64 throws com.liferay.portal.SystemException {
65 getService().deleteServiceComponent(serviceComponent);
66 }
67
68 public static java.util.List<Object> dynamicQuery(
69 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
70 throws com.liferay.portal.SystemException {
71 return getService().dynamicQuery(dynamicQuery);
72 }
73
74 public static java.util.List<Object> dynamicQuery(
75 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
76 int end) throws com.liferay.portal.SystemException {
77 return getService().dynamicQuery(dynamicQuery, start, end);
78 }
79
80 public static com.liferay.portal.model.ServiceComponent getServiceComponent(
81 long serviceComponentId)
82 throws com.liferay.portal.PortalException,
83 com.liferay.portal.SystemException {
84 return getService().getServiceComponent(serviceComponentId);
85 }
86
87 public static java.util.List<com.liferay.portal.model.ServiceComponent> getServiceComponents(
88 int start, int end) throws com.liferay.portal.SystemException {
89 return getService().getServiceComponents(start, end);
90 }
91
92 public static int getServiceComponentsCount()
93 throws com.liferay.portal.SystemException {
94 return getService().getServiceComponentsCount();
95 }
96
97 public static com.liferay.portal.model.ServiceComponent updateServiceComponent(
98 com.liferay.portal.model.ServiceComponent serviceComponent)
99 throws com.liferay.portal.SystemException {
100 return getService().updateServiceComponent(serviceComponent);
101 }
102
103 public static com.liferay.portal.model.ServiceComponent updateServiceComponent(
104 com.liferay.portal.model.ServiceComponent serviceComponent,
105 boolean merge) throws com.liferay.portal.SystemException {
106 return getService().updateServiceComponent(serviceComponent, merge);
107 }
108
109 public static void destroyServiceComponent(
110 javax.servlet.ServletContext servletContext,
111 java.lang.ClassLoader classLoader)
112 throws com.liferay.portal.SystemException {
113 getService().destroyServiceComponent(servletContext, classLoader);
114 }
115
116 public static com.liferay.portal.model.ServiceComponent initServiceComponent(
117 javax.servlet.ServletContext servletContext,
118 java.lang.ClassLoader classLoader, java.lang.String buildNamespace,
119 long buildNumber, long buildDate, boolean buildAutoUpgrade)
120 throws com.liferay.portal.PortalException,
121 com.liferay.portal.SystemException {
122 return getService()
123 .initServiceComponent(servletContext, classLoader,
124 buildNamespace, buildNumber, buildDate, buildAutoUpgrade);
125 }
126
127 public static ServiceComponentLocalService getService() {
128 if (_service == null) {
129 throw new RuntimeException(
130 "ServiceComponentLocalService is not set");
131 }
132
133 return _service;
134 }
135
136 public void setService(ServiceComponentLocalService service) {
137 _service = service;
138 }
139
140 private static ServiceComponentLocalService _service;
141 }