1
14
15 package com.liferay.portlet.shopping.service;
16
17 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
18
19
39 public class ShoppingItemServiceUtil {
40 public static void addBookItems(long categoryId, java.lang.String[] isbns)
41 throws com.liferay.portal.PortalException,
42 com.liferay.portal.SystemException, java.rmi.RemoteException {
43 getService().addBookItems(categoryId, isbns);
44 }
45
46 public static com.liferay.portlet.shopping.model.ShoppingItem addItem(
47 long categoryId, java.lang.String sku, java.lang.String name,
48 java.lang.String description, java.lang.String properties,
49 java.lang.String fieldsQuantities, boolean requiresShipping,
50 int stockQuantity, boolean featured, java.lang.Boolean sale,
51 boolean smallImage, java.lang.String smallImageURL,
52 java.io.File smallFile, boolean mediumImage,
53 java.lang.String mediumImageURL, java.io.File mediumFile,
54 boolean largeImage, java.lang.String largeImageURL,
55 java.io.File largeFile,
56 java.util.List<com.liferay.portlet.shopping.model.ShoppingItemField> itemFields,
57 java.util.List<com.liferay.portlet.shopping.model.ShoppingItemPrice> itemPrices,
58 boolean addCommunityPermissions, boolean addGuestPermissions)
59 throws com.liferay.portal.PortalException,
60 com.liferay.portal.SystemException, java.rmi.RemoteException {
61 return getService()
62 .addItem(categoryId, sku, name, description, properties,
63 fieldsQuantities, requiresShipping, stockQuantity, featured, sale,
64 smallImage, smallImageURL, smallFile, mediumImage, mediumImageURL,
65 mediumFile, largeImage, largeImageURL, largeFile, itemFields,
66 itemPrices, addCommunityPermissions, addGuestPermissions);
67 }
68
69 public static com.liferay.portlet.shopping.model.ShoppingItem addItem(
70 long categoryId, java.lang.String sku, java.lang.String name,
71 java.lang.String description, java.lang.String properties,
72 java.lang.String fieldsQuantities, boolean requiresShipping,
73 int stockQuantity, boolean featured, java.lang.Boolean sale,
74 boolean smallImage, java.lang.String smallImageURL,
75 java.io.File smallFile, boolean mediumImage,
76 java.lang.String mediumImageURL, java.io.File mediumFile,
77 boolean largeImage, java.lang.String largeImageURL,
78 java.io.File largeFile,
79 java.util.List<com.liferay.portlet.shopping.model.ShoppingItemField> itemFields,
80 java.util.List<com.liferay.portlet.shopping.model.ShoppingItemPrice> itemPrices,
81 java.lang.String[] communityPermissions,
82 java.lang.String[] guestPermissions)
83 throws com.liferay.portal.PortalException,
84 com.liferay.portal.SystemException, java.rmi.RemoteException {
85 return getService()
86 .addItem(categoryId, sku, name, description, properties,
87 fieldsQuantities, requiresShipping, stockQuantity, featured, sale,
88 smallImage, smallImageURL, smallFile, mediumImage, mediumImageURL,
89 mediumFile, largeImage, largeImageURL, largeFile, itemFields,
90 itemPrices, communityPermissions, guestPermissions);
91 }
92
93 public static void deleteItem(long itemId)
94 throws com.liferay.portal.PortalException,
95 com.liferay.portal.SystemException, java.rmi.RemoteException {
96 getService().deleteItem(itemId);
97 }
98
99 public static com.liferay.portlet.shopping.model.ShoppingItem getItem(
100 long itemId)
101 throws com.liferay.portal.PortalException,
102 com.liferay.portal.SystemException, java.rmi.RemoteException {
103 return getService().getItem(itemId);
104 }
105
106 public static com.liferay.portlet.shopping.model.ShoppingItem updateItem(
107 long itemId, long categoryId, java.lang.String sku,
108 java.lang.String name, java.lang.String description,
109 java.lang.String properties, java.lang.String fieldsQuantities,
110 boolean requiresShipping, int stockQuantity, boolean featured,
111 java.lang.Boolean sale, boolean smallImage,
112 java.lang.String smallImageURL, java.io.File smallFile,
113 boolean mediumImage, java.lang.String mediumImageURL,
114 java.io.File mediumFile, boolean largeImage,
115 java.lang.String largeImageURL, java.io.File largeFile,
116 java.util.List<com.liferay.portlet.shopping.model.ShoppingItemField> itemFields,
117 java.util.List<com.liferay.portlet.shopping.model.ShoppingItemPrice> itemPrices)
118 throws com.liferay.portal.PortalException,
119 com.liferay.portal.SystemException, java.rmi.RemoteException {
120 return getService()
121 .updateItem(itemId, categoryId, sku, name, description,
122 properties, fieldsQuantities, requiresShipping, stockQuantity,
123 featured, sale, smallImage, smallImageURL, smallFile, mediumImage,
124 mediumImageURL, mediumFile, largeImage, largeImageURL, largeFile,
125 itemFields, itemPrices);
126 }
127
128 public static ShoppingItemService getService() {
129 if (_service == null) {
130 _service = (ShoppingItemService)PortalBeanLocatorUtil.locate(ShoppingItemService.class.getName());
131 }
132
133 return _service;
134 }
135
136 public void setService(ShoppingItemService service) {
137 _service = service;
138 }
139
140 private static ShoppingItemService _service;
141 }