001
014
015 package com.liferay.portlet.asset.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 AssetVocabularyLocalService {
043
050 public com.liferay.portlet.asset.model.AssetVocabulary addAssetVocabulary(
051 com.liferay.portlet.asset.model.AssetVocabulary assetVocabulary)
052 throws com.liferay.portal.kernel.exception.SystemException;
053
054
060 public com.liferay.portlet.asset.model.AssetVocabulary createAssetVocabulary(
061 long vocabularyId);
062
063
070 public void deleteAssetVocabulary(long vocabularyId)
071 throws com.liferay.portal.kernel.exception.PortalException,
072 com.liferay.portal.kernel.exception.SystemException;
073
074
080 public void deleteAssetVocabulary(
081 com.liferay.portlet.asset.model.AssetVocabulary assetVocabulary)
082 throws com.liferay.portal.kernel.exception.SystemException;
083
084
091 @SuppressWarnings("rawtypes")
092 public java.util.List dynamicQuery(
093 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
094 throws com.liferay.portal.kernel.exception.SystemException;
095
096
109 @SuppressWarnings("rawtypes")
110 public java.util.List dynamicQuery(
111 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
112 int end) throws com.liferay.portal.kernel.exception.SystemException;
113
114
128 @SuppressWarnings("rawtypes")
129 public java.util.List dynamicQuery(
130 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
131 int end,
132 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
133 throws com.liferay.portal.kernel.exception.SystemException;
134
135
142 public long dynamicQueryCount(
143 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
144 throws com.liferay.portal.kernel.exception.SystemException;
145
146
154 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
155 public com.liferay.portlet.asset.model.AssetVocabulary getAssetVocabulary(
156 long vocabularyId)
157 throws com.liferay.portal.kernel.exception.PortalException,
158 com.liferay.portal.kernel.exception.SystemException;
159
160
169 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
170 public com.liferay.portlet.asset.model.AssetVocabulary getAssetVocabularyByUuidAndGroupId(
171 java.lang.String uuid, long groupId)
172 throws com.liferay.portal.kernel.exception.PortalException,
173 com.liferay.portal.kernel.exception.SystemException;
174
175
187 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
188 public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getAssetVocabularies(
189 int start, int end)
190 throws com.liferay.portal.kernel.exception.SystemException;
191
192
198 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
199 public int getAssetVocabulariesCount()
200 throws com.liferay.portal.kernel.exception.SystemException;
201
202
209 public com.liferay.portlet.asset.model.AssetVocabulary updateAssetVocabulary(
210 com.liferay.portlet.asset.model.AssetVocabulary assetVocabulary)
211 throws com.liferay.portal.kernel.exception.SystemException;
212
213
221 public com.liferay.portlet.asset.model.AssetVocabulary updateAssetVocabulary(
222 com.liferay.portlet.asset.model.AssetVocabulary assetVocabulary,
223 boolean merge)
224 throws com.liferay.portal.kernel.exception.SystemException;
225
226
229 public com.liferay.portlet.asset.model.AssetVocabulary addVocabulary(
230 long userId,
231 java.util.Map<java.util.Locale, java.lang.String> titleMap,
232 java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
233 java.lang.String settings,
234 com.liferay.portal.service.ServiceContext serviceContext)
235 throws com.liferay.portal.kernel.exception.PortalException,
236 com.liferay.portal.kernel.exception.SystemException;
237
238 public com.liferay.portlet.asset.model.AssetVocabulary addVocabulary(
239 long userId, java.lang.String title,
240 java.util.Map<java.util.Locale, java.lang.String> titleMap,
241 java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
242 java.lang.String settings,
243 com.liferay.portal.service.ServiceContext serviceContext)
244 throws com.liferay.portal.kernel.exception.PortalException,
245 com.liferay.portal.kernel.exception.SystemException;
246
247 public void addVocabularyResources(
248 com.liferay.portlet.asset.model.AssetVocabulary vocabulary,
249 boolean addCommunityPermissions, boolean addGuestPermissions)
250 throws com.liferay.portal.kernel.exception.PortalException,
251 com.liferay.portal.kernel.exception.SystemException;
252
253 public void addVocabularyResources(
254 com.liferay.portlet.asset.model.AssetVocabulary vocabulary,
255 java.lang.String[] communityPermissions,
256 java.lang.String[] guestPermissions)
257 throws com.liferay.portal.kernel.exception.PortalException,
258 com.liferay.portal.kernel.exception.SystemException;
259
260 public void deleteVocabulary(
261 com.liferay.portlet.asset.model.AssetVocabulary vocabulary)
262 throws com.liferay.portal.kernel.exception.PortalException,
263 com.liferay.portal.kernel.exception.SystemException;
264
265 public void deleteVocabulary(long vocabularyId)
266 throws com.liferay.portal.kernel.exception.PortalException,
267 com.liferay.portal.kernel.exception.SystemException;
268
269 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
270 public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getCompanyVocabularies(
271 long companyId)
272 throws com.liferay.portal.kernel.exception.SystemException;
273
274 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
275 public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupsVocabularies(
276 long[] groupIds)
277 throws com.liferay.portal.kernel.exception.PortalException,
278 com.liferay.portal.kernel.exception.SystemException;
279
280 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
281 public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupVocabularies(
282 long groupId)
283 throws com.liferay.portal.kernel.exception.PortalException,
284 com.liferay.portal.kernel.exception.SystemException;
285
286 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
287 public com.liferay.portlet.asset.model.AssetVocabulary getGroupVocabulary(
288 long groupId, java.lang.String name)
289 throws com.liferay.portal.kernel.exception.PortalException,
290 com.liferay.portal.kernel.exception.SystemException;
291
292 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
293 public com.liferay.portlet.asset.model.AssetVocabulary getVocabulary(
294 long vocabularyId)
295 throws com.liferay.portal.kernel.exception.PortalException,
296 com.liferay.portal.kernel.exception.SystemException;
297
298
301 public com.liferay.portlet.asset.model.AssetVocabulary updateVocabulary(
302 long vocabularyId,
303 java.util.Map<java.util.Locale, java.lang.String> titleMap,
304 java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
305 java.lang.String settings,
306 com.liferay.portal.service.ServiceContext serviceContext)
307 throws com.liferay.portal.kernel.exception.PortalException,
308 com.liferay.portal.kernel.exception.SystemException;
309
310 public com.liferay.portlet.asset.model.AssetVocabulary updateVocabulary(
311 long vocabularyId, java.lang.String title,
312 java.util.Map<java.util.Locale, java.lang.String> titleMap,
313 java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
314 java.lang.String settings,
315 com.liferay.portal.service.ServiceContext serviceContext)
316 throws com.liferay.portal.kernel.exception.PortalException,
317 com.liferay.portal.kernel.exception.SystemException;
318 }