001
014
015 package com.liferay.portlet.dynamicdatamapping.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.BaseLocalService;
023 import com.liferay.portal.service.PersistedModelLocalService;
024
025
038 @Transactional(isolation = Isolation.PORTAL, rollbackFor = {
039 PortalException.class, SystemException.class})
040 public interface DDMStructureLocalService extends BaseLocalService,
041 PersistedModelLocalService {
042
047
048
055 public com.liferay.portlet.dynamicdatamapping.model.DDMStructure addDDMStructure(
056 com.liferay.portlet.dynamicdatamapping.model.DDMStructure ddmStructure)
057 throws com.liferay.portal.kernel.exception.SystemException;
058
059
065 public com.liferay.portlet.dynamicdatamapping.model.DDMStructure createDDMStructure(
066 long structureId);
067
068
076 public com.liferay.portlet.dynamicdatamapping.model.DDMStructure deleteDDMStructure(
077 long structureId)
078 throws com.liferay.portal.kernel.exception.PortalException,
079 com.liferay.portal.kernel.exception.SystemException;
080
081
088 public com.liferay.portlet.dynamicdatamapping.model.DDMStructure deleteDDMStructure(
089 com.liferay.portlet.dynamicdatamapping.model.DDMStructure ddmStructure)
090 throws com.liferay.portal.kernel.exception.SystemException;
091
092 public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery();
093
094
101 @SuppressWarnings("rawtypes")
102 public java.util.List dynamicQuery(
103 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
104 throws com.liferay.portal.kernel.exception.SystemException;
105
106
119 @SuppressWarnings("rawtypes")
120 public java.util.List dynamicQuery(
121 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
122 int end) throws com.liferay.portal.kernel.exception.SystemException;
123
124
138 @SuppressWarnings("rawtypes")
139 public java.util.List dynamicQuery(
140 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
141 int end,
142 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
143 throws com.liferay.portal.kernel.exception.SystemException;
144
145
152 public long dynamicQueryCount(
153 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
154 throws com.liferay.portal.kernel.exception.SystemException;
155
156 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
157 public com.liferay.portlet.dynamicdatamapping.model.DDMStructure fetchDDMStructure(
158 long structureId)
159 throws com.liferay.portal.kernel.exception.SystemException;
160
161
169 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
170 public com.liferay.portlet.dynamicdatamapping.model.DDMStructure getDDMStructure(
171 long structureId)
172 throws com.liferay.portal.kernel.exception.PortalException,
173 com.liferay.portal.kernel.exception.SystemException;
174
175 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
176 public com.liferay.portal.model.PersistedModel getPersistedModel(
177 java.io.Serializable primaryKeyObj)
178 throws com.liferay.portal.kernel.exception.PortalException,
179 com.liferay.portal.kernel.exception.SystemException;
180
181
190 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
191 public com.liferay.portlet.dynamicdatamapping.model.DDMStructure getDDMStructureByUuidAndGroupId(
192 java.lang.String uuid, long groupId)
193 throws com.liferay.portal.kernel.exception.PortalException,
194 com.liferay.portal.kernel.exception.SystemException;
195
196
208 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
209 public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> getDDMStructures(
210 int start, int end)
211 throws com.liferay.portal.kernel.exception.SystemException;
212
213
219 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
220 public int getDDMStructuresCount()
221 throws com.liferay.portal.kernel.exception.SystemException;
222
223
230 public com.liferay.portlet.dynamicdatamapping.model.DDMStructure updateDDMStructure(
231 com.liferay.portlet.dynamicdatamapping.model.DDMStructure ddmStructure)
232 throws com.liferay.portal.kernel.exception.SystemException;
233
234
242 public com.liferay.portlet.dynamicdatamapping.model.DDMStructure updateDDMStructure(
243 com.liferay.portlet.dynamicdatamapping.model.DDMStructure ddmStructure,
244 boolean merge)
245 throws com.liferay.portal.kernel.exception.SystemException;
246
247
252 public java.lang.String getBeanIdentifier();
253
254
259 public void setBeanIdentifier(java.lang.String beanIdentifier);
260
261 public com.liferay.portlet.dynamicdatamapping.model.DDMStructure addStructure(
262 long userId, long groupId, long classNameId,
263 java.lang.String structureKey,
264 java.util.Map<java.util.Locale, java.lang.String> nameMap,
265 java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
266 java.lang.String xsd, java.lang.String storageType, int type,
267 com.liferay.portal.service.ServiceContext serviceContext)
268 throws com.liferay.portal.kernel.exception.PortalException,
269 com.liferay.portal.kernel.exception.SystemException;
270
271 public void addStructureResources(
272 com.liferay.portlet.dynamicdatamapping.model.DDMStructure structure,
273 boolean addGroupPermissions, boolean addGuestPermissions)
274 throws com.liferay.portal.kernel.exception.PortalException,
275 com.liferay.portal.kernel.exception.SystemException;
276
277 public void addStructureResources(
278 com.liferay.portlet.dynamicdatamapping.model.DDMStructure structure,
279 java.lang.String[] groupPermissions, java.lang.String[] guestPermissions)
280 throws com.liferay.portal.kernel.exception.PortalException,
281 com.liferay.portal.kernel.exception.SystemException;
282
283 public com.liferay.portlet.dynamicdatamapping.model.DDMStructure copyStructure(
284 long userId, long structureId,
285 java.util.Map<java.util.Locale, java.lang.String> nameMap,
286 java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
287 com.liferay.portal.service.ServiceContext serviceContext)
288 throws com.liferay.portal.kernel.exception.PortalException,
289 com.liferay.portal.kernel.exception.SystemException;
290
291 public void deleteStructure(
292 com.liferay.portlet.dynamicdatamapping.model.DDMStructure structure)
293 throws com.liferay.portal.kernel.exception.PortalException,
294 com.liferay.portal.kernel.exception.SystemException;
295
296 public void deleteStructure(long structureId)
297 throws com.liferay.portal.kernel.exception.PortalException,
298 com.liferay.portal.kernel.exception.SystemException;
299
300 public void deleteStructure(long groupId, java.lang.String structureKey)
301 throws com.liferay.portal.kernel.exception.PortalException,
302 com.liferay.portal.kernel.exception.SystemException;
303
304 public void deleteStructures(long groupId)
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 com.liferay.portlet.dynamicdatamapping.model.DDMStructure fetchStructure(
310 long structureId)
311 throws com.liferay.portal.kernel.exception.SystemException;
312
313 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
314 public com.liferay.portlet.dynamicdatamapping.model.DDMStructure fetchStructure(
315 long groupId, java.lang.String structureKey)
316 throws com.liferay.portal.kernel.exception.SystemException;
317
318 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
319 public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> getClassStructures(
320 long classNameId)
321 throws com.liferay.portal.kernel.exception.SystemException;
322
323 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
324 public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> getClassStructures(
325 long classNameId, int start, int end)
326 throws com.liferay.portal.kernel.exception.SystemException;
327
328 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
329 public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> getClassStructures(
330 long classNameId,
331 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
332 throws com.liferay.portal.kernel.exception.SystemException;
333
334 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
335 public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> getDLFileEntryTypeStructures(
336 long dlFileEntryTypeId)
337 throws com.liferay.portal.kernel.exception.SystemException;
338
339 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
340 public com.liferay.portlet.dynamicdatamapping.model.DDMStructure getStructure(
341 long structureId)
342 throws com.liferay.portal.kernel.exception.PortalException,
343 com.liferay.portal.kernel.exception.SystemException;
344
345 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
346 public com.liferay.portlet.dynamicdatamapping.model.DDMStructure getStructure(
347 long groupId, java.lang.String structureKey)
348 throws com.liferay.portal.kernel.exception.PortalException,
349 com.liferay.portal.kernel.exception.SystemException;
350
351 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
352 public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> getStructure(
353 long groupId, java.lang.String name, java.lang.String description)
354 throws com.liferay.portal.kernel.exception.SystemException;
355
356
359 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
360 public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> getStructureEntries()
361 throws com.liferay.portal.kernel.exception.SystemException;
362
363
366 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
367 public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> getStructureEntries(
368 long groupId)
369 throws com.liferay.portal.kernel.exception.SystemException;
370
371
374 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
375 public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> getStructureEntries(
376 long groupId, int start, int end)
377 throws com.liferay.portal.kernel.exception.SystemException;
378
379 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
380 public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> getStructures()
381 throws com.liferay.portal.kernel.exception.SystemException;
382
383 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
384 public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> getStructures(
385 long groupId)
386 throws com.liferay.portal.kernel.exception.SystemException;
387
388 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
389 public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> getStructures(
390 long groupId, int start, int end)
391 throws com.liferay.portal.kernel.exception.SystemException;
392
393 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
394 public int getStructuresCount(long groupId)
395 throws com.liferay.portal.kernel.exception.SystemException;
396
397 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
398 public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> search(
399 long companyId, long[] groupIds, long[] classNameIds,
400 java.lang.String keywords, int start, int end,
401 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
402 throws com.liferay.portal.kernel.exception.SystemException;
403
404 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
405 public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> search(
406 long companyId, long[] groupIds, long[] classNameIds,
407 java.lang.String name, java.lang.String description,
408 java.lang.String storageType, int type, boolean andOperator, int start,
409 int end,
410 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
411 throws com.liferay.portal.kernel.exception.SystemException;
412
413 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
414 public int searchCount(long companyId, long[] groupIds,
415 long[] classNameIds, java.lang.String keywords)
416 throws com.liferay.portal.kernel.exception.SystemException;
417
418 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
419 public int searchCount(long companyId, long[] groupIds,
420 long[] classNameIds, java.lang.String name,
421 java.lang.String description, java.lang.String storageType, int type,
422 boolean andOperator)
423 throws com.liferay.portal.kernel.exception.SystemException;
424
425 public com.liferay.portlet.dynamicdatamapping.model.DDMStructure updateStructure(
426 long structureId,
427 java.util.Map<java.util.Locale, java.lang.String> nameMap,
428 java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
429 java.lang.String xsd,
430 com.liferay.portal.service.ServiceContext serviceContext)
431 throws com.liferay.portal.kernel.exception.PortalException,
432 com.liferay.portal.kernel.exception.SystemException;
433
434 public com.liferay.portlet.dynamicdatamapping.model.DDMStructure updateStructure(
435 long groupId, java.lang.String structureKey,
436 java.util.Map<java.util.Locale, java.lang.String> nameMap,
437 java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
438 java.lang.String xsd,
439 com.liferay.portal.service.ServiceContext serviceContext)
440 throws com.liferay.portal.kernel.exception.PortalException,
441 com.liferay.portal.kernel.exception.SystemException;
442 }