1
14
15 package com.liferay.portlet.asset.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 AssetCategoryLocalService {
50 public com.liferay.portlet.asset.model.AssetCategory addAssetCategory(
51 com.liferay.portlet.asset.model.AssetCategory assetCategory)
52 throws com.liferay.portal.kernel.exception.SystemException;
53
54 public com.liferay.portlet.asset.model.AssetCategory createAssetCategory(
55 long categoryId);
56
57 public void deleteAssetCategory(long categoryId)
58 throws com.liferay.portal.kernel.exception.PortalException,
59 com.liferay.portal.kernel.exception.SystemException;
60
61 public void deleteAssetCategory(
62 com.liferay.portlet.asset.model.AssetCategory assetCategory)
63 throws com.liferay.portal.kernel.exception.SystemException;
64
65 @SuppressWarnings("unchecked")
66 public java.util.List dynamicQuery(
67 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
68 throws com.liferay.portal.kernel.exception.SystemException;
69
70 @SuppressWarnings("unchecked")
71 public java.util.List dynamicQuery(
72 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
73 int end) throws com.liferay.portal.kernel.exception.SystemException;
74
75 @SuppressWarnings("unchecked")
76 public java.util.List dynamicQuery(
77 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
78 int end,
79 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
80 throws com.liferay.portal.kernel.exception.SystemException;
81
82 public long dynamicQueryCount(
83 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
84 throws com.liferay.portal.kernel.exception.SystemException;
85
86 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
87 public com.liferay.portlet.asset.model.AssetCategory getAssetCategory(
88 long categoryId)
89 throws com.liferay.portal.kernel.exception.PortalException,
90 com.liferay.portal.kernel.exception.SystemException;
91
92 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
93 public com.liferay.portlet.asset.model.AssetCategory getAssetCategoryByUuidAndGroupId(
94 java.lang.String uuid, long groupId)
95 throws com.liferay.portal.kernel.exception.PortalException,
96 com.liferay.portal.kernel.exception.SystemException;
97
98 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
99 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> getAssetCategories(
100 int start, int end)
101 throws com.liferay.portal.kernel.exception.SystemException;
102
103 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
104 public int getAssetCategoriesCount()
105 throws com.liferay.portal.kernel.exception.SystemException;
106
107 public com.liferay.portlet.asset.model.AssetCategory updateAssetCategory(
108 com.liferay.portlet.asset.model.AssetCategory assetCategory)
109 throws com.liferay.portal.kernel.exception.SystemException;
110
111 public com.liferay.portlet.asset.model.AssetCategory updateAssetCategory(
112 com.liferay.portlet.asset.model.AssetCategory assetCategory,
113 boolean merge)
114 throws com.liferay.portal.kernel.exception.SystemException;
115
116 public com.liferay.portlet.asset.model.AssetCategory addCategory(
117 java.lang.String uuid, long userId, long parentCategoryId,
118 java.util.Map<java.util.Locale, java.lang.String> titleMap,
119 long vocabularyId, java.lang.String[] categoryProperties,
120 com.liferay.portal.service.ServiceContext serviceContext)
121 throws com.liferay.portal.kernel.exception.PortalException,
122 com.liferay.portal.kernel.exception.SystemException;
123
124 public void addCategoryResources(
125 com.liferay.portlet.asset.model.AssetCategory category,
126 boolean addCommunityPermissions, boolean addGuestPermissions)
127 throws com.liferay.portal.kernel.exception.PortalException,
128 com.liferay.portal.kernel.exception.SystemException;
129
130 public void addCategoryResources(
131 com.liferay.portlet.asset.model.AssetCategory category,
132 java.lang.String[] communityPermissions,
133 java.lang.String[] guestPermissions)
134 throws com.liferay.portal.kernel.exception.PortalException,
135 com.liferay.portal.kernel.exception.SystemException;
136
137 public void deleteCategory(
138 com.liferay.portlet.asset.model.AssetCategory category)
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 deleteVocabularyCategories(long vocabularyId)
147 throws com.liferay.portal.kernel.exception.PortalException,
148 com.liferay.portal.kernel.exception.SystemException;
149
150 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
151 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> getCategories()
152 throws com.liferay.portal.kernel.exception.SystemException;
153
154 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
155 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> getCategories(
156 long classNameId, long classPK)
157 throws com.liferay.portal.kernel.exception.SystemException;
158
159 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
160 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> getCategories(
161 java.lang.String className, long classPK)
162 throws com.liferay.portal.kernel.exception.SystemException;
163
164 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
165 public com.liferay.portlet.asset.model.AssetCategory getCategory(
166 long categoryId)
167 throws com.liferay.portal.kernel.exception.PortalException,
168 com.liferay.portal.kernel.exception.SystemException;
169
170 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
171 public long[] getCategoryIds(java.lang.String className, long classPK)
172 throws com.liferay.portal.kernel.exception.SystemException;
173
174 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
175 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> getChildCategories(
176 long parentCategoryId, int start, int end,
177 com.liferay.portal.kernel.util.OrderByComparator obc)
178 throws com.liferay.portal.kernel.exception.SystemException;
179
180 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
181 public int getChildCategoriesCount(long parentCategoryId)
182 throws com.liferay.portal.kernel.exception.SystemException;
183
184 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
185 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> getEntryCategories(
186 long entryId)
187 throws com.liferay.portal.kernel.exception.SystemException;
188
189 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
190 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> getVocabularyCategories(
191 long vocabularyId, int start, int end,
192 com.liferay.portal.kernel.util.OrderByComparator obc)
193 throws com.liferay.portal.kernel.exception.SystemException;
194
195 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
196 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> getVocabularyCategories(
197 long parentCategoryId, long vocabularyId, int start, int end,
198 com.liferay.portal.kernel.util.OrderByComparator obc)
199 throws com.liferay.portal.kernel.exception.SystemException;
200
201 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
202 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> getVocabularyRootCategories(
203 long vocabularyId, int start, int end,
204 com.liferay.portal.kernel.util.OrderByComparator obc)
205 throws com.liferay.portal.kernel.exception.SystemException;
206
207 public void mergeCategories(long fromCategoryId, long toCategoryId)
208 throws com.liferay.portal.kernel.exception.PortalException,
209 com.liferay.portal.kernel.exception.SystemException;
210
211 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
212 public com.liferay.portal.kernel.json.JSONArray search(long groupId,
213 java.lang.String name, java.lang.String[] categoryProperties,
214 int start, int end)
215 throws com.liferay.portal.kernel.exception.SystemException;
216
217 public com.liferay.portlet.asset.model.AssetCategory updateCategory(
218 long userId, long categoryId, long parentCategoryId,
219 java.util.Map<java.util.Locale, java.lang.String> titleMap,
220 long vocabularyId, java.lang.String[] categoryProperties,
221 com.liferay.portal.service.ServiceContext serviceContext)
222 throws com.liferay.portal.kernel.exception.PortalException,
223 com.liferay.portal.kernel.exception.SystemException;
224 }