001
014
015 package com.liferay.portlet.shopping.service;
016
017 import com.liferay.portal.kernel.annotation.Isolation;
018 import com.liferay.portal.kernel.annotation.Propagation;
019 import com.liferay.portal.kernel.annotation.Transactional;
020 import com.liferay.portal.kernel.exception.PortalException;
021 import com.liferay.portal.kernel.exception.SystemException;
022
023
040 @Transactional(isolation = Isolation.PORTAL, rollbackFor = {
041 PortalException.class, SystemException.class})
042 public interface ShoppingCategoryLocalService {
043 public com.liferay.portlet.shopping.model.ShoppingCategory addShoppingCategory(
044 com.liferay.portlet.shopping.model.ShoppingCategory shoppingCategory)
045 throws com.liferay.portal.kernel.exception.SystemException;
046
047 public com.liferay.portlet.shopping.model.ShoppingCategory createShoppingCategory(
048 long categoryId);
049
050 public void deleteShoppingCategory(long categoryId)
051 throws com.liferay.portal.kernel.exception.PortalException,
052 com.liferay.portal.kernel.exception.SystemException;
053
054 public void deleteShoppingCategory(
055 com.liferay.portlet.shopping.model.ShoppingCategory shoppingCategory)
056 throws com.liferay.portal.kernel.exception.SystemException;
057
058 @SuppressWarnings("unchecked")
059 public java.util.List dynamicQuery(
060 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
061 throws com.liferay.portal.kernel.exception.SystemException;
062
063 @SuppressWarnings("unchecked")
064 public java.util.List dynamicQuery(
065 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
066 int end) throws com.liferay.portal.kernel.exception.SystemException;
067
068 @SuppressWarnings("unchecked")
069 public java.util.List dynamicQuery(
070 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
071 int end,
072 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
073 throws com.liferay.portal.kernel.exception.SystemException;
074
075 public long dynamicQueryCount(
076 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
077 throws com.liferay.portal.kernel.exception.SystemException;
078
079 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
080 public com.liferay.portlet.shopping.model.ShoppingCategory getShoppingCategory(
081 long categoryId)
082 throws com.liferay.portal.kernel.exception.PortalException,
083 com.liferay.portal.kernel.exception.SystemException;
084
085 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
086 public java.util.List<com.liferay.portlet.shopping.model.ShoppingCategory> getShoppingCategories(
087 int start, int end)
088 throws com.liferay.portal.kernel.exception.SystemException;
089
090 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
091 public int getShoppingCategoriesCount()
092 throws com.liferay.portal.kernel.exception.SystemException;
093
094 public com.liferay.portlet.shopping.model.ShoppingCategory updateShoppingCategory(
095 com.liferay.portlet.shopping.model.ShoppingCategory shoppingCategory)
096 throws com.liferay.portal.kernel.exception.SystemException;
097
098 public com.liferay.portlet.shopping.model.ShoppingCategory updateShoppingCategory(
099 com.liferay.portlet.shopping.model.ShoppingCategory shoppingCategory,
100 boolean merge)
101 throws com.liferay.portal.kernel.exception.SystemException;
102
103 public com.liferay.portlet.shopping.model.ShoppingCategory addCategory(
104 long userId, long parentCategoryId, java.lang.String name,
105 java.lang.String description,
106 com.liferay.portal.service.ServiceContext serviceContext)
107 throws com.liferay.portal.kernel.exception.PortalException,
108 com.liferay.portal.kernel.exception.SystemException;
109
110 public void addCategoryResources(long categoryId,
111 boolean addCommunityPermissions, boolean addGuestPermissions)
112 throws com.liferay.portal.kernel.exception.PortalException,
113 com.liferay.portal.kernel.exception.SystemException;
114
115 public void addCategoryResources(long categoryId,
116 java.lang.String[] communityPermissions,
117 java.lang.String[] guestPermissions)
118 throws com.liferay.portal.kernel.exception.PortalException,
119 com.liferay.portal.kernel.exception.SystemException;
120
121 public void addCategoryResources(
122 com.liferay.portlet.shopping.model.ShoppingCategory category,
123 boolean addCommunityPermissions, boolean addGuestPermissions)
124 throws com.liferay.portal.kernel.exception.PortalException,
125 com.liferay.portal.kernel.exception.SystemException;
126
127 public void addCategoryResources(
128 com.liferay.portlet.shopping.model.ShoppingCategory category,
129 java.lang.String[] communityPermissions,
130 java.lang.String[] guestPermissions)
131 throws com.liferay.portal.kernel.exception.PortalException,
132 com.liferay.portal.kernel.exception.SystemException;
133
134 public void deleteCategories(long groupId)
135 throws com.liferay.portal.kernel.exception.PortalException,
136 com.liferay.portal.kernel.exception.SystemException;
137
138 public void deleteCategory(long categoryId)
139 throws com.liferay.portal.kernel.exception.PortalException,
140 com.liferay.portal.kernel.exception.SystemException;
141
142 public void deleteCategory(
143 com.liferay.portlet.shopping.model.ShoppingCategory category)
144 throws com.liferay.portal.kernel.exception.PortalException,
145 com.liferay.portal.kernel.exception.SystemException;
146
147 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
148 public java.util.List<com.liferay.portlet.shopping.model.ShoppingCategory> getCategories(
149 long groupId)
150 throws com.liferay.portal.kernel.exception.SystemException;
151
152 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
153 public java.util.List<com.liferay.portlet.shopping.model.ShoppingCategory> getCategories(
154 long groupId, long parentCategoryId, int start, int end)
155 throws com.liferay.portal.kernel.exception.SystemException;
156
157 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
158 public int getCategoriesCount(long groupId, long parentCategoryId)
159 throws com.liferay.portal.kernel.exception.SystemException;
160
161 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
162 public com.liferay.portlet.shopping.model.ShoppingCategory getCategory(
163 long categoryId)
164 throws com.liferay.portal.kernel.exception.PortalException,
165 com.liferay.portal.kernel.exception.SystemException;
166
167 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
168 public java.util.List<com.liferay.portlet.shopping.model.ShoppingCategory> getParentCategories(
169 long categoryId)
170 throws com.liferay.portal.kernel.exception.PortalException,
171 com.liferay.portal.kernel.exception.SystemException;
172
173 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
174 public java.util.List<com.liferay.portlet.shopping.model.ShoppingCategory> getParentCategories(
175 com.liferay.portlet.shopping.model.ShoppingCategory category)
176 throws com.liferay.portal.kernel.exception.PortalException,
177 com.liferay.portal.kernel.exception.SystemException;
178
179 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
180 public com.liferay.portlet.shopping.model.ShoppingCategory getParentCategory(
181 com.liferay.portlet.shopping.model.ShoppingCategory category)
182 throws com.liferay.portal.kernel.exception.PortalException,
183 com.liferay.portal.kernel.exception.SystemException;
184
185 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
186 public void getSubcategoryIds(java.util.List<java.lang.Long> categoryIds,
187 long groupId, long categoryId)
188 throws com.liferay.portal.kernel.exception.SystemException;
189
190 public com.liferay.portlet.shopping.model.ShoppingCategory updateCategory(
191 long categoryId, long parentCategoryId, java.lang.String name,
192 java.lang.String description, boolean mergeWithParentCategory,
193 com.liferay.portal.service.ServiceContext serviceContext)
194 throws com.liferay.portal.kernel.exception.PortalException,
195 com.liferay.portal.kernel.exception.SystemException;
196 }