001
014
015 package com.liferay.portlet.shopping.service;
016
017 import aQute.bnd.annotation.ProviderType;
018
019 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
020 import com.liferay.portal.kernel.util.ReferenceRegistry;
021
022
036 @ProviderType
037 public class ShoppingItemServiceUtil {
038
043
044
049 public static java.lang.String getBeanIdentifier() {
050 return getService().getBeanIdentifier();
051 }
052
053
058 public static void setBeanIdentifier(java.lang.String beanIdentifier) {
059 getService().setBeanIdentifier(beanIdentifier);
060 }
061
062 public static void addBookItems(long groupId, long categoryId,
063 java.lang.String[] isbns)
064 throws com.liferay.portal.kernel.exception.PortalException,
065 com.liferay.portal.kernel.exception.SystemException {
066 getService().addBookItems(groupId, categoryId, isbns);
067 }
068
069 public static com.liferay.portlet.shopping.model.ShoppingItem addItem(
070 long groupId, long categoryId, java.lang.String sku,
071 java.lang.String name, java.lang.String description,
072 java.lang.String properties, java.lang.String fieldsQuantities,
073 boolean requiresShipping, int stockQuantity, boolean featured,
074 java.lang.Boolean sale, boolean smallImage,
075 java.lang.String smallImageURL, java.io.File smallFile,
076 boolean mediumImage, java.lang.String mediumImageURL,
077 java.io.File mediumFile, boolean largeImage,
078 java.lang.String largeImageURL, java.io.File largeFile,
079 java.util.List<com.liferay.portlet.shopping.model.ShoppingItemField> itemFields,
080 java.util.List<com.liferay.portlet.shopping.model.ShoppingItemPrice> itemPrices,
081 com.liferay.portal.service.ServiceContext serviceContext)
082 throws com.liferay.portal.kernel.exception.PortalException,
083 com.liferay.portal.kernel.exception.SystemException {
084 return getService()
085 .addItem(groupId, categoryId, sku, name, description,
086 properties, fieldsQuantities, requiresShipping, stockQuantity,
087 featured, sale, smallImage, smallImageURL, smallFile, mediumImage,
088 mediumImageURL, mediumFile, largeImage, largeImageURL, largeFile,
089 itemFields, itemPrices, serviceContext);
090 }
091
092 public static void deleteItem(long itemId)
093 throws com.liferay.portal.kernel.exception.PortalException,
094 com.liferay.portal.kernel.exception.SystemException {
095 getService().deleteItem(itemId);
096 }
097
098 public static int getCategoriesItemsCount(long groupId,
099 java.util.List<java.lang.Long> categoryIds)
100 throws com.liferay.portal.kernel.exception.SystemException {
101 return getService().getCategoriesItemsCount(groupId, categoryIds);
102 }
103
104 public static com.liferay.portlet.shopping.model.ShoppingItem getItem(
105 long itemId)
106 throws com.liferay.portal.kernel.exception.PortalException,
107 com.liferay.portal.kernel.exception.SystemException {
108 return getService().getItem(itemId);
109 }
110
111 public static java.util.List<com.liferay.portlet.shopping.model.ShoppingItem> getItems(
112 long groupId, long categoryId)
113 throws com.liferay.portal.kernel.exception.SystemException {
114 return getService().getItems(groupId, categoryId);
115 }
116
117 public static java.util.List<com.liferay.portlet.shopping.model.ShoppingItem> getItems(
118 long groupId, long categoryId, int start, int end,
119 com.liferay.portal.kernel.util.OrderByComparator obc)
120 throws com.liferay.portal.kernel.exception.SystemException {
121 return getService().getItems(groupId, categoryId, start, end, obc);
122 }
123
124 public static int getItemsCount(long groupId, long categoryId)
125 throws com.liferay.portal.kernel.exception.SystemException {
126 return getService().getItemsCount(groupId, categoryId);
127 }
128
129 public static com.liferay.portlet.shopping.model.ShoppingItem[] getItemsPrevAndNext(
130 long itemId, com.liferay.portal.kernel.util.OrderByComparator obc)
131 throws com.liferay.portal.kernel.exception.PortalException,
132 com.liferay.portal.kernel.exception.SystemException {
133 return getService().getItemsPrevAndNext(itemId, obc);
134 }
135
136 public static com.liferay.portlet.shopping.model.ShoppingItem updateItem(
137 long itemId, long groupId, long categoryId, java.lang.String sku,
138 java.lang.String name, java.lang.String description,
139 java.lang.String properties, java.lang.String fieldsQuantities,
140 boolean requiresShipping, int stockQuantity, boolean featured,
141 java.lang.Boolean sale, boolean smallImage,
142 java.lang.String smallImageURL, java.io.File smallFile,
143 boolean mediumImage, java.lang.String mediumImageURL,
144 java.io.File mediumFile, boolean largeImage,
145 java.lang.String largeImageURL, java.io.File largeFile,
146 java.util.List<com.liferay.portlet.shopping.model.ShoppingItemField> itemFields,
147 java.util.List<com.liferay.portlet.shopping.model.ShoppingItemPrice> itemPrices,
148 com.liferay.portal.service.ServiceContext serviceContext)
149 throws com.liferay.portal.kernel.exception.PortalException,
150 com.liferay.portal.kernel.exception.SystemException {
151 return getService()
152 .updateItem(itemId, groupId, categoryId, sku, name,
153 description, properties, fieldsQuantities, requiresShipping,
154 stockQuantity, featured, sale, smallImage, smallImageURL,
155 smallFile, mediumImage, mediumImageURL, mediumFile, largeImage,
156 largeImageURL, largeFile, itemFields, itemPrices, serviceContext);
157 }
158
159 public static ShoppingItemService getService() {
160 if (_service == null) {
161 _service = (ShoppingItemService)PortalBeanLocatorUtil.locate(ShoppingItemService.class.getName());
162
163 ReferenceRegistry.registerReference(ShoppingItemServiceUtil.class,
164 "_service");
165 }
166
167 return _service;
168 }
169
170
173 public void setService(ShoppingItemService service) {
174 }
175
176 private static ShoppingItemService _service;
177 }