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