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 void destroyServiceComponent(
104 javax.servlet.ServletContext servletContext,
105 java.lang.ClassLoader classLoader)
106 throws com.liferay.portal.SystemException {
107 getService().destroyServiceComponent(servletContext, classLoader);
108 }
109
110 public static com.liferay.portal.model.ServiceComponent initServiceComponent(
111 javax.servlet.ServletContext servletContext,
112 java.lang.ClassLoader classLoader, java.lang.String buildNamespace,
113 long buildNumber, long buildDate)
114 throws com.liferay.portal.PortalException,
115 com.liferay.portal.SystemException {
116 return getService()
117 .initServiceComponent(servletContext, classLoader,
118 buildNamespace, buildNumber, buildDate);
119 }
120
121 public static ServiceComponentLocalService getService() {
122 if (_service == null) {
123 throw new RuntimeException(
124 "ServiceComponentLocalService is not set");
125 }
126
127 return _service;
128 }
129
130 public void setService(ServiceComponentLocalService service) {
131 _service = service;
132 }
133
134 private static ServiceComponentLocalService _service;
135 }