/
BlogsEntryLocalService.java
639 lines (548 loc) · 25.6 KB
/
BlogsEntryLocalService.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
/**
* SPDX-FileCopyrightText: (c) 2000 Liferay, Inc. https://liferay.com
* SPDX-License-Identifier: LGPL-2.1-or-later OR LicenseRef-Liferay-DXP-EULA-2.0.0-2023-06
*/
package com.liferay.blogs.service;
import com.liferay.blogs.model.BlogsEntry;
import com.liferay.exportimport.kernel.lar.PortletDataContext;
import com.liferay.petra.function.UnsafeFunction;
import com.liferay.petra.sql.dsl.query.DSLQuery;
import com.liferay.portal.kernel.change.tracking.CTAware;
import com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery;
import com.liferay.portal.kernel.dao.orm.DynamicQuery;
import com.liferay.portal.kernel.dao.orm.ExportActionableDynamicQuery;
import com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery;
import com.liferay.portal.kernel.dao.orm.Projection;
import com.liferay.portal.kernel.dao.orm.QueryDefinition;
import com.liferay.portal.kernel.exception.PortalException;
import com.liferay.portal.kernel.exception.SystemException;
import com.liferay.portal.kernel.model.PersistedModel;
import com.liferay.portal.kernel.model.SystemEventConstants;
import com.liferay.portal.kernel.repository.model.FileEntry;
import com.liferay.portal.kernel.repository.model.Folder;
import com.liferay.portal.kernel.search.Indexable;
import com.liferay.portal.kernel.search.IndexableType;
import com.liferay.portal.kernel.service.BaseLocalService;
import com.liferay.portal.kernel.service.PersistedModelLocalService;
import com.liferay.portal.kernel.service.ServiceContext;
import com.liferay.portal.kernel.service.change.tracking.CTService;
import com.liferay.portal.kernel.service.permission.ModelPermissions;
import com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence;
import com.liferay.portal.kernel.servlet.taglib.ui.ImageSelector;
import com.liferay.portal.kernel.systemevent.SystemEvent;
import com.liferay.portal.kernel.transaction.Isolation;
import com.liferay.portal.kernel.transaction.Propagation;
import com.liferay.portal.kernel.transaction.Transactional;
import com.liferay.portal.kernel.util.OrderByComparator;
import java.io.InputStream;
import java.io.Serializable;
import java.util.Date;
import java.util.List;
import java.util.Map;
import org.osgi.annotation.versioning.ProviderType;
/**
* Provides the local service interface for BlogsEntry. Methods of this
* service will not have security checks based on the propagated JAAS
* credentials because this service can only be accessed from within the same
* VM.
*
* @author Brian Wing Shun Chan
* @see BlogsEntryLocalServiceUtil
* @generated
*/
@CTAware
@ProviderType
@Transactional(
isolation = Isolation.PORTAL,
rollbackFor = {PortalException.class, SystemException.class}
)
public interface BlogsEntryLocalService
extends BaseLocalService, CTService<BlogsEntry>,
PersistedModelLocalService {
/*
* NOTE FOR DEVELOPERS:
*
* Never modify this interface directly. Add custom service methods to <code>com.liferay.blogs.service.impl.BlogsEntryLocalServiceImpl</code> and rerun ServiceBuilder to automatically copy the method declarations to this interface. Consume the blogs entry local service via injection or a <code>org.osgi.util.tracker.ServiceTracker</code>. Use {@link BlogsEntryLocalServiceUtil} if injection and service tracking are not available.
*/
public FileEntry addAttachmentFileEntry(
BlogsEntry entry, long userId, String fileName, String mimeType,
InputStream inputStream)
throws PortalException;
public Folder addAttachmentsFolder(long userId, long groupId)
throws PortalException;
/**
* Adds the blogs entry to the database. Also notifies the appropriate model listeners.
*
* <p>
* <strong>Important:</strong> Inspect BlogsEntryLocalServiceImpl for overloaded versions of the method. If provided, use these entry points to the API, as the implementation logic may require the additional parameters defined there.
* </p>
*
* @param blogsEntry the blogs entry
* @return the blogs entry that was added
*/
@Indexable(type = IndexableType.REINDEX)
public BlogsEntry addBlogsEntry(BlogsEntry blogsEntry);
public void addCoverImage(long entryId, ImageSelector imageSelector)
throws PortalException;
public BlogsEntry addEntry(
long userId, String title, String content, Date displayDate,
ServiceContext serviceContext)
throws PortalException;
public BlogsEntry addEntry(
long userId, String title, String content,
ServiceContext serviceContext)
throws PortalException;
@Indexable(type = IndexableType.REINDEX)
public BlogsEntry addEntry(
long userId, String title, String subtitle, String description,
String content, Date displayDate, boolean allowPingbacks,
boolean allowTrackbacks, String[] trackbacks,
String coverImageCaption, ImageSelector coverImageImageSelector,
ImageSelector smallImageImageSelector,
ServiceContext serviceContext)
throws PortalException;
public BlogsEntry addEntry(
long userId, String title, String subtitle, String description,
String content, int displayDateMonth, int displayDateDay,
int displayDateYear, int displayDateHour, int displayDateMinute,
boolean allowPingbacks, boolean allowTrackbacks,
String[] trackbacks, String coverImageCaption,
ImageSelector coverImageImageSelector,
ImageSelector smallImageImageSelector,
ServiceContext serviceContext)
throws PortalException;
@Indexable(type = IndexableType.REINDEX)
public BlogsEntry addEntry(
String externalReferenceCode, long userId, String title,
String subtitle, String urlTitle, String description,
String content, Date displayDate, boolean allowPingbacks,
boolean allowTrackbacks, String[] trackbacks,
String coverImageCaption, ImageSelector coverImageImageSelector,
ImageSelector smallImageImageSelector,
ServiceContext serviceContext)
throws PortalException;
public BlogsEntry addEntry(
String externalReferenceCode, long userId, String title,
String subtitle, String urlTitle, String description,
String content, int displayDateMonth, int displayDateDay,
int displayDateYear, int displayDateHour, int displayDateMinute,
boolean allowPingbacks, boolean allowTrackbacks,
String[] trackbacks, String coverImageCaption,
ImageSelector coverImageImageSelector,
ImageSelector smallImageImageSelector,
ServiceContext serviceContext)
throws PortalException;
public void addEntryResources(
BlogsEntry entry, boolean addGroupPermissions,
boolean addGuestPermissions)
throws PortalException;
public void addEntryResources(
BlogsEntry entry, ModelPermissions modelPermissions)
throws PortalException;
public void addEntryResources(
long entryId, boolean addGroupPermissions,
boolean addGuestPermissions)
throws PortalException;
public void addEntryResources(
long entryId, ModelPermissions modelPermissions)
throws PortalException;
public long addOriginalImageFileEntry(
long userId, long groupId, long entryId,
ImageSelector imageSelector)
throws PortalException;
public void addSmallImage(long entryId, ImageSelector imageSelector)
throws PortalException;
public void checkEntries() throws PortalException;
/**
* Creates a new blogs entry with the primary key. Does not add the blogs entry to the database.
*
* @param entryId the primary key for the new blogs entry
* @return the new blogs entry
*/
@Transactional(enabled = false)
public BlogsEntry createBlogsEntry(long entryId);
/**
* @throws PortalException
*/
public PersistedModel createPersistedModel(Serializable primaryKeyObj)
throws PortalException;
/**
* Deletes the blogs entry from the database. Also notifies the appropriate model listeners.
*
* <p>
* <strong>Important:</strong> Inspect BlogsEntryLocalServiceImpl for overloaded versions of the method. If provided, use these entry points to the API, as the implementation logic may require the additional parameters defined there.
* </p>
*
* @param blogsEntry the blogs entry
* @return the blogs entry that was removed
*/
@Indexable(type = IndexableType.DELETE)
public BlogsEntry deleteBlogsEntry(BlogsEntry blogsEntry);
/**
* Deletes the blogs entry with the primary key from the database. Also notifies the appropriate model listeners.
*
* <p>
* <strong>Important:</strong> Inspect BlogsEntryLocalServiceImpl for overloaded versions of the method. If provided, use these entry points to the API, as the implementation logic may require the additional parameters defined there.
* </p>
*
* @param entryId the primary key of the blogs entry
* @return the blogs entry that was removed
* @throws PortalException if a blogs entry with the primary key could not be found
*/
@Indexable(type = IndexableType.DELETE)
public BlogsEntry deleteBlogsEntry(long entryId) throws PortalException;
public void deleteEntries(long groupId) throws PortalException;
@Indexable(type = IndexableType.DELETE)
@SystemEvent(type = SystemEventConstants.TYPE_DELETE)
public BlogsEntry deleteEntry(BlogsEntry entry) throws PortalException;
public void deleteEntry(long entryId) throws PortalException;
/**
* @throws PortalException
*/
@Override
public PersistedModel deletePersistedModel(PersistedModel persistedModel)
throws PortalException;
@Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
public <T> T dslQuery(DSLQuery dslQuery);
@Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
public int dslQueryCount(DSLQuery dslQuery);
@Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
public DynamicQuery dynamicQuery();
/**
* Performs a dynamic query on the database and returns the matching rows.
*
* @param dynamicQuery the dynamic query
* @return the matching rows
*/
@Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
public <T> List<T> dynamicQuery(DynamicQuery dynamicQuery);
/**
* Performs a dynamic query on the database and returns a range of the matching rows.
*
* <p>
* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to <code>com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS</code> will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent, then the query will include the default ORDER BY logic from <code>com.liferay.blogs.model.impl.BlogsEntryModelImpl</code>.
* </p>
*
* @param dynamicQuery the dynamic query
* @param start the lower bound of the range of model instances
* @param end the upper bound of the range of model instances (not inclusive)
* @return the range of matching rows
*/
@Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
public <T> List<T> dynamicQuery(
DynamicQuery dynamicQuery, int start, int end);
/**
* Performs a dynamic query on the database and returns an ordered range of the matching rows.
*
* <p>
* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to <code>com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS</code> will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent, then the query will include the default ORDER BY logic from <code>com.liferay.blogs.model.impl.BlogsEntryModelImpl</code>.
* </p>
*
* @param dynamicQuery the dynamic query
* @param start the lower bound of the range of model instances
* @param end the upper bound of the range of model instances (not inclusive)
* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
* @return the ordered range of matching rows
*/
@Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
public <T> List<T> dynamicQuery(
DynamicQuery dynamicQuery, int start, int end,
OrderByComparator<T> orderByComparator);
/**
* Returns the number of rows matching the dynamic query.
*
* @param dynamicQuery the dynamic query
* @return the number of rows matching the dynamic query
*/
@Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
public long dynamicQueryCount(DynamicQuery dynamicQuery);
/**
* Returns the number of rows matching the dynamic query.
*
* @param dynamicQuery the dynamic query
* @param projection the projection to apply to the query
* @return the number of rows matching the dynamic query
*/
@Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
public long dynamicQueryCount(
DynamicQuery dynamicQuery, Projection projection);
@Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
public Folder fetchAttachmentsFolder(long userId, long groupId);
@Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
public BlogsEntry fetchBlogsEntry(long entryId);
@Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
public BlogsEntry fetchBlogsEntryByExternalReferenceCode(
String externalReferenceCode, long groupId);
/**
* Returns the blogs entry matching the UUID and group.
*
* @param uuid the blogs entry's UUID
* @param groupId the primary key of the group
* @return the matching blogs entry, or <code>null</code> if a matching blogs entry could not be found
*/
@Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
public BlogsEntry fetchBlogsEntryByUuidAndGroupId(
String uuid, long groupId);
@Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
public BlogsEntry fetchEntry(long groupId, String urlTitle);
@Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
public ActionableDynamicQuery getActionableDynamicQuery();
/**
* Returns a range of all the blogs entries.
*
* <p>
* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to <code>com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS</code> will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent, then the query will include the default ORDER BY logic from <code>com.liferay.blogs.model.impl.BlogsEntryModelImpl</code>.
* </p>
*
* @param start the lower bound of the range of blogs entries
* @param end the upper bound of the range of blogs entries (not inclusive)
* @return the range of blogs entries
*/
@Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
public List<BlogsEntry> getBlogsEntries(int start, int end);
/**
* Returns all the blogs entries matching the UUID and company.
*
* @param uuid the UUID of the blogs entries
* @param companyId the primary key of the company
* @return the matching blogs entries, or an empty list if no matches were found
*/
@Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
public List<BlogsEntry> getBlogsEntriesByUuidAndCompanyId(
String uuid, long companyId);
/**
* Returns a range of blogs entries matching the UUID and company.
*
* @param uuid the UUID of the blogs entries
* @param companyId the primary key of the company
* @param start the lower bound of the range of blogs entries
* @param end the upper bound of the range of blogs entries (not inclusive)
* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
* @return the range of matching blogs entries, or an empty list if no matches were found
*/
@Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
public List<BlogsEntry> getBlogsEntriesByUuidAndCompanyId(
String uuid, long companyId, int start, int end,
OrderByComparator<BlogsEntry> orderByComparator);
/**
* Returns the number of blogs entries.
*
* @return the number of blogs entries
*/
@Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
public int getBlogsEntriesCount();
/**
* Returns the blogs entry with the primary key.
*
* @param entryId the primary key of the blogs entry
* @return the blogs entry
* @throws PortalException if a blogs entry with the primary key could not be found
*/
@Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
public BlogsEntry getBlogsEntry(long entryId) throws PortalException;
@Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
public BlogsEntry getBlogsEntryByExternalReferenceCode(
String externalReferenceCode, long groupId)
throws PortalException;
/**
* Returns the blogs entry matching the UUID and group.
*
* @param uuid the blogs entry's UUID
* @param groupId the primary key of the group
* @return the matching blogs entry
* @throws PortalException if a matching blogs entry could not be found
*/
@Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
public BlogsEntry getBlogsEntryByUuidAndGroupId(String uuid, long groupId)
throws PortalException;
@Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
public List<BlogsEntry> getCompanyEntries(
long companyId, Date displayDate,
QueryDefinition<BlogsEntry> queryDefinition);
@Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
public int getCompanyEntriesCount(
long companyId, Date displayDate,
QueryDefinition<BlogsEntry> queryDefinition);
@Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
public BlogsEntry[] getEntriesPrevAndNext(long entryId)
throws PortalException;
@Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
public BlogsEntry getEntry(long entryId) throws PortalException;
@Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
public BlogsEntry getEntry(long groupId, String urlTitle)
throws PortalException;
@Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
public ExportActionableDynamicQuery getExportActionableDynamicQuery(
PortletDataContext portletDataContext);
@Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
public List<BlogsEntry> getGroupEntries(
long groupId, Date displayDate,
QueryDefinition<BlogsEntry> queryDefinition);
@Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
public List<BlogsEntry> getGroupEntries(
long groupId, QueryDefinition<BlogsEntry> queryDefinition);
@Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
public int getGroupEntriesCount(
long groupId, Date displayDate,
QueryDefinition<BlogsEntry> queryDefinition);
@Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
public int getGroupEntriesCount(
long groupId, QueryDefinition<BlogsEntry> queryDefinition);
@Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
public List<BlogsEntry> getGroupsEntries(
long companyId, long groupId, Date displayDate,
QueryDefinition<BlogsEntry> queryDefinition);
@Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
public List<BlogsEntry> getGroupUserEntries(
long groupId, long userId, Date displayDate,
QueryDefinition<BlogsEntry> queryDefinition);
@Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
public int getGroupUserEntriesCount(
long groupId, long userId, Date displayDate,
QueryDefinition<BlogsEntry> queryDefinition);
@Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
public IndexableActionableDynamicQuery getIndexableActionableDynamicQuery();
@Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
public List<BlogsEntry> getOrganizationEntries(
long organizationId, Date displayDate,
QueryDefinition<BlogsEntry> queryDefinition);
@Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
public int getOrganizationEntriesCount(
long organizationId, Date displayDate,
QueryDefinition<BlogsEntry> queryDefinition);
/**
* Returns the OSGi service identifier.
*
* @return the OSGi service identifier
*/
public String getOSGiServiceIdentifier();
/**
* @throws PortalException
*/
@Override
@Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
public PersistedModel getPersistedModel(Serializable primaryKeyObj)
throws PortalException;
@Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
public String getUniqueUrlTitle(BlogsEntry entry);
public void moveEntriesToTrash(long groupId, long userId)
throws PortalException;
/**
* Moves the blogs entry to the recycle bin. Social activity counters for
* this entry get disabled.
*
* @param userId the primary key of the user moving the blogs entry
* @param entry the blogs entry to be moved
* @return the moved blogs entry
*/
@Indexable(type = IndexableType.REINDEX)
public BlogsEntry moveEntryToTrash(long userId, BlogsEntry entry)
throws PortalException;
/**
* Moves the blogs entry with the ID to the recycle bin.
*
* @param userId the primary key of the user moving the blogs entry
* @param entryId the primary key of the blogs entry to be moved
* @return the moved blogs entry
*/
public BlogsEntry moveEntryToTrash(long userId, long entryId)
throws PortalException;
/**
* Restores the blogs entry with the ID from the recycle bin. Social
* activity counters for this entry get activated.
*
* @param userId the primary key of the user restoring the blogs entry
* @param entryId the primary key of the blogs entry to be restored
* @return the restored blogs entry from the recycle bin
*/
@Indexable(type = IndexableType.REINDEX)
public BlogsEntry restoreEntryFromTrash(long userId, long entryId)
throws PortalException;
public void subscribe(long userId, long groupId) throws PortalException;
public void unsubscribe(long userId, long groupId) throws PortalException;
public void updateAsset(
long userId, BlogsEntry entry, long[] assetCategoryIds,
String[] assetTagNames, long[] assetLinkEntryIds, Double priority)
throws PortalException;
/**
* Updates the blogs entry in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
*
* <p>
* <strong>Important:</strong> Inspect BlogsEntryLocalServiceImpl for overloaded versions of the method. If provided, use these entry points to the API, as the implementation logic may require the additional parameters defined there.
* </p>
*
* @param blogsEntry the blogs entry
* @return the blogs entry that was updated
*/
@Indexable(type = IndexableType.REINDEX)
public BlogsEntry updateBlogsEntry(BlogsEntry blogsEntry);
public BlogsEntry updateEntry(
long userId, long entryId, String title, String content,
ServiceContext serviceContext)
throws PortalException;
@Indexable(type = IndexableType.REINDEX)
public BlogsEntry updateEntry(
long userId, long entryId, String title, String subtitle,
String description, String content, Date displayDate,
boolean allowPingbacks, boolean allowTrackbacks,
String[] trackbacks, String coverImageCaption,
ImageSelector coverImageImageSelector,
ImageSelector smallImageImageSelector,
ServiceContext serviceContext)
throws PortalException;
public BlogsEntry updateEntry(
long userId, long entryId, String title, String subtitle,
String description, String content, int displayDateMonth,
int displayDateDay, int displayDateYear, int displayDateHour,
int displayDateMinute, boolean allowPingbacks,
boolean allowTrackbacks, String[] trackbacks,
String coverImageCaption, ImageSelector coverImageImageSelector,
ImageSelector smallImageImageSelector,
ServiceContext serviceContext)
throws PortalException;
@Indexable(type = IndexableType.REINDEX)
public BlogsEntry updateEntry(
long userId, long entryId, String title, String subtitle,
String urlTitle, String description, String content,
Date displayDate, boolean allowPingbacks, boolean allowTrackbacks,
String[] trackbacks, String coverImageCaption,
ImageSelector coverImageImageSelector,
ImageSelector smallImageImageSelector,
ServiceContext serviceContext)
throws PortalException;
public BlogsEntry updateEntry(
long userId, long entryId, String title, String subtitle,
String urlTitle, String description, String content,
int displayDateMonth, int displayDateDay, int displayDateYear,
int displayDateHour, int displayDateMinute, boolean allowPingbacks,
boolean allowTrackbacks, String[] trackbacks,
String coverImageCaption, ImageSelector coverImageImageSelector,
ImageSelector smallImageImageSelector,
ServiceContext serviceContext)
throws PortalException;
public void updateEntryResources(
BlogsEntry entry, ModelPermissions modelPermissions)
throws PortalException;
public void updateEntryResources(
BlogsEntry entry, String[] groupPermissions,
String[] guestPermissions)
throws PortalException;
@Indexable(type = IndexableType.REINDEX)
public BlogsEntry updateStatus(
long userId, long entryId, int status,
ServiceContext serviceContext,
Map<String, Serializable> workflowContext)
throws PortalException;
@Override
@Transactional(enabled = false)
public CTPersistence<BlogsEntry> getCTPersistence();
@Override
@Transactional(enabled = false)
public Class<BlogsEntry> getModelClass();
@Override
@Transactional(rollbackFor = Throwable.class)
public <R, E extends Throwable> R updateWithUnsafeFunction(
UnsafeFunction<CTPersistence<BlogsEntry>, R, E>
updateUnsafeFunction)
throws E;
}