1
14
15 package com.liferay.portlet.shopping.service.http;
16
17 import com.liferay.portal.kernel.log.Log;
18 import com.liferay.portal.kernel.log.LogFactoryUtil;
19
20 import com.liferay.portlet.shopping.service.ShoppingCategoryServiceUtil;
21
22 import java.rmi.RemoteException;
23
24
74 public class ShoppingCategoryServiceSoap {
75 public static com.liferay.portlet.shopping.model.ShoppingCategorySoap addCategory(
76 long plid, long parentCategoryId, java.lang.String name,
77 java.lang.String description, boolean addCommunityPermissions,
78 boolean addGuestPermissions) throws RemoteException {
79 try {
80 com.liferay.portlet.shopping.model.ShoppingCategory returnValue = ShoppingCategoryServiceUtil.addCategory(plid,
81 parentCategoryId, name, description,
82 addCommunityPermissions, addGuestPermissions);
83
84 return com.liferay.portlet.shopping.model.ShoppingCategorySoap.toSoapModel(returnValue);
85 }
86 catch (Exception e) {
87 _log.error(e, e);
88
89 throw new RemoteException(e.getMessage());
90 }
91 }
92
93 public static com.liferay.portlet.shopping.model.ShoppingCategorySoap addCategory(
94 long plid, long parentCategoryId, java.lang.String name,
95 java.lang.String description, java.lang.String[] communityPermissions,
96 java.lang.String[] guestPermissions) throws RemoteException {
97 try {
98 com.liferay.portlet.shopping.model.ShoppingCategory returnValue = ShoppingCategoryServiceUtil.addCategory(plid,
99 parentCategoryId, name, description, communityPermissions,
100 guestPermissions);
101
102 return com.liferay.portlet.shopping.model.ShoppingCategorySoap.toSoapModel(returnValue);
103 }
104 catch (Exception e) {
105 _log.error(e, e);
106
107 throw new RemoteException(e.getMessage());
108 }
109 }
110
111 public static void deleteCategory(long categoryId)
112 throws RemoteException {
113 try {
114 ShoppingCategoryServiceUtil.deleteCategory(categoryId);
115 }
116 catch (Exception e) {
117 _log.error(e, e);
118
119 throw new RemoteException(e.getMessage());
120 }
121 }
122
123 public static com.liferay.portlet.shopping.model.ShoppingCategorySoap getCategory(
124 long categoryId) throws RemoteException {
125 try {
126 com.liferay.portlet.shopping.model.ShoppingCategory returnValue = ShoppingCategoryServiceUtil.getCategory(categoryId);
127
128 return com.liferay.portlet.shopping.model.ShoppingCategorySoap.toSoapModel(returnValue);
129 }
130 catch (Exception e) {
131 _log.error(e, e);
132
133 throw new RemoteException(e.getMessage());
134 }
135 }
136
137 public static com.liferay.portlet.shopping.model.ShoppingCategorySoap updateCategory(
138 long categoryId, long parentCategoryId, java.lang.String name,
139 java.lang.String description, boolean mergeWithParentCategory)
140 throws RemoteException {
141 try {
142 com.liferay.portlet.shopping.model.ShoppingCategory returnValue = ShoppingCategoryServiceUtil.updateCategory(categoryId,
143 parentCategoryId, name, description, mergeWithParentCategory);
144
145 return com.liferay.portlet.shopping.model.ShoppingCategorySoap.toSoapModel(returnValue);
146 }
147 catch (Exception e) {
148 _log.error(e, e);
149
150 throw new RemoteException(e.getMessage());
151 }
152 }
153
154 private static Log _log = LogFactoryUtil.getLog(ShoppingCategoryServiceSoap.class);
155 }