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