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 getService().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 getService()
70 .addItem(categoryId, sku, name, description, properties,
71 fieldsQuantities, requiresShipping, stockQuantity, featured, sale,
72 smallImage, smallImageURL, smallFile, mediumImage, mediumImageURL,
73 mediumFile, largeImage, largeImageURL, largeFile, itemFields,
74 itemPrices, addCommunityPermissions, addGuestPermissions);
75 }
76
77 public static com.liferay.portlet.shopping.model.ShoppingItem addItem(
78 long categoryId, java.lang.String sku, java.lang.String name,
79 java.lang.String description, java.lang.String properties,
80 java.lang.String fieldsQuantities, boolean requiresShipping,
81 int stockQuantity, boolean featured, java.lang.Boolean sale,
82 boolean smallImage, java.lang.String smallImageURL,
83 java.io.File smallFile, boolean mediumImage,
84 java.lang.String mediumImageURL, java.io.File mediumFile,
85 boolean largeImage, java.lang.String largeImageURL,
86 java.io.File largeFile,
87 java.util.List<com.liferay.portlet.shopping.model.ShoppingItemField> itemFields,
88 java.util.List<com.liferay.portlet.shopping.model.ShoppingItemPrice> itemPrices,
89 java.lang.String[] communityPermissions,
90 java.lang.String[] guestPermissions)
91 throws com.liferay.portal.PortalException,
92 com.liferay.portal.SystemException, java.rmi.RemoteException {
93 return getService()
94 .addItem(categoryId, sku, name, description, properties,
95 fieldsQuantities, requiresShipping, stockQuantity, featured, sale,
96 smallImage, smallImageURL, smallFile, mediumImage, mediumImageURL,
97 mediumFile, largeImage, largeImageURL, largeFile, itemFields,
98 itemPrices, communityPermissions, guestPermissions);
99 }
100
101 public static void deleteItem(long itemId)
102 throws com.liferay.portal.PortalException,
103 com.liferay.portal.SystemException, java.rmi.RemoteException {
104 getService().deleteItem(itemId);
105 }
106
107 public static com.liferay.portlet.shopping.model.ShoppingItem getItem(
108 long itemId)
109 throws com.liferay.portal.PortalException,
110 com.liferay.portal.SystemException, java.rmi.RemoteException {
111 return getService().getItem(itemId);
112 }
113
114 public static com.liferay.portlet.shopping.model.ShoppingItem updateItem(
115 long itemId, long categoryId, java.lang.String sku,
116 java.lang.String name, java.lang.String description,
117 java.lang.String properties, java.lang.String fieldsQuantities,
118 boolean requiresShipping, int stockQuantity, boolean featured,
119 java.lang.Boolean sale, boolean smallImage,
120 java.lang.String smallImageURL, java.io.File smallFile,
121 boolean mediumImage, java.lang.String mediumImageURL,
122 java.io.File mediumFile, boolean largeImage,
123 java.lang.String largeImageURL, java.io.File largeFile,
124 java.util.List<com.liferay.portlet.shopping.model.ShoppingItemField> itemFields,
125 java.util.List<com.liferay.portlet.shopping.model.ShoppingItemPrice> itemPrices)
126 throws com.liferay.portal.PortalException,
127 com.liferay.portal.SystemException, java.rmi.RemoteException {
128 return getService()
129 .updateItem(itemId, categoryId, sku, name, description,
130 properties, fieldsQuantities, requiresShipping, stockQuantity,
131 featured, sale, smallImage, smallImageURL, smallFile, mediumImage,
132 mediumImageURL, mediumFile, largeImage, largeImageURL, largeFile,
133 itemFields, itemPrices);
134 }
135
136 public static ShoppingItemService getService() {
137 if (_service == null) {
138 throw new RuntimeException("ShoppingItemService is not set");
139 }
140
141 return _service;
142 }
143
144 public void setService(ShoppingItemService service) {
145 _service = service;
146 }
147
148 private static ShoppingItemService _service;
149 }