001
014
015 package com.liferay.portlet.dynamicdatalists.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 DDLRecordLocalService extends PersistedModelLocalService {
040
045
046
053 public com.liferay.portlet.dynamicdatalists.model.DDLRecord addDDLRecord(
054 com.liferay.portlet.dynamicdatalists.model.DDLRecord ddlRecord)
055 throws com.liferay.portal.kernel.exception.SystemException;
056
057
063 public com.liferay.portlet.dynamicdatalists.model.DDLRecord createDDLRecord(
064 long recordId);
065
066
073 public void deleteDDLRecord(long recordId)
074 throws com.liferay.portal.kernel.exception.PortalException,
075 com.liferay.portal.kernel.exception.SystemException;
076
077
083 public void deleteDDLRecord(
084 com.liferay.portlet.dynamicdatalists.model.DDLRecord ddlRecord)
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.dynamicdatalists.model.DDLRecord getDDLRecord(
159 long recordId)
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.dynamicdatalists.model.DDLRecord getDDLRecordByUuidAndGroupId(
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.dynamicdatalists.model.DDLRecord> getDDLRecords(
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 getDDLRecordsCount()
209 throws com.liferay.portal.kernel.exception.SystemException;
210
211
218 public com.liferay.portlet.dynamicdatalists.model.DDLRecord updateDDLRecord(
219 com.liferay.portlet.dynamicdatalists.model.DDLRecord ddlRecord)
220 throws com.liferay.portal.kernel.exception.SystemException;
221
222
230 public com.liferay.portlet.dynamicdatalists.model.DDLRecord updateDDLRecord(
231 com.liferay.portlet.dynamicdatalists.model.DDLRecord ddlRecord,
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 public com.liferay.portlet.dynamicdatalists.model.DDLRecord addRecord(
250 long userId, long groupId, long recordSetId, int displayIndex,
251 com.liferay.portlet.dynamicdatamapping.storage.Fields fields,
252 com.liferay.portal.service.ServiceContext serviceContext)
253 throws com.liferay.portal.kernel.exception.PortalException,
254 com.liferay.portal.kernel.exception.SystemException;
255
256 public com.liferay.portlet.dynamicdatalists.model.DDLRecord addRecord(
257 long userId, long groupId, long recordSetId, int displayIndex,
258 java.util.Map<java.lang.String, java.io.Serializable> fieldsMap,
259 com.liferay.portal.service.ServiceContext serviceContext)
260 throws com.liferay.portal.kernel.exception.PortalException,
261 com.liferay.portal.kernel.exception.SystemException;
262
263 public void deleteRecord(
264 com.liferay.portlet.dynamicdatalists.model.DDLRecord record)
265 throws com.liferay.portal.kernel.exception.PortalException,
266 com.liferay.portal.kernel.exception.SystemException;
267
268 public void deleteRecord(long recordId)
269 throws com.liferay.portal.kernel.exception.PortalException,
270 com.liferay.portal.kernel.exception.SystemException;
271
272 public void deleteRecords(long recordSetId)
273 throws com.liferay.portal.kernel.exception.PortalException,
274 com.liferay.portal.kernel.exception.SystemException;
275
276 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
277 public com.liferay.portlet.dynamicdatalists.model.DDLRecord fetchRecord(
278 long recordId)
279 throws com.liferay.portal.kernel.exception.SystemException;
280
281 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
282 public com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion getLatestRecordVersion(
283 long recordId)
284 throws com.liferay.portal.kernel.exception.PortalException,
285 com.liferay.portal.kernel.exception.SystemException;
286
287 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
288 public com.liferay.portlet.dynamicdatalists.model.DDLRecord getRecord(
289 long recordId)
290 throws com.liferay.portal.kernel.exception.PortalException,
291 com.liferay.portal.kernel.exception.SystemException;
292
293 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
294 public java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecord> getRecords(
295 long recordSetId)
296 throws com.liferay.portal.kernel.exception.SystemException;
297
298 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
299 public java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecord> getRecords(
300 long recordSetId, int status, int start, int end,
301 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
302 throws com.liferay.portal.kernel.exception.SystemException;
303
304 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
305 public java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecord> getRecords(
306 long recordSetId, long userId)
307 throws com.liferay.portal.kernel.exception.SystemException;
308
309 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
310 public int getRecordsCount(long recordSetId, int status)
311 throws com.liferay.portal.kernel.exception.SystemException;
312
313 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
314 public com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion getRecordVersion(
315 long recordVersionId)
316 throws com.liferay.portal.kernel.exception.PortalException,
317 com.liferay.portal.kernel.exception.SystemException;
318
319 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
320 public com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion getRecordVersion(
321 long recordId, java.lang.String version)
322 throws com.liferay.portal.kernel.exception.PortalException,
323 com.liferay.portal.kernel.exception.SystemException;
324
325 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
326 public java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion> getRecordVersions(
327 long recordId, int start, int end,
328 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
329 throws com.liferay.portal.kernel.exception.SystemException;
330
331 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
332 public int getRecordVersionsCount(long recordId)
333 throws com.liferay.portal.kernel.exception.SystemException;
334
335 public void revertRecordVersion(long userId, long recordId,
336 java.lang.String version,
337 com.liferay.portal.service.ServiceContext serviceContext)
338 throws com.liferay.portal.kernel.exception.PortalException,
339 com.liferay.portal.kernel.exception.SystemException;
340
341 public void updateAsset(long userId,
342 com.liferay.portlet.dynamicdatalists.model.DDLRecord record,
343 com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion recordVersion,
344 long[] assetCategoryIds, java.lang.String[] assetTagNames,
345 java.util.Locale locale)
346 throws com.liferay.portal.kernel.exception.PortalException,
347 com.liferay.portal.kernel.exception.SystemException;
348
349 public com.liferay.portlet.dynamicdatalists.model.DDLRecord updateRecord(
350 long userId, long recordId, boolean majorVersion, int displayIndex,
351 com.liferay.portlet.dynamicdatamapping.storage.Fields fields,
352 boolean mergeFields,
353 com.liferay.portal.service.ServiceContext serviceContext)
354 throws com.liferay.portal.kernel.exception.PortalException,
355 com.liferay.portal.kernel.exception.SystemException;
356
357 public com.liferay.portlet.dynamicdatalists.model.DDLRecord updateRecord(
358 long userId, long recordId, int displayIndex,
359 java.util.Map<java.lang.String, java.io.Serializable> fieldsMap,
360 boolean mergeFields,
361 com.liferay.portal.service.ServiceContext serviceContext)
362 throws com.liferay.portal.kernel.exception.PortalException,
363 com.liferay.portal.kernel.exception.SystemException;
364
365 public com.liferay.portlet.dynamicdatalists.model.DDLRecord updateStatus(
366 long userId, long recordVersionId, int status,
367 com.liferay.portal.service.ServiceContext serviceContext)
368 throws com.liferay.portal.kernel.exception.PortalException,
369 com.liferay.portal.kernel.exception.SystemException;
370 }