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 addCommunityPermissions, 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[] communityPermissions,
279 java.lang.String[] guestPermissions)
280 throws com.liferay.portal.kernel.exception.PortalException,
281 com.liferay.portal.kernel.exception.SystemException;
282
283 public void deleteVocabulary(
284 com.liferay.portlet.asset.model.AssetVocabulary vocabulary)
285 throws com.liferay.portal.kernel.exception.PortalException,
286 com.liferay.portal.kernel.exception.SystemException;
287
288 public void deleteVocabulary(long vocabularyId)
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 java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getCompanyVocabularies(
294 long companyId)
295 throws com.liferay.portal.kernel.exception.SystemException;
296
297 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
298 public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupsVocabularies(
299 long[] groupIds)
300 throws com.liferay.portal.kernel.exception.PortalException,
301 com.liferay.portal.kernel.exception.SystemException;
302
303 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
304 public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupVocabularies(
305 long groupId)
306 throws com.liferay.portal.kernel.exception.PortalException,
307 com.liferay.portal.kernel.exception.SystemException;
308
309 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
310 public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupVocabularies(
311 long groupId, boolean createDefaultVocabulary)
312 throws com.liferay.portal.kernel.exception.PortalException,
313 com.liferay.portal.kernel.exception.SystemException;
314
315 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
316 public com.liferay.portlet.asset.model.AssetVocabulary getGroupVocabulary(
317 long groupId, java.lang.String name)
318 throws com.liferay.portal.kernel.exception.PortalException,
319 com.liferay.portal.kernel.exception.SystemException;
320
321 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
322 public com.liferay.portlet.asset.model.AssetVocabulary getVocabulary(
323 long vocabularyId)
324 throws com.liferay.portal.kernel.exception.PortalException,
325 com.liferay.portal.kernel.exception.SystemException;
326
327
330 public com.liferay.portlet.asset.model.AssetVocabulary updateVocabulary(
331 long vocabularyId,
332 java.util.Map<java.util.Locale, java.lang.String> titleMap,
333 java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
334 java.lang.String settings,
335 com.liferay.portal.service.ServiceContext serviceContext)
336 throws com.liferay.portal.kernel.exception.PortalException,
337 com.liferay.portal.kernel.exception.SystemException;
338
339 public com.liferay.portlet.asset.model.AssetVocabulary updateVocabulary(
340 long vocabularyId, java.lang.String title,
341 java.util.Map<java.util.Locale, java.lang.String> titleMap,
342 java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
343 java.lang.String settings,
344 com.liferay.portal.service.ServiceContext serviceContext)
345 throws com.liferay.portal.kernel.exception.PortalException,
346 com.liferay.portal.kernel.exception.SystemException;
347 }