001
014
015 package com.liferay.portlet.asset.service;
016
017 import com.liferay.portal.kernel.exception.PortalException;
018 import com.liferay.portal.kernel.exception.SystemException;
019 import com.liferay.portal.kernel.transaction.Isolation;
020 import com.liferay.portal.kernel.transaction.Propagation;
021 import com.liferay.portal.kernel.transaction.Transactional;
022 import com.liferay.portal.service.PersistedModelLocalService;
023
024
037 @Transactional(isolation = Isolation.PORTAL, rollbackFor = {
038 PortalException.class, SystemException.class})
039 public interface AssetVocabularyLocalService extends PersistedModelLocalService {
040
045
046
053 public com.liferay.portlet.asset.model.AssetVocabulary addAssetVocabulary(
054 com.liferay.portlet.asset.model.AssetVocabulary assetVocabulary)
055 throws com.liferay.portal.kernel.exception.SystemException;
056
057
063 public com.liferay.portlet.asset.model.AssetVocabulary createAssetVocabulary(
064 long vocabularyId);
065
066
073 public void deleteAssetVocabulary(long vocabularyId)
074 throws com.liferay.portal.kernel.exception.PortalException,
075 com.liferay.portal.kernel.exception.SystemException;
076
077
083 public void deleteAssetVocabulary(
084 com.liferay.portlet.asset.model.AssetVocabulary assetVocabulary)
085 throws com.liferay.portal.kernel.exception.SystemException;
086
087
094 @SuppressWarnings("rawtypes")
095 public java.util.List dynamicQuery(
096 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
097 throws com.liferay.portal.kernel.exception.SystemException;
098
099
112 @SuppressWarnings("rawtypes")
113 public java.util.List dynamicQuery(
114 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
115 int end) throws com.liferay.portal.kernel.exception.SystemException;
116
117
131 @SuppressWarnings("rawtypes")
132 public java.util.List dynamicQuery(
133 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
134 int end,
135 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
136 throws com.liferay.portal.kernel.exception.SystemException;
137
138
145 public long dynamicQueryCount(
146 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
147 throws com.liferay.portal.kernel.exception.SystemException;
148
149
157 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
158 public com.liferay.portlet.asset.model.AssetVocabulary getAssetVocabulary(
159 long vocabularyId)
160 throws com.liferay.portal.kernel.exception.PortalException,
161 com.liferay.portal.kernel.exception.SystemException;
162
163 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
164 public com.liferay.portal.model.PersistedModel getPersistedModel(
165 java.io.Serializable primaryKeyObj)
166 throws com.liferay.portal.kernel.exception.PortalException,
167 com.liferay.portal.kernel.exception.SystemException;
168
169
178 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
179 public com.liferay.portlet.asset.model.AssetVocabulary getAssetVocabularyByUuidAndGroupId(
180 java.lang.String uuid, long groupId)
181 throws com.liferay.portal.kernel.exception.PortalException,
182 com.liferay.portal.kernel.exception.SystemException;
183
184
196 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
197 public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getAssetVocabularies(
198 int start, int end)
199 throws com.liferay.portal.kernel.exception.SystemException;
200
201
207 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
208 public int getAssetVocabulariesCount()
209 throws com.liferay.portal.kernel.exception.SystemException;
210
211
218 public com.liferay.portlet.asset.model.AssetVocabulary updateAssetVocabulary(
219 com.liferay.portlet.asset.model.AssetVocabulary assetVocabulary)
220 throws com.liferay.portal.kernel.exception.SystemException;
221
222
230 public com.liferay.portlet.asset.model.AssetVocabulary updateAssetVocabulary(
231 com.liferay.portlet.asset.model.AssetVocabulary assetVocabulary,
232 boolean merge)
233 throws com.liferay.portal.kernel.exception.SystemException;
234
235
240 public java.lang.String getBeanIdentifier();
241
242
247 public void setBeanIdentifier(java.lang.String beanIdentifier);
248
249
252 public com.liferay.portlet.asset.model.AssetVocabulary addVocabulary(
253 long userId,
254 java.util.Map<java.util.Locale, java.lang.String> titleMap,
255 java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
256 java.lang.String settings,
257 com.liferay.portal.service.ServiceContext serviceContext)
258 throws com.liferay.portal.kernel.exception.PortalException,
259 com.liferay.portal.kernel.exception.SystemException;
260
261 public com.liferay.portlet.asset.model.AssetVocabulary addVocabulary(
262 long userId, java.lang.String title,
263 java.util.Map<java.util.Locale, java.lang.String> titleMap,
264 java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
265 java.lang.String settings,
266 com.liferay.portal.service.ServiceContext serviceContext)
267 throws com.liferay.portal.kernel.exception.PortalException,
268 com.liferay.portal.kernel.exception.SystemException;
269
270 public void addVocabularyResources(
271 com.liferay.portlet.asset.model.AssetVocabulary vocabulary,
272 boolean addGroupPermissions, boolean addGuestPermissions)
273 throws com.liferay.portal.kernel.exception.PortalException,
274 com.liferay.portal.kernel.exception.SystemException;
275
276 public void addVocabularyResources(
277 com.liferay.portlet.asset.model.AssetVocabulary vocabulary,
278 java.lang.String[] groupPermissions, java.lang.String[] guestPermissions)
279 throws com.liferay.portal.kernel.exception.PortalException,
280 com.liferay.portal.kernel.exception.SystemException;
281
282 public void deleteVocabulary(
283 com.liferay.portlet.asset.model.AssetVocabulary vocabulary)
284 throws com.liferay.portal.kernel.exception.PortalException,
285 com.liferay.portal.kernel.exception.SystemException;
286
287 public void deleteVocabulary(long vocabularyId)
288 throws com.liferay.portal.kernel.exception.PortalException,
289 com.liferay.portal.kernel.exception.SystemException;
290
291 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
292 public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getCompanyVocabularies(
293 long companyId)
294 throws com.liferay.portal.kernel.exception.SystemException;
295
296 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
297 public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupsVocabularies(
298 long[] groupIds)
299 throws com.liferay.portal.kernel.exception.PortalException,
300 com.liferay.portal.kernel.exception.SystemException;
301
302 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
303 public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupsVocabularies(
304 long[] groupIds, java.lang.String className)
305 throws com.liferay.portal.kernel.exception.PortalException,
306 com.liferay.portal.kernel.exception.SystemException;
307
308 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
309 public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupVocabularies(
310 long groupId)
311 throws com.liferay.portal.kernel.exception.PortalException,
312 com.liferay.portal.kernel.exception.SystemException;
313
314 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
315 public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupVocabularies(
316 long groupId, boolean createDefaultVocabulary)
317 throws com.liferay.portal.kernel.exception.PortalException,
318 com.liferay.portal.kernel.exception.SystemException;
319
320 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
321 public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupVocabularies(
322 long groupId, java.lang.String name, int start, int end,
323 com.liferay.portal.kernel.util.OrderByComparator obc)
324 throws com.liferay.portal.kernel.exception.SystemException;
325
326 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
327 public com.liferay.portlet.asset.model.AssetVocabulary getGroupVocabulary(
328 long groupId, java.lang.String name)
329 throws com.liferay.portal.kernel.exception.PortalException,
330 com.liferay.portal.kernel.exception.SystemException;
331
332 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
333 public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getVocabularies(
334 long[] vocabularyIds)
335 throws com.liferay.portal.kernel.exception.PortalException,
336 com.liferay.portal.kernel.exception.SystemException;
337
338 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
339 public com.liferay.portlet.asset.model.AssetVocabulary getVocabulary(
340 long vocabularyId)
341 throws com.liferay.portal.kernel.exception.PortalException,
342 com.liferay.portal.kernel.exception.SystemException;
343
344
347 public com.liferay.portlet.asset.model.AssetVocabulary updateVocabulary(
348 long vocabularyId,
349 java.util.Map<java.util.Locale, java.lang.String> titleMap,
350 java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
351 java.lang.String settings,
352 com.liferay.portal.service.ServiceContext serviceContext)
353 throws com.liferay.portal.kernel.exception.PortalException,
354 com.liferay.portal.kernel.exception.SystemException;
355
356 public com.liferay.portlet.asset.model.AssetVocabulary updateVocabulary(
357 long vocabularyId, java.lang.String title,
358 java.util.Map<java.util.Locale, java.lang.String> titleMap,
359 java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
360 java.lang.String settings,
361 com.liferay.portal.service.ServiceContext serviceContext)
362 throws com.liferay.portal.kernel.exception.PortalException,
363 com.liferay.portal.kernel.exception.SystemException;
364 }