001
014
015 package com.liferay.portal.service;
016
017 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
018
019
032 public class PortletItemLocalServiceUtil {
033 public static com.liferay.portal.model.PortletItem addPortletItem(
034 com.liferay.portal.model.PortletItem portletItem)
035 throws com.liferay.portal.kernel.exception.SystemException {
036 return getService().addPortletItem(portletItem);
037 }
038
039 public static com.liferay.portal.model.PortletItem createPortletItem(
040 long portletItemId) {
041 return getService().createPortletItem(portletItemId);
042 }
043
044 public static void deletePortletItem(long portletItemId)
045 throws com.liferay.portal.kernel.exception.PortalException,
046 com.liferay.portal.kernel.exception.SystemException {
047 getService().deletePortletItem(portletItemId);
048 }
049
050 public static void deletePortletItem(
051 com.liferay.portal.model.PortletItem portletItem)
052 throws com.liferay.portal.kernel.exception.SystemException {
053 getService().deletePortletItem(portletItem);
054 }
055
056 @SuppressWarnings("unchecked")
057 public static java.util.List dynamicQuery(
058 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
059 throws com.liferay.portal.kernel.exception.SystemException {
060 return getService().dynamicQuery(dynamicQuery);
061 }
062
063 @SuppressWarnings("unchecked")
064 public static java.util.List dynamicQuery(
065 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
066 int end) throws com.liferay.portal.kernel.exception.SystemException {
067 return getService().dynamicQuery(dynamicQuery, start, end);
068 }
069
070 @SuppressWarnings("unchecked")
071 public static java.util.List dynamicQuery(
072 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
073 int end,
074 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
075 throws com.liferay.portal.kernel.exception.SystemException {
076 return getService()
077 .dynamicQuery(dynamicQuery, start, end, orderByComparator);
078 }
079
080 public static long dynamicQueryCount(
081 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
082 throws com.liferay.portal.kernel.exception.SystemException {
083 return getService().dynamicQueryCount(dynamicQuery);
084 }
085
086 public static com.liferay.portal.model.PortletItem getPortletItem(
087 long portletItemId)
088 throws com.liferay.portal.kernel.exception.PortalException,
089 com.liferay.portal.kernel.exception.SystemException {
090 return getService().getPortletItem(portletItemId);
091 }
092
093 public static java.util.List<com.liferay.portal.model.PortletItem> getPortletItems(
094 int start, int end)
095 throws com.liferay.portal.kernel.exception.SystemException {
096 return getService().getPortletItems(start, end);
097 }
098
099 public static int getPortletItemsCount()
100 throws com.liferay.portal.kernel.exception.SystemException {
101 return getService().getPortletItemsCount();
102 }
103
104 public static com.liferay.portal.model.PortletItem updatePortletItem(
105 com.liferay.portal.model.PortletItem portletItem)
106 throws com.liferay.portal.kernel.exception.SystemException {
107 return getService().updatePortletItem(portletItem);
108 }
109
110 public static com.liferay.portal.model.PortletItem updatePortletItem(
111 com.liferay.portal.model.PortletItem portletItem, boolean merge)
112 throws com.liferay.portal.kernel.exception.SystemException {
113 return getService().updatePortletItem(portletItem, merge);
114 }
115
116 public static com.liferay.portal.model.PortletItem addPortletItem(
117 long userId, long groupId, java.lang.String name,
118 java.lang.String portletId, java.lang.String className)
119 throws com.liferay.portal.kernel.exception.PortalException,
120 com.liferay.portal.kernel.exception.SystemException {
121 return getService()
122 .addPortletItem(userId, groupId, name, portletId, className);
123 }
124
125 public static com.liferay.portal.model.PortletItem getPortletItem(
126 long groupId, java.lang.String name, java.lang.String portletId,
127 java.lang.String className)
128 throws com.liferay.portal.kernel.exception.PortalException,
129 com.liferay.portal.kernel.exception.SystemException {
130 return getService().getPortletItem(groupId, name, portletId, className);
131 }
132
133 public static java.util.List<com.liferay.portal.model.PortletItem> getPortletItems(
134 long groupId, java.lang.String className)
135 throws com.liferay.portal.kernel.exception.SystemException {
136 return getService().getPortletItems(groupId, className);
137 }
138
139 public static java.util.List<com.liferay.portal.model.PortletItem> getPortletItems(
140 long groupId, java.lang.String portletId, java.lang.String className)
141 throws com.liferay.portal.kernel.exception.SystemException {
142 return getService().getPortletItems(groupId, portletId, className);
143 }
144
145 public static com.liferay.portal.model.PortletItem updatePortletItem(
146 long userId, long groupId, java.lang.String name,
147 java.lang.String portletId, java.lang.String className)
148 throws com.liferay.portal.kernel.exception.PortalException,
149 com.liferay.portal.kernel.exception.SystemException {
150 return getService()
151 .updatePortletItem(userId, groupId, name, portletId,
152 className);
153 }
154
155 public static PortletItemLocalService getService() {
156 if (_service == null) {
157 _service = (PortletItemLocalService)PortalBeanLocatorUtil.locate(PortletItemLocalService.class.getName());
158 }
159
160 return _service;
161 }
162
163 public void setService(PortletItemLocalService service) {
164 _service = service;
165 }
166
167 private static PortletItemLocalService _service;
168 }