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