1
14
15 package com.liferay.portal.service;
16
17 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
18 import com.liferay.portal.kernel.util.MethodCache;
19 import com.liferay.portal.kernel.util.ReferenceRegistry;
20
21
41 public class PortletItemLocalServiceUtil {
42 public static com.liferay.portal.model.PortletItem addPortletItem(
43 com.liferay.portal.model.PortletItem portletItem)
44 throws com.liferay.portal.SystemException {
45 return getService().addPortletItem(portletItem);
46 }
47
48 public static com.liferay.portal.model.PortletItem createPortletItem(
49 long portletItemId) {
50 return getService().createPortletItem(portletItemId);
51 }
52
53 public static void deletePortletItem(long portletItemId)
54 throws com.liferay.portal.PortalException,
55 com.liferay.portal.SystemException {
56 getService().deletePortletItem(portletItemId);
57 }
58
59 public static void deletePortletItem(
60 com.liferay.portal.model.PortletItem portletItem)
61 throws com.liferay.portal.SystemException {
62 getService().deletePortletItem(portletItem);
63 }
64
65 @SuppressWarnings("rawtypes")
66 public static java.util.List dynamicQuery(
67 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
68 throws com.liferay.portal.SystemException {
69 return getService().dynamicQuery(dynamicQuery);
70 }
71
72 @SuppressWarnings("rawtypes")
73 public static java.util.List dynamicQuery(
74 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
75 int end) throws com.liferay.portal.SystemException {
76 return getService().dynamicQuery(dynamicQuery, start, end);
77 }
78
79 @SuppressWarnings("rawtypes")
80 public static java.util.List dynamicQuery(
81 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
82 int end,
83 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
84 throws com.liferay.portal.SystemException {
85 return getService()
86 .dynamicQuery(dynamicQuery, start, end, orderByComparator);
87 }
88
89 public static int dynamicQueryCount(
90 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
91 throws com.liferay.portal.SystemException {
92 return getService().dynamicQueryCount(dynamicQuery);
93 }
94
95 public static com.liferay.portal.model.PortletItem getPortletItem(
96 long portletItemId)
97 throws com.liferay.portal.PortalException,
98 com.liferay.portal.SystemException {
99 return getService().getPortletItem(portletItemId);
100 }
101
102 public static java.util.List<com.liferay.portal.model.PortletItem> getPortletItems(
103 int start, int end) throws com.liferay.portal.SystemException {
104 return getService().getPortletItems(start, end);
105 }
106
107 public static int getPortletItemsCount()
108 throws com.liferay.portal.SystemException {
109 return getService().getPortletItemsCount();
110 }
111
112 public static com.liferay.portal.model.PortletItem updatePortletItem(
113 com.liferay.portal.model.PortletItem portletItem)
114 throws com.liferay.portal.SystemException {
115 return getService().updatePortletItem(portletItem);
116 }
117
118 public static com.liferay.portal.model.PortletItem updatePortletItem(
119 com.liferay.portal.model.PortletItem portletItem, boolean merge)
120 throws com.liferay.portal.SystemException {
121 return getService().updatePortletItem(portletItem, merge);
122 }
123
124 public static com.liferay.portal.model.PortletItem addPortletItem(
125 long userId, long groupId, java.lang.String name,
126 java.lang.String portletId, java.lang.String className)
127 throws com.liferay.portal.PortalException,
128 com.liferay.portal.SystemException {
129 return getService()
130 .addPortletItem(userId, groupId, name, portletId, className);
131 }
132
133 public static com.liferay.portal.model.PortletItem getPortletItem(
134 long groupId, java.lang.String name, java.lang.String portletId,
135 java.lang.String className)
136 throws com.liferay.portal.PortalException,
137 com.liferay.portal.SystemException {
138 return getService().getPortletItem(groupId, name, portletId, className);
139 }
140
141 public static java.util.List<com.liferay.portal.model.PortletItem> getPortletItems(
142 long groupId, java.lang.String className)
143 throws com.liferay.portal.SystemException {
144 return getService().getPortletItems(groupId, className);
145 }
146
147 public static java.util.List<com.liferay.portal.model.PortletItem> getPortletItems(
148 long groupId, java.lang.String portletId, java.lang.String className)
149 throws com.liferay.portal.SystemException {
150 return getService().getPortletItems(groupId, portletId, className);
151 }
152
153 public static com.liferay.portal.model.PortletItem updatePortletItem(
154 long userId, long groupId, java.lang.String name,
155 java.lang.String portletId, java.lang.String className)
156 throws com.liferay.portal.PortalException,
157 com.liferay.portal.SystemException {
158 return getService()
159 .updatePortletItem(userId, groupId, name, portletId,
160 className);
161 }
162
163 public static PortletItemLocalService getService() {
164 if (_service == null) {
165 _service = (PortletItemLocalService)PortalBeanLocatorUtil.locate(PortletItemLocalService.class.getName());
166
167 ReferenceRegistry.registerReference(PortletItemLocalServiceUtil.class,
168 "_service");
169 MethodCache.remove(PortletItemLocalService.class);
170 }
171
172 return _service;
173 }
174
175 public void setService(PortletItemLocalService service) {
176 MethodCache.remove(PortletItemLocalService.class);
177
178 _service = service;
179
180 ReferenceRegistry.registerReference(PortletItemLocalServiceUtil.class,
181 "_service");
182 MethodCache.remove(PortletItemLocalService.class);
183 }
184
185 private static PortletItemLocalService _service;
186 }