1
14
15 package com.liferay.portlet.shopping.service;
16
17 import com.liferay.portal.kernel.annotation.Isolation;
18 import com.liferay.portal.kernel.annotation.Propagation;
19 import com.liferay.portal.kernel.annotation.Transactional;
20 import com.liferay.portal.kernel.exception.PortalException;
21 import com.liferay.portal.kernel.exception.SystemException;
22
23
47 @Transactional(isolation = Isolation.PORTAL, rollbackFor = {
48 PortalException.class, SystemException.class})
49 public interface ShoppingCategoryLocalService {
50 public com.liferay.portlet.shopping.model.ShoppingCategory addShoppingCategory(
51 com.liferay.portlet.shopping.model.ShoppingCategory shoppingCategory)
52 throws com.liferay.portal.kernel.exception.SystemException;
53
54 public com.liferay.portlet.shopping.model.ShoppingCategory createShoppingCategory(
55 long categoryId);
56
57 public void deleteShoppingCategory(long categoryId)
58 throws com.liferay.portal.kernel.exception.PortalException,
59 com.liferay.portal.kernel.exception.SystemException;
60
61 public void deleteShoppingCategory(
62 com.liferay.portlet.shopping.model.ShoppingCategory shoppingCategory)
63 throws com.liferay.portal.kernel.exception.SystemException;
64
65 public java.util.List<Object> dynamicQuery(
66 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
67 throws com.liferay.portal.kernel.exception.SystemException;
68
69 public java.util.List<Object> dynamicQuery(
70 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
71 int end) throws com.liferay.portal.kernel.exception.SystemException;
72
73 public java.util.List<Object> dynamicQuery(
74 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
75 int end,
76 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
77 throws com.liferay.portal.kernel.exception.SystemException;
78
79 public int dynamicQueryCount(
80 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
81 throws com.liferay.portal.kernel.exception.SystemException;
82
83 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
84 public com.liferay.portlet.shopping.model.ShoppingCategory getShoppingCategory(
85 long categoryId)
86 throws com.liferay.portal.kernel.exception.PortalException,
87 com.liferay.portal.kernel.exception.SystemException;
88
89 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
90 public java.util.List<com.liferay.portlet.shopping.model.ShoppingCategory> getShoppingCategories(
91 int start, int end)
92 throws com.liferay.portal.kernel.exception.SystemException;
93
94 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
95 public int getShoppingCategoriesCount()
96 throws com.liferay.portal.kernel.exception.SystemException;
97
98 public com.liferay.portlet.shopping.model.ShoppingCategory updateShoppingCategory(
99 com.liferay.portlet.shopping.model.ShoppingCategory shoppingCategory)
100 throws com.liferay.portal.kernel.exception.SystemException;
101
102 public com.liferay.portlet.shopping.model.ShoppingCategory updateShoppingCategory(
103 com.liferay.portlet.shopping.model.ShoppingCategory shoppingCategory,
104 boolean merge)
105 throws com.liferay.portal.kernel.exception.SystemException;
106
107 public com.liferay.portlet.shopping.model.ShoppingCategory addCategory(
108 long userId, long parentCategoryId, java.lang.String name,
109 java.lang.String description,
110 com.liferay.portal.service.ServiceContext serviceContext)
111 throws com.liferay.portal.kernel.exception.PortalException,
112 com.liferay.portal.kernel.exception.SystemException;
113
114 public void addCategoryResources(long categoryId,
115 boolean addCommunityPermissions, boolean addGuestPermissions)
116 throws com.liferay.portal.kernel.exception.PortalException,
117 com.liferay.portal.kernel.exception.SystemException;
118
119 public void addCategoryResources(long categoryId,
120 java.lang.String[] communityPermissions,
121 java.lang.String[] guestPermissions)
122 throws com.liferay.portal.kernel.exception.PortalException,
123 com.liferay.portal.kernel.exception.SystemException;
124
125 public void addCategoryResources(
126 com.liferay.portlet.shopping.model.ShoppingCategory category,
127 boolean addCommunityPermissions, boolean addGuestPermissions)
128 throws com.liferay.portal.kernel.exception.PortalException,
129 com.liferay.portal.kernel.exception.SystemException;
130
131 public void addCategoryResources(
132 com.liferay.portlet.shopping.model.ShoppingCategory category,
133 java.lang.String[] communityPermissions,
134 java.lang.String[] guestPermissions)
135 throws com.liferay.portal.kernel.exception.PortalException,
136 com.liferay.portal.kernel.exception.SystemException;
137
138 public void deleteCategories(long groupId)
139 throws com.liferay.portal.kernel.exception.PortalException,
140 com.liferay.portal.kernel.exception.SystemException;
141
142 public void deleteCategory(long categoryId)
143 throws com.liferay.portal.kernel.exception.PortalException,
144 com.liferay.portal.kernel.exception.SystemException;
145
146 public void deleteCategory(
147 com.liferay.portlet.shopping.model.ShoppingCategory category)
148 throws com.liferay.portal.kernel.exception.PortalException,
149 com.liferay.portal.kernel.exception.SystemException;
150
151 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
152 public java.util.List<com.liferay.portlet.shopping.model.ShoppingCategory> getCategories(
153 long groupId)
154 throws com.liferay.portal.kernel.exception.SystemException;
155
156 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
157 public java.util.List<com.liferay.portlet.shopping.model.ShoppingCategory> getCategories(
158 long groupId, long parentCategoryId, int start, int end)
159 throws com.liferay.portal.kernel.exception.SystemException;
160
161 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
162 public int getCategoriesCount(long groupId, long parentCategoryId)
163 throws com.liferay.portal.kernel.exception.SystemException;
164
165 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
166 public com.liferay.portlet.shopping.model.ShoppingCategory getCategory(
167 long categoryId)
168 throws com.liferay.portal.kernel.exception.PortalException,
169 com.liferay.portal.kernel.exception.SystemException;
170
171 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
172 public java.util.List<com.liferay.portlet.shopping.model.ShoppingCategory> getParentCategories(
173 long categoryId)
174 throws com.liferay.portal.kernel.exception.PortalException,
175 com.liferay.portal.kernel.exception.SystemException;
176
177 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
178 public java.util.List<com.liferay.portlet.shopping.model.ShoppingCategory> getParentCategories(
179 com.liferay.portlet.shopping.model.ShoppingCategory category)
180 throws com.liferay.portal.kernel.exception.PortalException,
181 com.liferay.portal.kernel.exception.SystemException;
182
183 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
184 public com.liferay.portlet.shopping.model.ShoppingCategory getParentCategory(
185 com.liferay.portlet.shopping.model.ShoppingCategory category)
186 throws com.liferay.portal.kernel.exception.PortalException,
187 com.liferay.portal.kernel.exception.SystemException;
188
189 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
190 public void getSubcategoryIds(java.util.List<Long> categoryIds,
191 long groupId, long categoryId)
192 throws com.liferay.portal.kernel.exception.SystemException;
193
194 public com.liferay.portlet.shopping.model.ShoppingCategory updateCategory(
195 long categoryId, long parentCategoryId, java.lang.String name,
196 java.lang.String description, boolean mergeWithParentCategory,
197 com.liferay.portal.service.ServiceContext serviceContext)
198 throws com.liferay.portal.kernel.exception.PortalException,
199 com.liferay.portal.kernel.exception.SystemException;
200 }