001 /** 002 * Copyright (c) 2000-present Liferay, Inc. All rights reserved. 003 * 004 * This library is free software; you can redistribute it and/or modify it under 005 * the terms of the GNU Lesser General Public License as published by the Free 006 * Software Foundation; either version 2.1 of the License, or (at your option) 007 * any later version. 008 * 009 * This library is distributed in the hope that it will be useful, but WITHOUT 010 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS 011 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more 012 * details. 013 */ 014 015 package com.liferay.portlet.journal.service; 016 017 import aQute.bnd.annotation.ProviderType; 018 019 import com.liferay.portal.service.ServiceWrapper; 020 021 /** 022 * Provides a wrapper for {@link JournalArticleLocalService}. 023 * 024 * @author Brian Wing Shun Chan 025 * @see JournalArticleLocalService 026 * @generated 027 */ 028 @ProviderType 029 public class JournalArticleLocalServiceWrapper 030 implements JournalArticleLocalService, 031 ServiceWrapper<JournalArticleLocalService> { 032 public JournalArticleLocalServiceWrapper( 033 JournalArticleLocalService journalArticleLocalService) { 034 _journalArticleLocalService = journalArticleLocalService; 035 } 036 037 /** 038 * Adds a web content article with additional parameters. 039 * 040 * @param userId the primary key of the web content article's creator/owner 041 * @param groupId the primary key of the web content article's group 042 * @param folderId the primary key of the web content article folder 043 * @param classNameId the primary key of the DDMStructure class if the web 044 content article is related to a DDM structure, the primary key of 045 the class name associated with the article, or {@link 046 JournalArticleConstants#CLASSNAME_ID_DEFAULT} otherwise 047 * @param classPK the primary key of the DDM structure, if the primary key 048 of the DDMStructure class is given as the 049 <code>classNameId</code> parameter, the primary key of the class 050 associated with the web content article, or <code>0</code> 051 otherwise 052 * @param articleId the primary key of the web content article 053 * @param autoArticleId whether to auto generate the web content article ID 054 * @param version the web content article's version 055 * @param titleMap the web content article's locales and localized titles 056 * @param descriptionMap the web content article's locales and localized 057 descriptions 058 * @param content the HTML content wrapped in XML. For more information, 059 see the content example in the class description for {@link 060 JournalArticleLocalServiceImpl}. 061 * @param ddmStructureKey the primary key of the web content article's DDM 062 structure, if the article is related to a DDM structure, or 063 <code>null</code> otherwise 064 * @param ddmTemplateKey the primary key of the web content article's DDM 065 template 066 * @param layoutUuid the unique string identifying the web content 067 article's display page 068 * @param displayDateMonth the month the web content article is set to 069 display 070 * @param displayDateDay the calendar day the web content article is set to 071 display 072 * @param displayDateYear the year the web content article is set to 073 display 074 * @param displayDateHour the hour the web content article is set to 075 display 076 * @param displayDateMinute the minute the web content article is set to 077 display 078 * @param expirationDateMonth the month the web content article is set to 079 expire 080 * @param expirationDateDay the calendar day the web content article is set 081 to expire 082 * @param expirationDateYear the year the web content article is set to 083 expire 084 * @param expirationDateHour the hour the web content article is set to 085 expire 086 * @param expirationDateMinute the minute the web content article is set to 087 expire 088 * @param neverExpire whether the web content article is not set to auto 089 expire 090 * @param reviewDateMonth the month the web content article is set for 091 review 092 * @param reviewDateDay the calendar day the web content article is set for 093 review 094 * @param reviewDateYear the year the web content article is set for review 095 * @param reviewDateHour the hour the web content article is set for review 096 * @param reviewDateMinute the minute the web content article is set for 097 review 098 * @param neverReview whether the web content article is not set for review 099 * @param indexable whether the web content article is searchable 100 * @param smallImage whether the web content article has a small image 101 * @param smallImageURL the web content article's small image URL 102 * @param smallImageFile the web content article's small image file 103 * @param images the web content's images 104 * @param articleURL the web content article's accessible URL 105 * @param serviceContext the service context to be applied. Can set the 106 UUID, creation date, modification date, expando bridge 107 attributes, guest permissions, group permissions, asset category 108 IDs, asset tag names, asset link entry IDs, the "urlTitle" 109 attribute, and workflow actions for the web content article. Can 110 also set whether to add the default guest and group permissions. 111 * @return the web content article 112 * @throws PortalException if a portal exception occurred 113 */ 114 @Override 115 public com.liferay.portlet.journal.model.JournalArticle addArticle( 116 long userId, long groupId, long folderId, long classNameId, 117 long classPK, java.lang.String articleId, boolean autoArticleId, 118 double version, 119 java.util.Map<java.util.Locale, java.lang.String> titleMap, 120 java.util.Map<java.util.Locale, java.lang.String> descriptionMap, 121 java.lang.String content, java.lang.String ddmStructureKey, 122 java.lang.String ddmTemplateKey, java.lang.String layoutUuid, 123 int displayDateMonth, int displayDateDay, int displayDateYear, 124 int displayDateHour, int displayDateMinute, int expirationDateMonth, 125 int expirationDateDay, int expirationDateYear, int expirationDateHour, 126 int expirationDateMinute, boolean neverExpire, int reviewDateMonth, 127 int reviewDateDay, int reviewDateYear, int reviewDateHour, 128 int reviewDateMinute, boolean neverReview, boolean indexable, 129 boolean smallImage, java.lang.String smallImageURL, 130 java.io.File smallImageFile, 131 java.util.Map<java.lang.String, byte[]> images, 132 java.lang.String articleURL, 133 com.liferay.portal.service.ServiceContext serviceContext) 134 throws com.liferay.portal.kernel.exception.PortalException { 135 return _journalArticleLocalService.addArticle(userId, groupId, 136 folderId, classNameId, classPK, articleId, autoArticleId, version, 137 titleMap, descriptionMap, content, ddmStructureKey, ddmTemplateKey, 138 layoutUuid, displayDateMonth, displayDateDay, displayDateYear, 139 displayDateHour, displayDateMinute, expirationDateMonth, 140 expirationDateDay, expirationDateYear, expirationDateHour, 141 expirationDateMinute, neverExpire, reviewDateMonth, reviewDateDay, 142 reviewDateYear, reviewDateHour, reviewDateMinute, neverReview, 143 indexable, smallImage, smallImageURL, smallImageFile, images, 144 articleURL, serviceContext); 145 } 146 147 /** 148 * Adds a web content article. 149 * 150 * @param userId the primary key of the web content article's creator/owner 151 * @param groupId the primary key of the web content article's group 152 * @param folderId the primary key of the web content article folder 153 * @param titleMap the web content article's locales and localized titles 154 * @param descriptionMap the web content article's locales and localized 155 descriptions 156 * @param content the HTML content wrapped in XML. For more information, 157 see the content example in the class description for {@link 158 JournalArticleLocalServiceImpl}. 159 * @param ddmStructureKey the primary key of the web content article's DDM 160 structure, if the article is related to a DDM structure, or 161 <code>null</code> otherwise 162 * @param ddmTemplateKey the primary key of the web content article's DDM 163 template 164 * @param serviceContext the service context to be applied. Can set the 165 UUID, creation date, modification date, expando bridge 166 attributes, guest permissions, group permissions, asset category 167 IDs, asset tag names, asset link entry IDs, the "urlTitle" 168 attribute, and workflow actions for the web content article. Can 169 also set whether to add the default guest and group permissions. 170 * @return the web content article 171 * @throws PortalException if a portal exception occurred 172 */ 173 @Override 174 public com.liferay.portlet.journal.model.JournalArticle addArticle( 175 long userId, long groupId, long folderId, 176 java.util.Map<java.util.Locale, java.lang.String> titleMap, 177 java.util.Map<java.util.Locale, java.lang.String> descriptionMap, 178 java.lang.String content, java.lang.String ddmStructureKey, 179 java.lang.String ddmTemplateKey, 180 com.liferay.portal.service.ServiceContext serviceContext) 181 throws com.liferay.portal.kernel.exception.PortalException { 182 return _journalArticleLocalService.addArticle(userId, groupId, 183 folderId, titleMap, descriptionMap, content, ddmStructureKey, 184 ddmTemplateKey, serviceContext); 185 } 186 187 /** 188 * Adds the resources to the web content article. 189 * 190 * @param article the web content article 191 * @param addGroupPermissions whether to add group permissions 192 * @param addGuestPermissions whether to add guest permissions 193 * @throws PortalException if no portal actions could be found associated 194 with the web content article or if a portal exception occurred 195 */ 196 @Override 197 public void addArticleResources( 198 com.liferay.portlet.journal.model.JournalArticle article, 199 boolean addGroupPermissions, boolean addGuestPermissions) 200 throws com.liferay.portal.kernel.exception.PortalException { 201 _journalArticleLocalService.addArticleResources(article, 202 addGroupPermissions, addGuestPermissions); 203 } 204 205 /** 206 * Adds the model resources with the permissions to the web content article. 207 * 208 * @param article the web content article to add resources to 209 * @param groupPermissions the group permissions to be added 210 * @param guestPermissions the guest permissions to be added 211 * @throws PortalException if a portal exception occurred 212 */ 213 @Override 214 public void addArticleResources( 215 com.liferay.portlet.journal.model.JournalArticle article, 216 java.lang.String[] groupPermissions, java.lang.String[] guestPermissions) 217 throws com.liferay.portal.kernel.exception.PortalException { 218 _journalArticleLocalService.addArticleResources(article, 219 groupPermissions, guestPermissions); 220 } 221 222 /** 223 * Adds the resources to the most recently created web content article. 224 * 225 * @param groupId the primary key of the web content article's group 226 * @param articleId the primary key of the web content article 227 * @param addGroupPermissions whether to add group permissions 228 * @param addGuestPermissions whether to add guest permissions 229 * @throws PortalException if a portal exception occurred 230 */ 231 @Override 232 public void addArticleResources(long groupId, java.lang.String articleId, 233 boolean addGroupPermissions, boolean addGuestPermissions) 234 throws com.liferay.portal.kernel.exception.PortalException { 235 _journalArticleLocalService.addArticleResources(groupId, articleId, 236 addGroupPermissions, addGuestPermissions); 237 } 238 239 /** 240 * Adds the resources with the permissions to the most recently created web 241 * content article. 242 * 243 * @param groupId the primary key of the web content article's group 244 * @param articleId the primary key of the web content article 245 * @param groupPermissions the group permissions to be added 246 * @param guestPermissions the guest permissions to be added 247 * @throws PortalException if a portal exception occurred 248 */ 249 @Override 250 public void addArticleResources(long groupId, java.lang.String articleId, 251 java.lang.String[] groupPermissions, java.lang.String[] guestPermissions) 252 throws com.liferay.portal.kernel.exception.PortalException { 253 _journalArticleLocalService.addArticleResources(groupId, articleId, 254 groupPermissions, guestPermissions); 255 } 256 257 /** 258 * Adds the journal article to the database. Also notifies the appropriate model listeners. 259 * 260 * @param journalArticle the journal article 261 * @return the journal article that was added 262 */ 263 @Override 264 public com.liferay.portlet.journal.model.JournalArticle addJournalArticle( 265 com.liferay.portlet.journal.model.JournalArticle journalArticle) { 266 return _journalArticleLocalService.addJournalArticle(journalArticle); 267 } 268 269 /** 270 * Returns the web content article with the group, article ID, and version. 271 * This method checks for the article's resource primary key and, if not 272 * found, creates a new one. 273 * 274 * @param groupId the primary key of the web content article's group 275 * @param articleId the primary key of the web content article 276 * @param version the web content article's version 277 * @return the matching web content article 278 * @throws PortalException if a matching web content article could not be 279 found 280 */ 281 @Override 282 public com.liferay.portlet.journal.model.JournalArticle checkArticleResourcePrimKey( 283 long groupId, java.lang.String articleId, double version) 284 throws com.liferay.portal.kernel.exception.PortalException { 285 return _journalArticleLocalService.checkArticleResourcePrimKey(groupId, 286 articleId, version); 287 } 288 289 /** 290 * Checks all web content articles by handling their expirations and sending 291 * review notifications based on their current workflow. 292 * 293 * @throws PortalException if a portal exception occurred 294 */ 295 @Override 296 public void checkArticles() 297 throws com.liferay.portal.kernel.exception.PortalException { 298 _journalArticleLocalService.checkArticles(); 299 } 300 301 /** 302 * Checks the web content article matching the group, article ID, and 303 * version, replacing escaped newline and return characters with non-escaped 304 * newline and return characters. 305 * 306 * @param groupId the primary key of the web content article's group 307 * @param articleId the primary key of the web content article 308 * @param version the web content article's version 309 * @throws PortalException if a matching web content article could not be 310 found 311 */ 312 @Override 313 public void checkNewLine(long groupId, java.lang.String articleId, 314 double version) 315 throws com.liferay.portal.kernel.exception.PortalException { 316 _journalArticleLocalService.checkNewLine(groupId, articleId, version); 317 } 318 319 /** 320 * Checks the web content article matching the group, article ID, and 321 * version for an associated structure. If no structure is associated, 322 * return; otherwise check that the article and structure match. 323 * 324 * @param groupId the primary key of the web content article's group 325 * @param articleId the primary key of the web content article 326 * @param version the web content article's version 327 * @throws PortalException if a matching web content article could not be 328 found, if the article's structure does not match it, or if a 329 portal exception occurred 330 */ 331 @Override 332 public void checkStructure(long groupId, java.lang.String articleId, 333 double version) 334 throws com.liferay.portal.kernel.exception.PortalException { 335 _journalArticleLocalService.checkStructure(groupId, articleId, version); 336 } 337 338 /** 339 * Copies the web content article matching the group, article ID, and 340 * version. This method creates a new article, extracting all the values 341 * from the old one and updating its article ID. 342 * 343 * @param userId the primary key of the web content article's creator/owner 344 * @param groupId the primary key of the web content article's group 345 * @param oldArticleId the primary key of the old web content article 346 * @param newArticleId the primary key of the new web content article 347 * @param autoArticleId whether to auto-generate the web content article ID 348 * @param version the web content article's version 349 * @return the new web content article 350 * @throws PortalException if a matching web content article could not be 351 found or if a portal exception occurred 352 */ 353 @Override 354 public com.liferay.portlet.journal.model.JournalArticle copyArticle( 355 long userId, long groupId, java.lang.String oldArticleId, 356 java.lang.String newArticleId, boolean autoArticleId, double version) 357 throws com.liferay.portal.kernel.exception.PortalException { 358 return _journalArticleLocalService.copyArticle(userId, groupId, 359 oldArticleId, newArticleId, autoArticleId, version); 360 } 361 362 /** 363 * Creates a new journal article with the primary key. Does not add the journal article to the database. 364 * 365 * @param id the primary key for the new journal article 366 * @return the new journal article 367 */ 368 @Override 369 public com.liferay.portlet.journal.model.JournalArticle createJournalArticle( 370 long id) { 371 return _journalArticleLocalService.createJournalArticle(id); 372 } 373 374 /** 375 * Deletes the web content article and its resources. 376 * 377 * @param article the web content article 378 * @return the deleted web content article 379 * @throws PortalException if a portal exception occurred 380 */ 381 @Override 382 public com.liferay.portlet.journal.model.JournalArticle deleteArticle( 383 com.liferay.portlet.journal.model.JournalArticle article) 384 throws com.liferay.portal.kernel.exception.PortalException { 385 return _journalArticleLocalService.deleteArticle(article); 386 } 387 388 /** 389 * Deletes the web content article and its resources, optionally sending 390 * email notifying denial of the article if it had not yet been approved. 391 * 392 * @param article the web content article 393 * @param articleURL the web content article's accessible URL to include in 394 email notifications (optionally <code>null</code>) 395 * @param serviceContext the service context to be applied (optionally 396 <code>null</code>). Can set the portlet preferences that include 397 email information to notify recipients of the unapproved web 398 content's denial. 399 * @return the deleted web content article 400 * @throws PortalException if a portal exception occurred 401 */ 402 @Override 403 public com.liferay.portlet.journal.model.JournalArticle deleteArticle( 404 com.liferay.portlet.journal.model.JournalArticle article, 405 java.lang.String articleURL, 406 com.liferay.portal.service.ServiceContext serviceContext) 407 throws com.liferay.portal.kernel.exception.PortalException { 408 return _journalArticleLocalService.deleteArticle(article, articleURL, 409 serviceContext); 410 } 411 412 /** 413 * Deletes all web content articles and their resources matching the group 414 * and article ID, optionally sending email notifying denial of article if 415 * it had not yet been approved. 416 * 417 * @param groupId the primary key of the web content article's group 418 * @param articleId the primary key of the web content article 419 * @param serviceContext the service context to be applied. Can set the 420 portlet preferences that include email information to notify 421 recipients of the unapproved web content article's denial. 422 * @throws PortalException if a portal exception occurred 423 */ 424 @Override 425 public void deleteArticle(long groupId, java.lang.String articleId, 426 com.liferay.portal.service.ServiceContext serviceContext) 427 throws com.liferay.portal.kernel.exception.PortalException { 428 _journalArticleLocalService.deleteArticle(groupId, articleId, 429 serviceContext); 430 } 431 432 /** 433 * Deletes the web content article and its resources matching the group, 434 * article ID, and version, optionally sending email notifying denial of the 435 * web content article if it had not yet been approved. 436 * 437 * @param groupId the primary key of the web content article's group 438 * @param articleId the primary key of the web content article 439 * @param version the web content article's version 440 * @param articleURL the web content article's accessible URL 441 * @param serviceContext the service context to be applied. Can set the 442 portlet preferences that include email information to notify 443 recipients of the unapproved web content article's denial. 444 * @return the deleted web content article 445 * @throws PortalException if a matching web content article could not be 446 found or if a portal exception occurred 447 */ 448 @Override 449 public com.liferay.portlet.journal.model.JournalArticle deleteArticle( 450 long groupId, java.lang.String articleId, double version, 451 java.lang.String articleURL, 452 com.liferay.portal.service.ServiceContext serviceContext) 453 throws com.liferay.portal.kernel.exception.PortalException { 454 return _journalArticleLocalService.deleteArticle(groupId, articleId, 455 version, articleURL, serviceContext); 456 } 457 458 /** 459 * Deletes all the group's web content articles and resources. 460 * 461 * @param groupId the primary key of the web content article's group 462 * @throws PortalException if a portal exception occurred 463 */ 464 @Override 465 public void deleteArticles(long groupId) 466 throws com.liferay.portal.kernel.exception.PortalException { 467 _journalArticleLocalService.deleteArticles(groupId); 468 } 469 470 /** 471 * Deletes all the group's web content articles and resources in the folder, 472 * including recycled articles. 473 * 474 * @param groupId the primary key of the web content article's group 475 * @param folderId the primary key of the web content article folder 476 * @throws PortalException if a portal exception occurred 477 */ 478 @Override 479 public void deleteArticles(long groupId, long folderId) 480 throws com.liferay.portal.kernel.exception.PortalException { 481 _journalArticleLocalService.deleteArticles(groupId, folderId); 482 } 483 484 /** 485 * Deletes all the group's web content articles and resources in the folder, 486 * optionally including recycled articles. 487 * 488 * @param groupId the primary key of the web content article's group 489 * @param folderId the primary key of the web content article folder 490 * @param includeTrashedEntries whether to include recycled web content 491 articles 492 * @throws PortalException if a portal exception occurred 493 */ 494 @Override 495 public void deleteArticles(long groupId, long folderId, 496 boolean includeTrashedEntries) 497 throws com.liferay.portal.kernel.exception.PortalException { 498 _journalArticleLocalService.deleteArticles(groupId, folderId, 499 includeTrashedEntries); 500 } 501 502 /** 503 * Deletes the journal article with the primary key from the database. Also notifies the appropriate model listeners. 504 * 505 * @param id the primary key of the journal article 506 * @return the journal article that was removed 507 * @throws PortalException if a journal article with the primary key could not be found 508 */ 509 @Override 510 public com.liferay.portlet.journal.model.JournalArticle deleteJournalArticle( 511 long id) throws com.liferay.portal.kernel.exception.PortalException { 512 return _journalArticleLocalService.deleteJournalArticle(id); 513 } 514 515 /** 516 * Deletes the journal article from the database. Also notifies the appropriate model listeners. 517 * 518 * @param journalArticle the journal article 519 * @return the journal article that was removed 520 */ 521 @Override 522 public com.liferay.portlet.journal.model.JournalArticle deleteJournalArticle( 523 com.liferay.portlet.journal.model.JournalArticle journalArticle) { 524 return _journalArticleLocalService.deleteJournalArticle(journalArticle); 525 } 526 527 /** 528 * Deletes the layout's association with the web content articles for the 529 * group. 530 * 531 * @param groupId the primary key of the web content article's group 532 * @param layoutUuid the unique string identifying the web content article's 533 display page 534 */ 535 @Override 536 public void deleteLayoutArticleReferences(long groupId, 537 java.lang.String layoutUuid) { 538 _journalArticleLocalService.deleteLayoutArticleReferences(groupId, 539 layoutUuid); 540 } 541 542 /** 543 * @throws PortalException 544 */ 545 @Override 546 public com.liferay.portal.model.PersistedModel deletePersistedModel( 547 com.liferay.portal.model.PersistedModel persistedModel) 548 throws com.liferay.portal.kernel.exception.PortalException { 549 return _journalArticleLocalService.deletePersistedModel(persistedModel); 550 } 551 552 @Override 553 public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() { 554 return _journalArticleLocalService.dynamicQuery(); 555 } 556 557 /** 558 * Performs a dynamic query on the database and returns the matching rows. 559 * 560 * @param dynamicQuery the dynamic query 561 * @return the matching rows 562 */ 563 @Override 564 public <T> java.util.List<T> dynamicQuery( 565 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) { 566 return _journalArticleLocalService.dynamicQuery(dynamicQuery); 567 } 568 569 /** 570 * Performs a dynamic query on the database and returns a range of the matching rows. 571 * 572 * <p> 573 * 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 {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} 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 and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.journal.model.impl.JournalArticleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 574 * </p> 575 * 576 * @param dynamicQuery the dynamic query 577 * @param start the lower bound of the range of model instances 578 * @param end the upper bound of the range of model instances (not inclusive) 579 * @return the range of matching rows 580 */ 581 @Override 582 public <T> java.util.List<T> dynamicQuery( 583 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, 584 int end) { 585 return _journalArticleLocalService.dynamicQuery(dynamicQuery, start, end); 586 } 587 588 /** 589 * Performs a dynamic query on the database and returns an ordered range of the matching rows. 590 * 591 * <p> 592 * 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 {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} 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 and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.journal.model.impl.JournalArticleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 593 * </p> 594 * 595 * @param dynamicQuery the dynamic query 596 * @param start the lower bound of the range of model instances 597 * @param end the upper bound of the range of model instances (not inclusive) 598 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 599 * @return the ordered range of matching rows 600 */ 601 @Override 602 public <T> java.util.List<T> dynamicQuery( 603 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, 604 int end, 605 com.liferay.portal.kernel.util.OrderByComparator<T> orderByComparator) { 606 return _journalArticleLocalService.dynamicQuery(dynamicQuery, start, 607 end, orderByComparator); 608 } 609 610 /** 611 * Returns the number of rows matching the dynamic query. 612 * 613 * @param dynamicQuery the dynamic query 614 * @return the number of rows matching the dynamic query 615 */ 616 @Override 617 public long dynamicQueryCount( 618 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) { 619 return _journalArticleLocalService.dynamicQueryCount(dynamicQuery); 620 } 621 622 /** 623 * Returns the number of rows matching the dynamic query. 624 * 625 * @param dynamicQuery the dynamic query 626 * @param projection the projection to apply to the query 627 * @return the number of rows matching the dynamic query 628 */ 629 @Override 630 public long dynamicQueryCount( 631 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, 632 com.liferay.portal.kernel.dao.orm.Projection projection) { 633 return _journalArticleLocalService.dynamicQueryCount(dynamicQuery, 634 projection); 635 } 636 637 /** 638 * Expires the web content article matching the group and article ID, 639 * expiring all of its versions if the 640 * <code>journal.article.expire.all.versions</code> portal property is 641 * <code>true</code>, otherwise expiring only its latest approved version. 642 * 643 * @param userId the primary key of the user updating the web content 644 article 645 * @param groupId the primary key of the web content article's group 646 * @param articleId the primary key of the web content article 647 * @param articleURL the web content article's accessible URL 648 * @param serviceContext the service context to be applied. Can set the 649 modification date, status date, portlet preferences, and can set 650 whether to add the default command update for the web content 651 article. With respect to social activities, by setting the 652 service context's command to {@link 653 com.liferay.portal.kernel.util.Constants#UPDATE}, the invocation 654 is considered a web content update activity; otherwise it is 655 considered a web content add activity. 656 * @throws PortalException if a matching web content article could not be 657 found or if a portal exception occurred 658 */ 659 @Override 660 public void expireArticle(long userId, long groupId, 661 java.lang.String articleId, java.lang.String articleURL, 662 com.liferay.portal.service.ServiceContext serviceContext) 663 throws com.liferay.portal.kernel.exception.PortalException { 664 _journalArticleLocalService.expireArticle(userId, groupId, articleId, 665 articleURL, serviceContext); 666 } 667 668 /** 669 * Expires the web content article matching the group, article ID, and 670 * version. 671 * 672 * @param userId the primary key of the user updating the web content 673 article 674 * @param groupId the primary key of the web content article's group 675 * @param articleId the primary key of the web content article 676 * @param version the web content article's version 677 * @param articleURL the web content article's accessible URL 678 * @param serviceContext the service context to be applied. Can set the 679 modification date, status date, portlet preferences, and can set 680 whether to add the default command update for the web content 681 article. With respect to social activities, by setting the 682 service context's command to {@link 683 com.liferay.portal.kernel.util.Constants#UPDATE}, the invocation 684 is considered a web content update activity; otherwise it is 685 considered a web content add activity. 686 * @return the web content article 687 * @throws PortalException if a matching web content article could not be 688 found or if a portal exception occurred 689 */ 690 @Override 691 public com.liferay.portlet.journal.model.JournalArticle expireArticle( 692 long userId, long groupId, java.lang.String articleId, double version, 693 java.lang.String articleURL, 694 com.liferay.portal.service.ServiceContext serviceContext) 695 throws com.liferay.portal.kernel.exception.PortalException { 696 return _journalArticleLocalService.expireArticle(userId, groupId, 697 articleId, version, articleURL, serviceContext); 698 } 699 700 /** 701 * Returns the web content article matching the group, article ID, and 702 * version. 703 * 704 * @param groupId the primary key of the web content article's group 705 * @param articleId the primary key of the web content article 706 * @param version the web content article's version 707 * @return the web content article matching the group, article ID, and 708 version, or <code>null</code> if no web content article could be 709 found 710 */ 711 @Override 712 public com.liferay.portlet.journal.model.JournalArticle fetchArticle( 713 long groupId, java.lang.String articleId, double version) { 714 return _journalArticleLocalService.fetchArticle(groupId, articleId, 715 version); 716 } 717 718 @Override 719 public com.liferay.portlet.journal.model.JournalArticle fetchJournalArticle( 720 long id) { 721 return _journalArticleLocalService.fetchJournalArticle(id); 722 } 723 724 /** 725 * Returns the journal article matching the UUID and group. 726 * 727 * @param uuid the journal article's UUID 728 * @param groupId the primary key of the group 729 * @return the matching journal article, or <code>null</code> if a matching journal article could not be found 730 */ 731 @Override 732 public com.liferay.portlet.journal.model.JournalArticle fetchJournalArticleByUuidAndGroupId( 733 java.lang.String uuid, long groupId) { 734 return _journalArticleLocalService.fetchJournalArticleByUuidAndGroupId(uuid, 735 groupId); 736 } 737 738 /** 739 * Returns the latest web content article matching the group, article ID, 740 * and workflow status. 741 * 742 * @param groupId the primary key of the web content article's group 743 * @param articleId the primary key of the web content article 744 * @param status the web content article's workflow status. For more 745 information see {@link WorkflowConstants} for constants starting 746 with the "STATUS_" prefix. 747 * @return the latest matching web content article, or <code>null</code> if 748 no matching web content article could be found 749 */ 750 @Override 751 public com.liferay.portlet.journal.model.JournalArticle fetchLatestArticle( 752 long groupId, java.lang.String articleId, int status) { 753 return _journalArticleLocalService.fetchLatestArticle(groupId, 754 articleId, status); 755 } 756 757 @Override 758 public com.liferay.portlet.journal.model.JournalArticle fetchLatestArticle( 759 long resourcePrimKey) { 760 return _journalArticleLocalService.fetchLatestArticle(resourcePrimKey); 761 } 762 763 @Override 764 public com.liferay.portlet.journal.model.JournalArticle fetchLatestArticle( 765 long resourcePrimKey, int status) { 766 return _journalArticleLocalService.fetchLatestArticle(resourcePrimKey, 767 status); 768 } 769 770 /** 771 * Returns the latest web content article matching the resource primary key 772 * and workflow status, optionally preferring articles with approved 773 * workflow status. 774 * 775 * @param resourcePrimKey the primary key of the resource instance 776 * @param status the web content article's workflow status. For more 777 information see {@link WorkflowConstants} for constants starting 778 with the "STATUS_" prefix. 779 * @param preferApproved whether to prefer returning the latest matching 780 article that has workflow status {@link 781 WorkflowConstants#STATUS_APPROVED} over returning one that has a 782 different status 783 * @return the latest web content article matching the resource primary key 784 and workflow status, optionally preferring articles with an 785 approved workflow status, or <code>null</code> if no matching web 786 content article could be found 787 */ 788 @Override 789 public com.liferay.portlet.journal.model.JournalArticle fetchLatestArticle( 790 long resourcePrimKey, int status, boolean preferApproved) { 791 return _journalArticleLocalService.fetchLatestArticle(resourcePrimKey, 792 status, preferApproved); 793 } 794 795 @Override 796 public com.liferay.portlet.journal.model.JournalArticle fetchLatestArticle( 797 long resourcePrimKey, int[] statuses) { 798 return _journalArticleLocalService.fetchLatestArticle(resourcePrimKey, 799 statuses); 800 } 801 802 /** 803 * Returns the latest indexable web content article matching the resource 804 * primary key. 805 * 806 * @param resourcePrimKey the primary key of the resource instance 807 * @return the latest indexable web content article matching the resource 808 primary key, or <code>null</code> if no matching web content 809 article could be found 810 */ 811 @Override 812 public com.liferay.portlet.journal.model.JournalArticle fetchLatestIndexableArticle( 813 long resourcePrimKey) { 814 return _journalArticleLocalService.fetchLatestIndexableArticle(resourcePrimKey); 815 } 816 817 @Override 818 public com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery() { 819 return _journalArticleLocalService.getActionableDynamicQuery(); 820 } 821 822 /** 823 * Returns the latest approved web content article, or the latest unapproved 824 * article if none are approved. Both approved and unapproved articles must 825 * match the group and article ID. 826 * 827 * @param groupId the primary key of the web content article's group 828 * @param articleId the primary key of the web content article 829 * @return the matching web content article 830 * @throws PortalException if a matching web content article could not be 831 found 832 */ 833 @Override 834 public com.liferay.portlet.journal.model.JournalArticle getArticle( 835 long groupId, java.lang.String articleId) 836 throws com.liferay.portal.kernel.exception.PortalException { 837 return _journalArticleLocalService.getArticle(groupId, articleId); 838 } 839 840 /** 841 * Returns the web content article matching the group, article ID, and 842 * version. 843 * 844 * @param groupId the primary key of the web content article's group 845 * @param articleId the primary key of the web content article 846 * @param version the web content article's version 847 * @return the matching web content article 848 * @throws PortalException if a matching web content article could not be 849 found 850 */ 851 @Override 852 public com.liferay.portlet.journal.model.JournalArticle getArticle( 853 long groupId, java.lang.String articleId, double version) 854 throws com.liferay.portal.kernel.exception.PortalException { 855 return _journalArticleLocalService.getArticle(groupId, articleId, 856 version); 857 } 858 859 /** 860 * Returns the web content article matching the group, class name, and class 861 * PK. 862 * 863 * @param groupId the primary key of the web content article's group 864 * @param className the DDMStructure class name if the web content article 865 is related to a DDM structure, the primary key of the class name 866 associated with the article, or {@link 867 JournalArticleConstants#CLASSNAME_ID_DEFAULT} otherwise 868 * @param classPK the primary key of the DDM structure, if the the 869 DDMStructure class name is given as the <code>className</code> 870 parameter, the primary key of the class associated with the web 871 content article, or <code>0</code> otherwise 872 * @return the matching web content article 873 * @throws PortalException if a matching web content article could not be 874 found 875 */ 876 @Override 877 public com.liferay.portlet.journal.model.JournalArticle getArticle( 878 long groupId, java.lang.String className, long classPK) 879 throws com.liferay.portal.kernel.exception.PortalException { 880 return _journalArticleLocalService.getArticle(groupId, className, 881 classPK); 882 } 883 884 /** 885 * Returns the web content article with the ID. 886 * 887 * @param id the primary key of the web content article 888 * @return the web content article with the ID 889 * @throws PortalException if a matching web content article could not be 890 found 891 */ 892 @Override 893 public com.liferay.portlet.journal.model.JournalArticle getArticle(long id) 894 throws com.liferay.portal.kernel.exception.PortalException { 895 return _journalArticleLocalService.getArticle(id); 896 } 897 898 /** 899 * Returns the latest web content article that is approved, or the latest 900 * unapproved article if none are approved. Both approved and unapproved 901 * articles must match the group and URL title. 902 * 903 * @param groupId the primary key of the web content article's group 904 * @param urlTitle the web content article's accessible URL title 905 * @return the matching web content article 906 * @throws PortalException if a portal exception occurred 907 */ 908 @Override 909 public com.liferay.portlet.journal.model.JournalArticle getArticleByUrlTitle( 910 long groupId, java.lang.String urlTitle) 911 throws com.liferay.portal.kernel.exception.PortalException { 912 return _journalArticleLocalService.getArticleByUrlTitle(groupId, 913 urlTitle); 914 } 915 916 /** 917 * Returns the web content from the web content article associated with the 918 * portlet request model and the DDM template. 919 * 920 * @param article the web content article 921 * @param ddmTemplateKey the primary key of the web content article's DDM 922 template 923 * @param viewMode the mode in which the web content is being viewed 924 * @param languageId the primary key of the language translation to get 925 * @param portletRequestModel the portlet request model 926 * @param themeDisplay the theme display 927 * @return the web content from the web content article associated with the 928 portlet request model and the DDM template 929 * @throws PortalException if a matching DDM template could not be found, or 930 if a portal exception occurred 931 */ 932 @Override 933 public java.lang.String getArticleContent( 934 com.liferay.portlet.journal.model.JournalArticle article, 935 java.lang.String ddmTemplateKey, java.lang.String viewMode, 936 java.lang.String languageId, 937 com.liferay.portal.kernel.portlet.PortletRequestModel portletRequestModel, 938 com.liferay.portal.theme.ThemeDisplay themeDisplay) 939 throws com.liferay.portal.kernel.exception.PortalException { 940 return _journalArticleLocalService.getArticleContent(article, 941 ddmTemplateKey, viewMode, languageId, portletRequestModel, 942 themeDisplay); 943 } 944 945 /** 946 * Returns the web content from the web content article associated with the 947 * DDM template. 948 * 949 * @param article the web content article 950 * @param ddmTemplateKey the primary key of the web content article's 951 DDM template 952 * @param viewMode the mode in which the web content is being viewed 953 * @param languageId the primary key of the language translation to get 954 * @param themeDisplay the theme display 955 * @return the web content from the matching web content article 956 * @throws PortalException if a matching DDM template could not be 957 found, or if a portal exception occurred 958 * @deprecated As of 7.0.0, replaced by {@link 959 #getArticleContent(JournalArticle, String, String, String, 960 PortletRequestModel,ThemeDisplay)} 961 */ 962 @Deprecated 963 @Override 964 public java.lang.String getArticleContent( 965 com.liferay.portlet.journal.model.JournalArticle article, 966 java.lang.String ddmTemplateKey, java.lang.String viewMode, 967 java.lang.String languageId, 968 com.liferay.portal.theme.ThemeDisplay themeDisplay) 969 throws com.liferay.portal.kernel.exception.PortalException { 970 return _journalArticleLocalService.getArticleContent(article, 971 ddmTemplateKey, viewMode, languageId, themeDisplay); 972 } 973 974 /** 975 * Returns the web content from the web content article matching the group, 976 * article ID, and version, and associated with the portlet request model 977 * and the DDM template. 978 * 979 * @param groupId the primary key of the web content article's group 980 * @param articleId the primary key of the web content article 981 * @param version the web content article's version 982 * @param viewMode the mode in which the web content is being viewed 983 * @param ddmTemplateKey the primary key of the web content article's DDM 984 template 985 * @param languageId the primary key of the language translation to get 986 * @param portletRequestModel the portlet request model 987 * @param themeDisplay the theme display 988 * @return the web content from the matching web content article 989 * @throws PortalException if a matching web content article or DDM template 990 could not be found, or if a portal exception occurred 991 */ 992 @Override 993 public java.lang.String getArticleContent(long groupId, 994 java.lang.String articleId, double version, java.lang.String viewMode, 995 java.lang.String ddmTemplateKey, java.lang.String languageId, 996 com.liferay.portal.kernel.portlet.PortletRequestModel portletRequestModel, 997 com.liferay.portal.theme.ThemeDisplay themeDisplay) 998 throws com.liferay.portal.kernel.exception.PortalException { 999 return _journalArticleLocalService.getArticleContent(groupId, 1000 articleId, version, viewMode, ddmTemplateKey, languageId, 1001 portletRequestModel, themeDisplay); 1002 } 1003 1004 /** 1005 * Returns the web content from the web content article matching the group, 1006 * article ID, and version, and associated with the DDM template. 1007 * 1008 * @param groupId the primary key of the web content article's group 1009 * @param articleId the primary key of the web content article 1010 * @param version the web content article's version 1011 * @param viewMode the mode in which the web content is being viewed 1012 * @param ddmTemplateKey the primary key of the web content article's 1013 DDM template (optionally <code>null</code>). If the article 1014 is related to a DDM structure, the template's structure must 1015 match it. 1016 * @param languageId the primary key of the language translation to get 1017 * @param themeDisplay the theme display 1018 * @return the web content from the matching web content article 1019 * @throws PortalException if a matching web content article or DDM 1020 template could not be found, or if a portal exception 1021 occurred 1022 * @deprecated As of 7.0.0, replaced by {@link #getArticleContent(long, 1023 String, double, String, String, String, PortletRequestModel, 1024 ThemeDisplay)} 1025 */ 1026 @Deprecated 1027 @Override 1028 public java.lang.String getArticleContent(long groupId, 1029 java.lang.String articleId, double version, java.lang.String viewMode, 1030 java.lang.String ddmTemplateKey, java.lang.String languageId, 1031 com.liferay.portal.theme.ThemeDisplay themeDisplay) 1032 throws com.liferay.portal.kernel.exception.PortalException { 1033 return _journalArticleLocalService.getArticleContent(groupId, 1034 articleId, version, viewMode, ddmTemplateKey, languageId, 1035 themeDisplay); 1036 } 1037 1038 /** 1039 * Returns the web content from the web content article matching the group, 1040 * article ID, and version. 1041 * 1042 * @param groupId the primary key of the web content article's group 1043 * @param articleId the primary key of the web content article 1044 * @param version the web content article's version 1045 * @param viewMode the mode in which the web content is being viewed 1046 * @param languageId the primary key of the language translation to get 1047 * @param themeDisplay the theme display 1048 * @return the web content from the matching web content article 1049 * @throws PortalException if a matching web content article or DDM 1050 template could not be found, or if a portal exception 1051 occurred 1052 * @deprecated As of 7.0.0, replaced by {@link #getArticleContent(long, 1053 String, double, String, String, String, PortletRequestModel, 1054 ThemeDisplay)} 1055 */ 1056 @Deprecated 1057 @Override 1058 public java.lang.String getArticleContent(long groupId, 1059 java.lang.String articleId, double version, java.lang.String viewMode, 1060 java.lang.String languageId, 1061 com.liferay.portal.theme.ThemeDisplay themeDisplay) 1062 throws com.liferay.portal.kernel.exception.PortalException { 1063 return _journalArticleLocalService.getArticleContent(groupId, 1064 articleId, version, viewMode, languageId, themeDisplay); 1065 } 1066 1067 /** 1068 * Returns the latest web content from the web content article matching the 1069 * group and article ID, and associated with the portlet request model and 1070 * the DDM template. 1071 * 1072 * @param groupId the primary key of the web content article's group 1073 * @param articleId the primary key of the web content article 1074 * @param viewMode the mode in which the web content is being viewed 1075 * @param ddmTemplateKey the primary key of the web content article's DDM 1076 template 1077 * @param languageId the primary key of the language translation to get 1078 * @param portletRequestModel the portlet request model 1079 * @param themeDisplay the theme display 1080 * @return the latest web content from the matching web content article 1081 * @throws PortalException if a matching web content article or DDM template 1082 could not be found, or if a portal exception occurred 1083 */ 1084 @Override 1085 public java.lang.String getArticleContent(long groupId, 1086 java.lang.String articleId, java.lang.String viewMode, 1087 java.lang.String ddmTemplateKey, java.lang.String languageId, 1088 com.liferay.portal.kernel.portlet.PortletRequestModel portletRequestModel, 1089 com.liferay.portal.theme.ThemeDisplay themeDisplay) 1090 throws com.liferay.portal.kernel.exception.PortalException { 1091 return _journalArticleLocalService.getArticleContent(groupId, 1092 articleId, viewMode, ddmTemplateKey, languageId, 1093 portletRequestModel, themeDisplay); 1094 } 1095 1096 /** 1097 * Returns the latest web content from the web content article matching the 1098 * group and article ID, and associated with the DDM template. 1099 * 1100 * @param groupId the primary key of the web content article's group 1101 * @param articleId the primary key of the web content article 1102 * @param viewMode the mode in which the web content is being viewed 1103 * @param ddmTemplateKey the primary key of the web content article's 1104 DDM template 1105 * @param languageId the primary key of the language translation to get 1106 * @param themeDisplay the theme display 1107 * @return the latest web content from the matching web content article 1108 * @throws PortalException if a matching web content article or DDM 1109 template could not be found, or if a portal exception 1110 occurred 1111 * @deprecated As of 7.0.0, replaced by {@link #getArticleContent(long, 1112 String, String, String, String, PortletRequestModel, 1113 ThemeDisplay)} 1114 */ 1115 @Deprecated 1116 @Override 1117 public java.lang.String getArticleContent(long groupId, 1118 java.lang.String articleId, java.lang.String viewMode, 1119 java.lang.String ddmTemplateKey, java.lang.String languageId, 1120 com.liferay.portal.theme.ThemeDisplay themeDisplay) 1121 throws com.liferay.portal.kernel.exception.PortalException { 1122 return _journalArticleLocalService.getArticleContent(groupId, 1123 articleId, viewMode, ddmTemplateKey, languageId, themeDisplay); 1124 } 1125 1126 /** 1127 * Returns the latest web content from the web content article matching the 1128 * group and article ID. 1129 * 1130 * @param groupId the primary key of the web content article's group 1131 * @param articleId the primary key of the web content article 1132 * @param viewMode the mode in which the web content is being viewed 1133 * @param languageId the primary key of the language translation to get 1134 * @param themeDisplay the theme display 1135 * @return the latest web content from the matching web content article 1136 * @throws PortalException if a matching web content article or DDM 1137 template could not be found, or if a portal exception 1138 occurred 1139 * @deprecated As of 7.0.0, replaced by {@link #getArticleContent(long, 1140 String, String, String, String, PortletRequestModel, 1141 ThemeDisplay)} 1142 */ 1143 @Deprecated 1144 @Override 1145 public java.lang.String getArticleContent(long groupId, 1146 java.lang.String articleId, java.lang.String viewMode, 1147 java.lang.String languageId, 1148 com.liferay.portal.theme.ThemeDisplay themeDisplay) 1149 throws com.liferay.portal.kernel.exception.PortalException { 1150 return _journalArticleLocalService.getArticleContent(groupId, 1151 articleId, viewMode, languageId, themeDisplay); 1152 } 1153 1154 /** 1155 * Returns a web content article display for the specified page of the 1156 * latest version of the web content article, based on the DDM template. Web 1157 * content transformation tokens are added using the portlet request model 1158 * and theme display. 1159 * 1160 * @param article the primary key of the web content article 1161 * @param ddmTemplateKey the primary key of the web content article's DDM 1162 template 1163 * @param viewMode the mode in which the web content is being viewed 1164 * @param languageId the primary key of the language translation to get 1165 * @param page the web content article page to display 1166 * @param portletRequestModel the portlet request model 1167 * @param themeDisplay the theme display 1168 * @return the web content article display, or <code>null</code> if the 1169 article has expired or if article's display date/time is after 1170 the current date/time 1171 * @throws PortalException if a portal exception occurred 1172 */ 1173 @Override 1174 public com.liferay.portlet.journal.model.JournalArticleDisplay getArticleDisplay( 1175 com.liferay.portlet.journal.model.JournalArticle article, 1176 java.lang.String ddmTemplateKey, java.lang.String viewMode, 1177 java.lang.String languageId, int page, 1178 com.liferay.portal.kernel.portlet.PortletRequestModel portletRequestModel, 1179 com.liferay.portal.theme.ThemeDisplay themeDisplay) 1180 throws com.liferay.portal.kernel.exception.PortalException { 1181 return _journalArticleLocalService.getArticleDisplay(article, 1182 ddmTemplateKey, viewMode, languageId, page, portletRequestModel, 1183 themeDisplay); 1184 } 1185 1186 /** 1187 * Returns a web content article display for the specified page of the 1188 * latest version of the web content article matching the group, article ID, 1189 * and DDM template. Web content transformation tokens are added using the 1190 * portlet request model and theme display. 1191 * 1192 * @param groupId the primary key of the web content article's group 1193 * @param articleId the primary key of the web content article 1194 * @param ddmTemplateKey the primary key of the web content article's DDM 1195 template 1196 * @param viewMode the mode in which the web content is being viewed 1197 * @param languageId the primary key of the language translation to get 1198 * @param page the web content article page to display 1199 * @param portletRequestModel the portlet request model 1200 * @param themeDisplay the theme display 1201 * @return the web content article display, or <code>null</code> if the 1202 article has expired or if article's display date/time is after 1203 the current date/time 1204 * @throws PortalException if a portal exception occurred 1205 */ 1206 @Override 1207 public com.liferay.portlet.journal.model.JournalArticleDisplay getArticleDisplay( 1208 long groupId, java.lang.String articleId, 1209 java.lang.String ddmTemplateKey, java.lang.String viewMode, 1210 java.lang.String languageId, int page, 1211 com.liferay.portal.kernel.portlet.PortletRequestModel portletRequestModel, 1212 com.liferay.portal.theme.ThemeDisplay themeDisplay) 1213 throws com.liferay.portal.kernel.exception.PortalException { 1214 return _journalArticleLocalService.getArticleDisplay(groupId, 1215 articleId, ddmTemplateKey, viewMode, languageId, page, 1216 portletRequestModel, themeDisplay); 1217 } 1218 1219 /** 1220 * Returns a web content article display for the first page of the latest 1221 * version of the web content article matching the group, article ID, and 1222 * DDM template. Web content transformation tokens are added from the theme 1223 * display (if not <code>null</code>). 1224 * 1225 * @param groupId the primary key of the web content article's group 1226 * @param articleId the primary key of the web content article 1227 * @param ddmTemplateKey the primary key of the web content article's DDM 1228 template 1229 * @param viewMode the mode in which the web content is being viewed 1230 * @param languageId the primary key of the language translation to get 1231 * @param themeDisplay the theme display 1232 * @return the web content article display, or <code>null</code> if the 1233 article has expired or if article's display date/time is after 1234 the current date/time 1235 * @throws PortalException if a matching web content article or DDM template 1236 could not be found, or if a portal exception occurred 1237 */ 1238 @Override 1239 public com.liferay.portlet.journal.model.JournalArticleDisplay getArticleDisplay( 1240 long groupId, java.lang.String articleId, 1241 java.lang.String ddmTemplateKey, java.lang.String viewMode, 1242 java.lang.String languageId, 1243 com.liferay.portal.theme.ThemeDisplay themeDisplay) 1244 throws com.liferay.portal.kernel.exception.PortalException { 1245 return _journalArticleLocalService.getArticleDisplay(groupId, 1246 articleId, ddmTemplateKey, viewMode, languageId, themeDisplay); 1247 } 1248 1249 /** 1250 * Returns a web content article display for the specified page of the 1251 * specified version of the web content article matching the group, article 1252 * ID, and DDM template. Web content transformation tokens are added using 1253 * the portlet request model and theme display. 1254 * 1255 * @param groupId the primary key of the web content article's group 1256 * @param articleId the primary key of the web content article 1257 * @param version the web content article's version 1258 * @param ddmTemplateKey the primary key of the web content article's DDM 1259 template 1260 * @param viewMode the mode in which the web content is being viewed 1261 * @param languageId the primary key of the language translation to get 1262 * @param page the web content article page to display 1263 * @param portletRequestModel the portlet request model 1264 * @param themeDisplay the theme display 1265 * @return the web content article display, or <code>null</code> if the 1266 article has expired or if article's display date/time is after 1267 the current date/time 1268 * @throws PortalException if a portal exception occurred 1269 */ 1270 @Override 1271 public com.liferay.portlet.journal.model.JournalArticleDisplay getArticleDisplay( 1272 long groupId, java.lang.String articleId, double version, 1273 java.lang.String ddmTemplateKey, java.lang.String viewMode, 1274 java.lang.String languageId, int page, 1275 com.liferay.portal.kernel.portlet.PortletRequestModel portletRequestModel, 1276 com.liferay.portal.theme.ThemeDisplay themeDisplay) 1277 throws com.liferay.portal.kernel.exception.PortalException { 1278 return _journalArticleLocalService.getArticleDisplay(groupId, 1279 articleId, version, ddmTemplateKey, viewMode, languageId, page, 1280 portletRequestModel, themeDisplay); 1281 } 1282 1283 /** 1284 * Returns a web content article display for the first page of the specified 1285 * version of the web content article matching the group, article ID, and 1286 * DDM template. Web content transformation tokens are added from the theme 1287 * display (if not <code>null</code>). 1288 * 1289 * @param groupId the primary key of the web content article's group 1290 * @param articleId the primary key of the web content article 1291 * @param version the web content article's version 1292 * @param ddmTemplateKey the primary key of the web content article's DDM 1293 template 1294 * @param viewMode the mode in which the web content is being viewed 1295 * @param languageId the primary key of the language translation to get 1296 * @param themeDisplay the theme display 1297 * @return the web content article display, or <code>null</code> if the 1298 article has expired or if article's display date/time is after 1299 the current date/time 1300 * @throws PortalException if a matching web content article or DDM template 1301 could not be found, or if a portal exception occurred 1302 */ 1303 @Override 1304 public com.liferay.portlet.journal.model.JournalArticleDisplay getArticleDisplay( 1305 long groupId, java.lang.String articleId, double version, 1306 java.lang.String ddmTemplateKey, java.lang.String viewMode, 1307 java.lang.String languageId, 1308 com.liferay.portal.theme.ThemeDisplay themeDisplay) 1309 throws com.liferay.portal.kernel.exception.PortalException { 1310 return _journalArticleLocalService.getArticleDisplay(groupId, 1311 articleId, version, ddmTemplateKey, viewMode, languageId, 1312 themeDisplay); 1313 } 1314 1315 /** 1316 * Returns a web content article display for the specified page of the 1317 * latest version of the web content article matching the group and article 1318 * ID. Web content transformation tokens are added from the theme display 1319 * (if not <code>null</code>). 1320 * 1321 * @param groupId the primary key of the web content article's group 1322 * @param articleId the primary key of the web content article 1323 * @param viewMode the mode in which the web content is being viewed 1324 * @param languageId the primary key of the language translation to get 1325 * @param page the web content article page to display 1326 * @param portletRequestModel the portlet request model 1327 * @param themeDisplay the theme display 1328 * @return the web content article display, or <code>null</code> if the 1329 article has expired or if article's display date/time is after 1330 the current date/time 1331 * @throws PortalException if a portal exception occurred 1332 */ 1333 @Override 1334 public com.liferay.portlet.journal.model.JournalArticleDisplay getArticleDisplay( 1335 long groupId, java.lang.String articleId, java.lang.String viewMode, 1336 java.lang.String languageId, int page, 1337 com.liferay.portal.kernel.portlet.PortletRequestModel portletRequestModel, 1338 com.liferay.portal.theme.ThemeDisplay themeDisplay) 1339 throws com.liferay.portal.kernel.exception.PortalException { 1340 return _journalArticleLocalService.getArticleDisplay(groupId, 1341 articleId, viewMode, languageId, page, portletRequestModel, 1342 themeDisplay); 1343 } 1344 1345 /** 1346 * Returns a web content article display for the first page of the latest 1347 * version of the web content article matching the group and article ID. Web 1348 * content transformation tokens are added from the theme display (if not 1349 * <code>null</code>). 1350 * 1351 * @param groupId the primary key of the web content article's group 1352 * @param articleId the primary key of the web content article 1353 * @param viewMode the mode in which the web content is being viewed 1354 * @param languageId the primary key of the language translation to get 1355 * @param themeDisplay the theme display 1356 * @return the web content article display, or <code>null</code> if the 1357 article has expired or if article's display date/time is after 1358 the current date/time 1359 * @throws PortalException if a matching web content article or DDM template 1360 could not be found, or if a portal exception occurred 1361 */ 1362 @Override 1363 public com.liferay.portlet.journal.model.JournalArticleDisplay getArticleDisplay( 1364 long groupId, java.lang.String articleId, java.lang.String viewMode, 1365 java.lang.String languageId, 1366 com.liferay.portal.theme.ThemeDisplay themeDisplay) 1367 throws com.liferay.portal.kernel.exception.PortalException { 1368 return _journalArticleLocalService.getArticleDisplay(groupId, 1369 articleId, viewMode, languageId, themeDisplay); 1370 } 1371 1372 /** 1373 * Returns all the web content articles present in the system. 1374 * 1375 * @return the web content articles present in the system 1376 */ 1377 @Override 1378 public java.util.List<com.liferay.portlet.journal.model.JournalArticle> getArticles() { 1379 return _journalArticleLocalService.getArticles(); 1380 } 1381 1382 /** 1383 * Returns all the web content articles belonging to the group. 1384 * 1385 * @param groupId the primary key of the web content article's group 1386 * @return the web content articles belonging to the group 1387 */ 1388 @Override 1389 public java.util.List<com.liferay.portlet.journal.model.JournalArticle> getArticles( 1390 long groupId) { 1391 return _journalArticleLocalService.getArticles(groupId); 1392 } 1393 1394 /** 1395 * Returns all the web content articles matching the group and article ID. 1396 * 1397 * @param groupId the primary key of the web content article's group 1398 * @param articleId the primary key of the web content article 1399 * @return the matching web content articles 1400 */ 1401 @Override 1402 public java.util.List<com.liferay.portlet.journal.model.JournalArticle> getArticles( 1403 long groupId, java.lang.String articleId) { 1404 return _journalArticleLocalService.getArticles(groupId, articleId); 1405 } 1406 1407 @Override 1408 public java.util.List<com.liferay.portlet.journal.model.JournalArticle> getArticles( 1409 long groupId, java.lang.String articleId, int start, int end, 1410 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.journal.model.JournalArticle> orderByComparator) { 1411 return _journalArticleLocalService.getArticles(groupId, articleId, 1412 start, end, orderByComparator); 1413 } 1414 1415 /** 1416 * Returns all the web content articles matching the group and folder. 1417 * 1418 * @param groupId the primary key of the web content article's group 1419 * @param folderId the primary key of the web content article folder 1420 * @return the matching web content articles 1421 */ 1422 @Override 1423 public java.util.List<com.liferay.portlet.journal.model.JournalArticle> getArticles( 1424 long groupId, long folderId) { 1425 return _journalArticleLocalService.getArticles(groupId, folderId); 1426 } 1427 1428 /** 1429 * Returns a range of all the web content articles matching the group and 1430 * folder. 1431 * 1432 * <p> 1433 * Useful when paginating results. Returns a maximum of <code>end - 1434 * start</code> instances. <code>start</code> and <code>end</code> are not 1435 * primary keys, they are indexes in the result set. Thus, <code>0</code> 1436 * refers to the first result in the set. Setting both <code>start</code> 1437 * and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full 1438 * result set. 1439 * </p> 1440 * 1441 * @param groupId the primary key of the web content article's group 1442 * @param folderId the primary key of the web content article's folder 1443 * @param start the lower bound of the range of web content articles to 1444 return 1445 * @param end the upper bound of the range of web content articles to 1446 return (not inclusive) 1447 * @return the range of matching web content articles 1448 */ 1449 @Override 1450 public java.util.List<com.liferay.portlet.journal.model.JournalArticle> getArticles( 1451 long groupId, long folderId, int start, int end) { 1452 return _journalArticleLocalService.getArticles(groupId, folderId, 1453 start, end); 1454 } 1455 1456 /** 1457 * Returns an ordered range of all the web content articles matching the 1458 * group and folder. 1459 * 1460 * <p> 1461 * Useful when paginating results. Returns a maximum of <code>end - 1462 * start</code> instances. <code>start</code> and <code>end</code> are not 1463 * primary keys, they are indexes in the result set. Thus, <code>0</code> 1464 * refers to the first result in the set. Setting both <code>start</code> 1465 * and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full 1466 * result set. 1467 * </p> 1468 * 1469 * @param groupId the primary key of the web content article's group 1470 * @param folderId the primary key of the web content article's folder 1471 * @param start the lower bound of the range of web content articles to 1472 return 1473 * @param end the upper bound of the range of web content articles to 1474 return (not inclusive) 1475 * @param orderByComparator the comparator to order the web content 1476 articles 1477 * @return the range of matching web content articles ordered by the 1478 comparator 1479 */ 1480 @Override 1481 public java.util.List<com.liferay.portlet.journal.model.JournalArticle> getArticles( 1482 long groupId, long folderId, int start, int end, 1483 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.journal.model.JournalArticle> orderByComparator) { 1484 return _journalArticleLocalService.getArticles(groupId, folderId, 1485 start, end, orderByComparator); 1486 } 1487 1488 /** 1489 * Returns a range of all the web content articles matching the group, 1490 * folder, and status. 1491 * 1492 * <p> 1493 * Useful when paginating results. Returns a maximum of <code>end - 1494 * start</code> instances. <code>start</code> and <code>end</code> are not 1495 * primary keys, they are indexes in the result set. Thus, <code>0</code> 1496 * refers to the first result in the set. Setting both <code>start</code> 1497 * and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full 1498 * result set. 1499 * </p> 1500 * 1501 * @param groupId the primary key of the web content article's group 1502 * @param folderId the primary key of the web content article's folder 1503 * @param status the web content article's workflow status. For more 1504 information see {@link WorkflowConstants} for constants starting 1505 with the "STATUS_" prefix. 1506 * @param start the lower bound of the range of web content articles to 1507 return 1508 * @param end the upper bound of the range of web content articles to 1509 return (not inclusive) 1510 * @return the range of matching web content articles 1511 */ 1512 @Override 1513 public java.util.List<com.liferay.portlet.journal.model.JournalArticle> getArticles( 1514 long groupId, long folderId, int status, int start, int end) { 1515 return _journalArticleLocalService.getArticles(groupId, folderId, 1516 status, start, end); 1517 } 1518 1519 /** 1520 * Returns a range of all the web content articles belonging to the group. 1521 * 1522 * <p> 1523 * Useful when paginating results. Returns a maximum of <code>end - 1524 * start</code> instances. <code>start</code> and <code>end</code> are not 1525 * primary keys, they are indexes in the result set. Thus, <code>0</code> 1526 * refers to the first result in the set. Setting both <code>start</code> 1527 * and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full 1528 * result set. 1529 * </p> 1530 * 1531 * @param groupId the primary key of the web content article's group 1532 * @param start the lower bound of the range of web content articles to 1533 return 1534 * @param end the upper bound of the range of web content articles to 1535 return (not inclusive) 1536 * @return the range of matching web content articles 1537 */ 1538 @Override 1539 public java.util.List<com.liferay.portlet.journal.model.JournalArticle> getArticles( 1540 long groupId, int start, int end) { 1541 return _journalArticleLocalService.getArticles(groupId, start, end); 1542 } 1543 1544 /** 1545 * Returns an ordered range of all the web content articles belonging to the 1546 * group. 1547 * 1548 * <p> 1549 * Useful when paginating results. Returns a maximum of <code>end - 1550 * start</code> instances. <code>start</code> and <code>end</code> are not 1551 * primary keys, they are indexes in the result set. Thus, <code>0</code> 1552 * refers to the first result in the set. Setting both <code>start</code> 1553 * and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full 1554 * result set. 1555 * </p> 1556 * 1557 * @param groupId the primary key of the web content article's group 1558 * @param start the lower bound of the range of web content articles to 1559 return 1560 * @param end the upper bound of the range of web content articles to 1561 return (not inclusive) 1562 * @param obc the comparator to order the web content articles 1563 * @return the range of matching web content articles ordered by the 1564 comparator 1565 */ 1566 @Override 1567 public java.util.List<com.liferay.portlet.journal.model.JournalArticle> getArticles( 1568 long groupId, int start, int end, 1569 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.journal.model.JournalArticle> obc) { 1570 return _journalArticleLocalService.getArticles(groupId, start, end, obc); 1571 } 1572 1573 /** 1574 * Returns all the web content articles matching the resource primary key. 1575 * 1576 * @param resourcePrimKey the primary key of the resource instance 1577 * @return the web content articles matching the resource primary key 1578 */ 1579 @Override 1580 public java.util.List<com.liferay.portlet.journal.model.JournalArticle> getArticlesByResourcePrimKey( 1581 long resourcePrimKey) { 1582 return _journalArticleLocalService.getArticlesByResourcePrimKey(resourcePrimKey); 1583 } 1584 1585 /** 1586 * Returns all the web content articles matching the small image ID. 1587 * 1588 * @param smallImageId the primary key of the web content article's small 1589 image 1590 * @return the web content articles matching the small image ID 1591 */ 1592 @Override 1593 public java.util.List<com.liferay.portlet.journal.model.JournalArticle> getArticlesBySmallImageId( 1594 long smallImageId) { 1595 return _journalArticleLocalService.getArticlesBySmallImageId(smallImageId); 1596 } 1597 1598 /** 1599 * Returns the number of web content articles belonging to the group. 1600 * 1601 * @param groupId the primary key of the web content article's group 1602 * @return the number of web content articles belonging to the group 1603 */ 1604 @Override 1605 public int getArticlesCount(long groupId) { 1606 return _journalArticleLocalService.getArticlesCount(groupId); 1607 } 1608 1609 @Override 1610 public int getArticlesCount(long groupId, java.lang.String articleId) { 1611 return _journalArticleLocalService.getArticlesCount(groupId, articleId); 1612 } 1613 1614 /** 1615 * Returns the number of web content articles matching the group and folder. 1616 * 1617 * @param groupId the primary key of the web content article's group 1618 * @param folderId the primary key of the web content article's folder 1619 * @return the number of matching web content articles 1620 */ 1621 @Override 1622 public int getArticlesCount(long groupId, long folderId) { 1623 return _journalArticleLocalService.getArticlesCount(groupId, folderId); 1624 } 1625 1626 /** 1627 * Returns the number of web content articles matching the group, folder, 1628 * and status. 1629 * 1630 * @param groupId the primary key of the web content article's group 1631 * @param folderId the primary key of the web content article's folder 1632 * @param status the web content article's workflow status. For more 1633 information see {@link WorkflowConstants} for constants starting 1634 with the "STATUS_" prefix. 1635 * @return the number of matching web content articles 1636 */ 1637 @Override 1638 public int getArticlesCount(long groupId, long folderId, int status) { 1639 return _journalArticleLocalService.getArticlesCount(groupId, folderId, 1640 status); 1641 } 1642 1643 /** 1644 * Returns the Spring bean ID for this bean. 1645 * 1646 * @return the Spring bean ID for this bean 1647 */ 1648 @Override 1649 public java.lang.String getBeanIdentifier() { 1650 return _journalArticleLocalService.getBeanIdentifier(); 1651 } 1652 1653 /** 1654 * Returns an ordered range of all the web content articles matching the 1655 * company and workflow status. 1656 * 1657 * <p> 1658 * Useful when paginating results. Returns a maximum of <code>end - 1659 * start</code> instances. <code>start</code> and <code>end</code> are not 1660 * primary keys, they are indexes in the result set. Thus, <code>0</code> 1661 * refers to the first result in the set. Setting both <code>start</code> 1662 * and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full 1663 * result set. 1664 * </p> 1665 * 1666 * @param companyId the primary key of the web content article's company 1667 * @param status the web content article's workflow status. For more 1668 information see {@link WorkflowConstants} for constants starting 1669 with the "STATUS_" prefix. 1670 * @param start the lower bound of the range of web content articles to 1671 return 1672 * @param end the upper bound of the range of web content articles to 1673 return (not inclusive) 1674 * @return the range of matching web content articles ordered by article ID 1675 */ 1676 @Override 1677 public java.util.List<com.liferay.portlet.journal.model.JournalArticle> getCompanyArticles( 1678 long companyId, int status, int start, int end) { 1679 return _journalArticleLocalService.getCompanyArticles(companyId, 1680 status, start, end); 1681 } 1682 1683 /** 1684 * Returns an ordered range of all the web content articles matching the 1685 * company, version, and workflow status. 1686 * 1687 * <p> 1688 * Useful when paginating results. Returns a maximum of <code>end - 1689 * start</code> instances. <code>start</code> and <code>end</code> are not 1690 * primary keys, they are indexes in the result set. Thus, <code>0</code> 1691 * refers to the first result in the set. Setting both <code>start</code> 1692 * and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full 1693 * result set. 1694 * </p> 1695 * 1696 * @param companyId the primary key of the web content article's company 1697 * @param version the web content article's version 1698 * @param status the web content article's workflow status. For more 1699 information see {@link WorkflowConstants} for constants starting 1700 with the "STATUS_" prefix. 1701 * @param start the lower bound of the range of web content articles to 1702 return 1703 * @param end the upper bound of the range of web content articles to 1704 return (not inclusive) 1705 * @return the range of matching web content articles ordered by article ID 1706 */ 1707 @Override 1708 public java.util.List<com.liferay.portlet.journal.model.JournalArticle> getCompanyArticles( 1709 long companyId, double version, int status, int start, int end) { 1710 return _journalArticleLocalService.getCompanyArticles(companyId, 1711 version, status, start, end); 1712 } 1713 1714 /** 1715 * Returns the number of web content articles matching the company and 1716 * workflow status. 1717 * 1718 * @param companyId the primary key of the web content article's company 1719 * @param status the web content article's workflow status. For more 1720 information see {@link WorkflowConstants} for constants starting 1721 with the "STATUS_" prefix. 1722 * @return the number of matching web content articles 1723 */ 1724 @Override 1725 public int getCompanyArticlesCount(long companyId, int status) { 1726 return _journalArticleLocalService.getCompanyArticlesCount(companyId, 1727 status); 1728 } 1729 1730 /** 1731 * Returns the number of web content articles matching the company, version, 1732 * and workflow status. 1733 * 1734 * <p> 1735 * Useful when paginating results. Returns a maximum of <code>end - 1736 * start</code> instances. <code>start</code> and <code>end</code> are not 1737 * primary keys, they are indexes in the result set. Thus, <code>0</code> 1738 * refers to the first result in the set. Setting both <code>start</code> 1739 * and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full 1740 * result set. 1741 * </p> 1742 * 1743 * @param companyId the primary key of the web content article's company 1744 * @param version the web content article's version 1745 * @param status the web content article's workflow status. For more 1746 information see {@link WorkflowConstants} for constants starting 1747 with the "STATUS_" prefix. 1748 * @param start the lower bound of the range of web content articles to 1749 return 1750 * @param end the upper bound of the range of web content articles to 1751 return (not inclusive) 1752 * @return the number of matching web content articles 1753 */ 1754 @Override 1755 public int getCompanyArticlesCount(long companyId, double version, 1756 int status, int start, int end) { 1757 return _journalArticleLocalService.getCompanyArticlesCount(companyId, 1758 version, status, start, end); 1759 } 1760 1761 /** 1762 * Returns the matching web content article currently displayed or next to 1763 * be displayed if no article is currently displayed. 1764 * 1765 * @param groupId the primary key of the web content article's group 1766 * @param articleId the primary key of the web content article 1767 * @return the matching web content article currently displayed, or the next 1768 one to be displayed if no version of the article is currently 1769 displayed 1770 * @throws PortalException if no approved matching web content articles 1771 could be found 1772 */ 1773 @Override 1774 public com.liferay.portlet.journal.model.JournalArticle getDisplayArticle( 1775 long groupId, java.lang.String articleId) 1776 throws com.liferay.portal.kernel.exception.PortalException { 1777 return _journalArticleLocalService.getDisplayArticle(groupId, articleId); 1778 } 1779 1780 /** 1781 * Returns the web content article matching the URL title that is currently 1782 * displayed or next to be displayed if no article is currently displayed. 1783 * 1784 * @param groupId the primary key of the web content article's group 1785 * @param urlTitle the web content article's accessible URL title 1786 * @return the web content article matching the URL title that is currently 1787 displayed, or next one to be displayed if no version of the 1788 article is currently displayed 1789 * @throws PortalException if no approved matching web content articles 1790 could be found 1791 */ 1792 @Override 1793 public com.liferay.portlet.journal.model.JournalArticle getDisplayArticleByUrlTitle( 1794 long groupId, java.lang.String urlTitle) 1795 throws com.liferay.portal.kernel.exception.PortalException { 1796 return _journalArticleLocalService.getDisplayArticleByUrlTitle(groupId, 1797 urlTitle); 1798 } 1799 1800 @Override 1801 public com.liferay.portal.kernel.dao.orm.ExportActionableDynamicQuery getExportActionableDynamicQuery( 1802 com.liferay.portal.kernel.lar.PortletDataContext portletDataContext) { 1803 return _journalArticleLocalService.getExportActionableDynamicQuery(portletDataContext); 1804 } 1805 1806 /** 1807 * Returns the indexable web content articles matching the resource primary 1808 * key. 1809 * 1810 * @param resourcePrimKey the primary key of the resource instance 1811 * @return the indexable web content articles matching the resource primary 1812 key 1813 */ 1814 @Override 1815 public java.util.List<com.liferay.portlet.journal.model.JournalArticle> getIndexableArticlesByResourcePrimKey( 1816 long resourcePrimKey) { 1817 return _journalArticleLocalService.getIndexableArticlesByResourcePrimKey(resourcePrimKey); 1818 } 1819 1820 /** 1821 * Returns the journal article with the primary key. 1822 * 1823 * @param id the primary key of the journal article 1824 * @return the journal article 1825 * @throws PortalException if a journal article with the primary key could not be found 1826 */ 1827 @Override 1828 public com.liferay.portlet.journal.model.JournalArticle getJournalArticle( 1829 long id) throws com.liferay.portal.kernel.exception.PortalException { 1830 return _journalArticleLocalService.getJournalArticle(id); 1831 } 1832 1833 /** 1834 * Returns the journal article matching the UUID and group. 1835 * 1836 * @param uuid the journal article's UUID 1837 * @param groupId the primary key of the group 1838 * @return the matching journal article 1839 * @throws PortalException if a matching journal article could not be found 1840 */ 1841 @Override 1842 public com.liferay.portlet.journal.model.JournalArticle getJournalArticleByUuidAndGroupId( 1843 java.lang.String uuid, long groupId) 1844 throws com.liferay.portal.kernel.exception.PortalException { 1845 return _journalArticleLocalService.getJournalArticleByUuidAndGroupId(uuid, 1846 groupId); 1847 } 1848 1849 /** 1850 * Returns a range of all the journal articles. 1851 * 1852 * <p> 1853 * 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 {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} 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 and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.journal.model.impl.JournalArticleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 1854 * </p> 1855 * 1856 * @param start the lower bound of the range of journal articles 1857 * @param end the upper bound of the range of journal articles (not inclusive) 1858 * @return the range of journal articles 1859 */ 1860 @Override 1861 public java.util.List<com.liferay.portlet.journal.model.JournalArticle> getJournalArticles( 1862 int start, int end) { 1863 return _journalArticleLocalService.getJournalArticles(start, end); 1864 } 1865 1866 /** 1867 * Returns all the journal articles matching the UUID and company. 1868 * 1869 * @param uuid the UUID of the journal articles 1870 * @param companyId the primary key of the company 1871 * @return the matching journal articles, or an empty list if no matches were found 1872 */ 1873 @Override 1874 public java.util.List<com.liferay.portlet.journal.model.JournalArticle> getJournalArticlesByUuidAndCompanyId( 1875 java.lang.String uuid, long companyId) { 1876 return _journalArticleLocalService.getJournalArticlesByUuidAndCompanyId(uuid, 1877 companyId); 1878 } 1879 1880 /** 1881 * Returns a range of journal articles matching the UUID and company. 1882 * 1883 * @param uuid the UUID of the journal articles 1884 * @param companyId the primary key of the company 1885 * @param start the lower bound of the range of journal articles 1886 * @param end the upper bound of the range of journal articles (not inclusive) 1887 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 1888 * @return the range of matching journal articles, or an empty list if no matches were found 1889 */ 1890 @Override 1891 public java.util.List<com.liferay.portlet.journal.model.JournalArticle> getJournalArticlesByUuidAndCompanyId( 1892 java.lang.String uuid, long companyId, int start, int end, 1893 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.journal.model.JournalArticle> orderByComparator) { 1894 return _journalArticleLocalService.getJournalArticlesByUuidAndCompanyId(uuid, 1895 companyId, start, end, orderByComparator); 1896 } 1897 1898 /** 1899 * Returns the number of journal articles. 1900 * 1901 * @return the number of journal articles 1902 */ 1903 @Override 1904 public int getJournalArticlesCount() { 1905 return _journalArticleLocalService.getJournalArticlesCount(); 1906 } 1907 1908 /** 1909 * Returns the latest web content article with the group and article ID. 1910 * 1911 * @param groupId the primary key of the web content article's group 1912 * @param articleId the primary key of the web content article 1913 * @return the latest matching web content article 1914 * @throws PortalException if a matching web content article could not be 1915 found 1916 */ 1917 @Override 1918 public com.liferay.portlet.journal.model.JournalArticle getLatestArticle( 1919 long groupId, java.lang.String articleId) 1920 throws com.liferay.portal.kernel.exception.PortalException { 1921 return _journalArticleLocalService.getLatestArticle(groupId, articleId); 1922 } 1923 1924 /** 1925 * Returns the latest web content article matching the group, article ID, 1926 * and workflow status. 1927 * 1928 * @param groupId the primary key of the web content article's group 1929 * @param articleId the primary key of the web content article 1930 * @param status the web content article's workflow status. For more 1931 information see {@link WorkflowConstants} for constants starting 1932 with the "STATUS_" prefix. 1933 * @return the latest matching web content article 1934 * @throws PortalException if a matching web content article could not be 1935 found 1936 */ 1937 @Override 1938 public com.liferay.portlet.journal.model.JournalArticle getLatestArticle( 1939 long groupId, java.lang.String articleId, int status) 1940 throws com.liferay.portal.kernel.exception.PortalException { 1941 return _journalArticleLocalService.getLatestArticle(groupId, articleId, 1942 status); 1943 } 1944 1945 /** 1946 * Returns the latest web content article matching the group, class name ID, 1947 * and class PK. 1948 * 1949 * @param groupId the primary key of the web content article's group 1950 * @param className the DDMStructure class name if the web content article 1951 is related to a DDM structure, the class name associated with the 1952 article, or {@link JournalArticleConstants#CLASSNAME_ID_DEFAULT} 1953 otherwise 1954 * @param classPK the primary key of the DDM structure, if the DDMStructure 1955 class name is given as the <code>className</code> parameter, the 1956 primary key of the class associated with the web content article, 1957 or <code>0</code> otherwise 1958 * @return the latest matching web content article 1959 * @throws PortalException if a matching web content article could not be 1960 found 1961 */ 1962 @Override 1963 public com.liferay.portlet.journal.model.JournalArticle getLatestArticle( 1964 long groupId, java.lang.String className, long classPK) 1965 throws com.liferay.portal.kernel.exception.PortalException { 1966 return _journalArticleLocalService.getLatestArticle(groupId, className, 1967 classPK); 1968 } 1969 1970 /** 1971 * Returns the latest web content article matching the resource primary key, 1972 * preferring articles with approved workflow status. 1973 * 1974 * @param resourcePrimKey the primary key of the resource instance 1975 * @return the latest web content article matching the resource primary key, 1976 preferring articles with approved workflow status 1977 * @throws PortalException if a matching web content article could not be 1978 found 1979 */ 1980 @Override 1981 public com.liferay.portlet.journal.model.JournalArticle getLatestArticle( 1982 long resourcePrimKey) 1983 throws com.liferay.portal.kernel.exception.PortalException { 1984 return _journalArticleLocalService.getLatestArticle(resourcePrimKey); 1985 } 1986 1987 /** 1988 * Returns the latest web content article matching the resource primary key 1989 * and workflow status, preferring articles with approved workflow status. 1990 * 1991 * @param resourcePrimKey the primary key of the resource instance 1992 * @param status the web content article's workflow status. For more 1993 information see {@link WorkflowConstants} for constants starting 1994 with the "STATUS_" prefix. 1995 * @return the latest web content article matching the resource primary key 1996 and workflow status, preferring articles with approved workflow 1997 status 1998 * @throws PortalException if a matching web content article could not be 1999 found 2000 */ 2001 @Override 2002 public com.liferay.portlet.journal.model.JournalArticle getLatestArticle( 2003 long resourcePrimKey, int status) 2004 throws com.liferay.portal.kernel.exception.PortalException { 2005 return _journalArticleLocalService.getLatestArticle(resourcePrimKey, 2006 status); 2007 } 2008 2009 /** 2010 * Returns the latest web content article matching the resource primary key 2011 * and workflow status, optionally preferring articles with approved 2012 * workflow status. 2013 * 2014 * @param resourcePrimKey the primary key of the resource instance 2015 * @param status the web content article's workflow status. For more 2016 information see {@link WorkflowConstants} for constants starting 2017 with the "STATUS_" prefix. 2018 * @param preferApproved whether to prefer returning the latest matching 2019 article that has workflow status {@link 2020 WorkflowConstants#STATUS_APPROVED} over returning one that has a 2021 different status 2022 * @return the latest web content article matching the resource primary key 2023 and workflow status, optionally preferring articles with approved 2024 workflow status 2025 * @throws PortalException if a matching web content article could not be 2026 found 2027 */ 2028 @Override 2029 public com.liferay.portlet.journal.model.JournalArticle getLatestArticle( 2030 long resourcePrimKey, int status, boolean preferApproved) 2031 throws com.liferay.portal.kernel.exception.PortalException { 2032 return _journalArticleLocalService.getLatestArticle(resourcePrimKey, 2033 status, preferApproved); 2034 } 2035 2036 /** 2037 * Returns the latest web content article matching the group, URL title, and 2038 * workflow status. 2039 * 2040 * @param groupId the primary key of the web content article's group 2041 * @param urlTitle the web content article's accessible URL title 2042 * @param status the web content article's workflow status. For more 2043 information see {@link WorkflowConstants} for constants starting 2044 with the "STATUS_" prefix. 2045 * @return the latest matching web content article 2046 * @throws PortalException if a matching web content article could not be 2047 found 2048 */ 2049 @Override 2050 public com.liferay.portlet.journal.model.JournalArticle getLatestArticleByUrlTitle( 2051 long groupId, java.lang.String urlTitle, int status) 2052 throws com.liferay.portal.kernel.exception.PortalException { 2053 return _journalArticleLocalService.getLatestArticleByUrlTitle(groupId, 2054 urlTitle, status); 2055 } 2056 2057 /** 2058 * Returns the latest version number of the web content with the group and 2059 * article ID. 2060 * 2061 * @param groupId the primary key of the web content article's group 2062 * @param articleId the primary key of the web content article 2063 * @return the latest version number of the matching web content 2064 * @throws PortalException if a matching web content article could not be 2065 found 2066 */ 2067 @Override 2068 public double getLatestVersion(long groupId, java.lang.String articleId) 2069 throws com.liferay.portal.kernel.exception.PortalException { 2070 return _journalArticleLocalService.getLatestVersion(groupId, articleId); 2071 } 2072 2073 /** 2074 * Returns the latest version number of the web content with the group, 2075 * article ID, and workflow status. 2076 * 2077 * @param groupId the primary key of the web content article's group 2078 * @param articleId the primary key of the web content article 2079 * @param status the web content article's workflow status. For more 2080 information see {@link WorkflowConstants} for constants starting 2081 with the "STATUS_" prefix. 2082 * @return the latest version number of the matching web content 2083 * @throws PortalException if a matching web content article could not be 2084 found 2085 */ 2086 @Override 2087 public double getLatestVersion(long groupId, java.lang.String articleId, 2088 int status) throws com.liferay.portal.kernel.exception.PortalException { 2089 return _journalArticleLocalService.getLatestVersion(groupId, articleId, 2090 status); 2091 } 2092 2093 @Override 2094 public java.util.List<com.liferay.portlet.journal.model.JournalArticle> getNoAssetArticles() { 2095 return _journalArticleLocalService.getNoAssetArticles(); 2096 } 2097 2098 @Override 2099 public java.util.List<com.liferay.portlet.journal.model.JournalArticle> getNoPermissionArticles() { 2100 return _journalArticleLocalService.getNoPermissionArticles(); 2101 } 2102 2103 /** 2104 * Returns the number of web content articles that are not recycled. 2105 * 2106 * @param groupId the primary key of the web content article's group 2107 * @param folderId the primary key of the web content article folder 2108 * @return the number of web content articles that are not recycled 2109 */ 2110 @Override 2111 public int getNotInTrashArticlesCount(long groupId, long folderId) { 2112 return _journalArticleLocalService.getNotInTrashArticlesCount(groupId, 2113 folderId); 2114 } 2115 2116 /** 2117 * Returns the oldest web content article with the group and article ID. 2118 * 2119 * @param groupId the primary key of the web content article's group 2120 * @param articleId the primary key of the web content article 2121 * @return the oldest matching web content article 2122 * @throws PortalException if a matching web content article could not be 2123 found 2124 */ 2125 @Override 2126 public com.liferay.portlet.journal.model.JournalArticle getOldestArticle( 2127 long groupId, java.lang.String articleId) 2128 throws com.liferay.portal.kernel.exception.PortalException { 2129 return _journalArticleLocalService.getOldestArticle(groupId, articleId); 2130 } 2131 2132 /** 2133 * Returns the oldest web content article matching the group, article ID, 2134 * and workflow status. 2135 * 2136 * @param groupId the primary key of the web content article's group 2137 * @param articleId the primary key of the web content article 2138 * @param status the web content article's workflow status. For more 2139 information see {@link WorkflowConstants} for constants starting 2140 with the "STATUS_" prefix. 2141 * @return the oldest matching web content article 2142 * @throws PortalException if a matching web content article could not be 2143 found 2144 */ 2145 @Override 2146 public com.liferay.portlet.journal.model.JournalArticle getOldestArticle( 2147 long groupId, java.lang.String articleId, int status) 2148 throws com.liferay.portal.kernel.exception.PortalException { 2149 return _journalArticleLocalService.getOldestArticle(groupId, articleId, 2150 status); 2151 } 2152 2153 @Override 2154 public com.liferay.portal.model.PersistedModel getPersistedModel( 2155 java.io.Serializable primaryKeyObj) 2156 throws com.liferay.portal.kernel.exception.PortalException { 2157 return _journalArticleLocalService.getPersistedModel(primaryKeyObj); 2158 } 2159 2160 /** 2161 * Returns the previously approved version of the web content article. For 2162 * more information on the approved workflow status, see {@link 2163 * WorkflowConstants#STATUS_APPROVED}. 2164 * 2165 * @param article the web content article 2166 * @return the previously approved version of the web content article, or 2167 the current web content article if there are no previously 2168 approved web content articles 2169 */ 2170 @Override 2171 public com.liferay.portlet.journal.model.JournalArticle getPreviousApprovedArticle( 2172 com.liferay.portlet.journal.model.JournalArticle article) { 2173 return _journalArticleLocalService.getPreviousApprovedArticle(article); 2174 } 2175 2176 /** 2177 * Returns the web content articles matching the DDM structure keys. 2178 * 2179 * @param ddmStructureKeys the primary keys of the web content article's 2180 DDM structures 2181 * @return the web content articles matching the DDM structure keys 2182 */ 2183 @Override 2184 public java.util.List<com.liferay.portlet.journal.model.JournalArticle> getStructureArticles( 2185 java.lang.String[] ddmStructureKeys) { 2186 return _journalArticleLocalService.getStructureArticles(ddmStructureKeys); 2187 } 2188 2189 /** 2190 * Returns the web content articles matching the group and DDM structure 2191 * key. 2192 * 2193 * @param groupId the primary key of the web content article's group 2194 * @param ddmStructureKey the primary key of the web content article's DDM 2195 structure 2196 * @return the matching web content articles 2197 */ 2198 @Override 2199 public java.util.List<com.liferay.portlet.journal.model.JournalArticle> getStructureArticles( 2200 long groupId, java.lang.String ddmStructureKey) { 2201 return _journalArticleLocalService.getStructureArticles(groupId, 2202 ddmStructureKey); 2203 } 2204 2205 /** 2206 * Returns an ordered range of all the web content articles matching the 2207 * group and DDM structure key. 2208 * 2209 * <p> 2210 * Useful when paginating results. Returns a maximum of <code>end - 2211 * start</code> instances. <code>start</code> and <code>end</code> are not 2212 * primary keys, they are indexes in the result set. Thus, <code>0</code> 2213 * refers to the first result in the set. Setting both <code>start</code> 2214 * and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full 2215 * result set. 2216 * </p> 2217 * 2218 * @param groupId the primary key of the web content article's group 2219 * @param ddmStructureKey the primary key of the web content article's DDM 2220 structure 2221 * @param start the lower bound of the range of web content articles to 2222 return 2223 * @param end the upper bound of the range of web content articles to 2224 return (not inclusive) 2225 * @param obc the comparator to order the web content articles 2226 * @return the range of matching web content articles ordered by the 2227 comparator 2228 */ 2229 @Override 2230 public java.util.List<com.liferay.portlet.journal.model.JournalArticle> getStructureArticles( 2231 long groupId, java.lang.String ddmStructureKey, int start, int end, 2232 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.journal.model.JournalArticle> obc) { 2233 return _journalArticleLocalService.getStructureArticles(groupId, 2234 ddmStructureKey, start, end, obc); 2235 } 2236 2237 /** 2238 * Returns the number of web content articles matching the group and DDM 2239 * structure key. 2240 * 2241 * @param groupId the primary key of the web content article's group 2242 * @param ddmStructureKey the primary key of the web content article's DDM 2243 structure 2244 * @return the number of matching web content articles 2245 */ 2246 @Override 2247 public int getStructureArticlesCount(long groupId, 2248 java.lang.String ddmStructureKey) { 2249 return _journalArticleLocalService.getStructureArticlesCount(groupId, 2250 ddmStructureKey); 2251 } 2252 2253 /** 2254 * Returns the web content articles matching the group and DDM template key. 2255 * 2256 * @param groupId the primary key of the web content article's group 2257 * @param ddmTemplateKey the primary key of the web content article's DDM 2258 template 2259 * @return the matching web content articles 2260 */ 2261 @Override 2262 public java.util.List<com.liferay.portlet.journal.model.JournalArticle> getTemplateArticles( 2263 long groupId, java.lang.String ddmTemplateKey) { 2264 return _journalArticleLocalService.getTemplateArticles(groupId, 2265 ddmTemplateKey); 2266 } 2267 2268 /** 2269 * Returns an ordered range of all the web content articles matching the 2270 * group and DDM template key. 2271 * 2272 * <p> 2273 * Useful when paginating results. Returns a maximum of <code>end - 2274 * start</code> instances. <code>start</code> and <code>end</code> are not 2275 * primary keys, they are indexes in the result set. Thus, <code>0</code> 2276 * refers to the first result in the set. Setting both <code>start</code> 2277 * and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full 2278 * result set. 2279 * </p> 2280 * 2281 * @param groupId the primary key of the web content article's group 2282 * @param ddmTemplateKey the primary key of the web content article's DDM 2283 template 2284 * @param start the lower bound of the range of web content articles to 2285 return 2286 * @param end the upper bound of the range of web content articles to 2287 return (not inclusive) 2288 * @param obc the comparator to order the web content articles 2289 * @return the range of matching web content articles ordered by the 2290 comparator 2291 */ 2292 @Override 2293 public java.util.List<com.liferay.portlet.journal.model.JournalArticle> getTemplateArticles( 2294 long groupId, java.lang.String ddmTemplateKey, int start, int end, 2295 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.journal.model.JournalArticle> obc) { 2296 return _journalArticleLocalService.getTemplateArticles(groupId, 2297 ddmTemplateKey, start, end, obc); 2298 } 2299 2300 /** 2301 * Returns the number of web content articles matching the group and DDM 2302 * template key. 2303 * 2304 * @param groupId the primary key of the web content article's group 2305 * @param ddmTemplateKey the primary key of the web content article's DDM 2306 template 2307 * @return the number of matching web content articles 2308 */ 2309 @Override 2310 public int getTemplateArticlesCount(long groupId, 2311 java.lang.String ddmTemplateKey) { 2312 return _journalArticleLocalService.getTemplateArticlesCount(groupId, 2313 ddmTemplateKey); 2314 } 2315 2316 /** 2317 * Returns the web content article's unique URL title. 2318 * 2319 * @param groupId the primary key of the web content article's group 2320 * @param articleId the primary key of the web content article 2321 * @param urlTitle the web content article's accessible URL title 2322 * @return the web content article's unique URL title 2323 * @throws PortalException if a portal exception occurred 2324 */ 2325 @Override 2326 public java.lang.String getUniqueUrlTitle(long groupId, 2327 java.lang.String articleId, java.lang.String urlTitle) 2328 throws com.liferay.portal.kernel.exception.PortalException { 2329 return _journalArticleLocalService.getUniqueUrlTitle(groupId, 2330 articleId, urlTitle); 2331 } 2332 2333 /** 2334 * Returns <code>true</code> if the specified web content article exists. 2335 * 2336 * @param groupId the primary key of the group 2337 * @param articleId the primary key of the web content article 2338 * @return <code>true</code> if the specified web content article exists; 2339 <code>false</code> otherwise 2340 */ 2341 @Override 2342 public boolean hasArticle(long groupId, java.lang.String articleId) { 2343 return _journalArticleLocalService.hasArticle(groupId, articleId); 2344 } 2345 2346 /** 2347 * Returns <code>true</code> if the web content article, specified by group 2348 * and article ID, is the latest version. 2349 * 2350 * @param groupId the primary key of the web content article's group 2351 * @param articleId the primary key of the web content article 2352 * @param version the web content article's version 2353 * @return <code>true</code> if the specified web content article is the 2354 latest version; <code>false</code> otherwise 2355 * @throws PortalException if a matching web content article could not be 2356 found 2357 */ 2358 @Override 2359 public boolean isLatestVersion(long groupId, java.lang.String articleId, 2360 double version) 2361 throws com.liferay.portal.kernel.exception.PortalException { 2362 return _journalArticleLocalService.isLatestVersion(groupId, articleId, 2363 version); 2364 } 2365 2366 /** 2367 * Returns <code>true</code> if the web content article, specified by group, 2368 * article ID, and workflow status, is the latest version. 2369 * 2370 * @param groupId the primary key of the web content article's group 2371 * @param articleId the primary key of the web content article 2372 * @param version the web content article's version 2373 * @param status the web content article's workflow status. For more 2374 information see {@link WorkflowConstants} for constants starting 2375 with the "STATUS_" prefix. 2376 * @return <code>true</code> if the specified web content article is the 2377 latest version; <code>false</code> otherwise 2378 * @throws PortalException if a matching web content article could not be 2379 found 2380 */ 2381 @Override 2382 public boolean isLatestVersion(long groupId, java.lang.String articleId, 2383 double version, int status) 2384 throws com.liferay.portal.kernel.exception.PortalException { 2385 return _journalArticleLocalService.isLatestVersion(groupId, articleId, 2386 version, status); 2387 } 2388 2389 @Override 2390 public boolean isRenderable( 2391 com.liferay.portlet.journal.model.JournalArticle article, 2392 com.liferay.portal.kernel.portlet.PortletRequestModel portletRequestModel, 2393 com.liferay.portal.theme.ThemeDisplay themeDisplay) { 2394 return _journalArticleLocalService.isRenderable(article, 2395 portletRequestModel, themeDisplay); 2396 } 2397 2398 /** 2399 * Moves the web content article matching the group and article ID to a new 2400 * folder. 2401 * 2402 * @param groupId the primary key of the web content article's group 2403 * @param articleId the primary key of the web content article 2404 * @param newFolderId the primary key of the web content article's new 2405 folder 2406 * @return the updated web content article, which was moved to a new folder 2407 * @throws PortalException if a matching web content article could not be 2408 found 2409 */ 2410 @Override 2411 public com.liferay.portlet.journal.model.JournalArticle moveArticle( 2412 long groupId, java.lang.String articleId, long newFolderId) 2413 throws com.liferay.portal.kernel.exception.PortalException { 2414 return _journalArticleLocalService.moveArticle(groupId, articleId, 2415 newFolderId); 2416 } 2417 2418 /** 2419 * Moves the web content article from the Recycle Bin to a new folder. 2420 * 2421 * @param userId the primary key of the user updating the web content 2422 article 2423 * @param groupId the primary key of the web content article's group 2424 * @param article the web content article 2425 * @param newFolderId the primary key of the web content article's new 2426 folder 2427 * @param serviceContext the service context to be applied. Can set the 2428 modification date, portlet preferences, and can set whether to 2429 add the default command update for the web content article. With 2430 respect to social activities, by setting the service context's 2431 command to {@link 2432 com.liferay.portal.kernel.util.Constants#UPDATE}, the invocation 2433 is considered a web content update activity; otherwise it is 2434 considered a web content add activity. 2435 * @return the updated web content article, which was moved from the Recycle 2436 Bin to a new folder 2437 * @throws PortalException if a trashed web content article with the primary 2438 key could not be found or if a portal exception occurred 2439 */ 2440 @Override 2441 public com.liferay.portlet.journal.model.JournalArticle moveArticleFromTrash( 2442 long userId, long groupId, 2443 com.liferay.portlet.journal.model.JournalArticle article, 2444 long newFolderId, 2445 com.liferay.portal.service.ServiceContext serviceContext) 2446 throws com.liferay.portal.kernel.exception.PortalException { 2447 return _journalArticleLocalService.moveArticleFromTrash(userId, 2448 groupId, article, newFolderId, serviceContext); 2449 } 2450 2451 /** 2452 * Moves the latest version of the web content article matching the group 2453 * and article ID to the recycle bin. 2454 * 2455 * @param userId the primary key of the user updating the web content 2456 article 2457 * @param article the web content article 2458 * @return the updated web content article, which was moved to the Recycle 2459 Bin 2460 * @throws PortalException if the user did not have permission to move the 2461 article to the Recycle Bin or if a portal exception occurred 2462 */ 2463 @Override 2464 public com.liferay.portlet.journal.model.JournalArticle moveArticleToTrash( 2465 long userId, com.liferay.portlet.journal.model.JournalArticle article) 2466 throws com.liferay.portal.kernel.exception.PortalException { 2467 return _journalArticleLocalService.moveArticleToTrash(userId, article); 2468 } 2469 2470 /** 2471 * Moves the latest version of the web content article matching the group 2472 * and article ID to the recycle bin. 2473 * 2474 * @param userId the primary key of the user updating the web content 2475 article 2476 * @param groupId the primary key of the web content article's group 2477 * @param articleId the primary key of the web content article 2478 * @return the moved web content article or <code>null</code> if no matching 2479 article was found 2480 * @throws PortalException if the user did not have permission to move the 2481 article to the Recycle Bin or if a portal exception occurred 2482 */ 2483 @Override 2484 public com.liferay.portlet.journal.model.JournalArticle moveArticleToTrash( 2485 long userId, long groupId, java.lang.String articleId) 2486 throws com.liferay.portal.kernel.exception.PortalException { 2487 return _journalArticleLocalService.moveArticleToTrash(userId, groupId, 2488 articleId); 2489 } 2490 2491 /** 2492 * Rebuilds the web content article's tree path using tree traversal. 2493 * 2494 * <p> 2495 * For example, here is a conceptualization of a web content article tree 2496 * path: 2497 * </p> 2498 * 2499 * <p> 2500 * <pre> 2501 * <code> 2502 * /(Folder's folderId)/(Subfolder's folderId)/(article's articleId) 2503 * </code> 2504 * </pre> 2505 * </p> 2506 * 2507 * @param companyId the primary key of the web content article's company 2508 * @throws PortalException if a portal exception occurred 2509 */ 2510 @Override 2511 public void rebuildTree(long companyId) 2512 throws com.liferay.portal.kernel.exception.PortalException { 2513 _journalArticleLocalService.rebuildTree(companyId); 2514 } 2515 2516 /** 2517 * Removes the web content of the web content article matching the group, 2518 * article ID, and version, and language. 2519 * 2520 * @param groupId the primary key of the web content article's group 2521 * @param articleId the primary key of the web content article 2522 * @param version the web content article's version 2523 * @param languageId the primary key of the language locale to remove 2524 * @return the updated web content article with the locale removed 2525 * @throws PortalException if a matching web content article could not be 2526 found 2527 */ 2528 @Override 2529 public com.liferay.portlet.journal.model.JournalArticle removeArticleLocale( 2530 long groupId, java.lang.String articleId, double version, 2531 java.lang.String languageId) 2532 throws com.liferay.portal.kernel.exception.PortalException { 2533 return _journalArticleLocalService.removeArticleLocale(groupId, 2534 articleId, version, languageId); 2535 } 2536 2537 /** 2538 * Restores the web content article from the Recycle Bin. 2539 * 2540 * @param userId the primary key of the user restoring the web content 2541 article 2542 * @param article the web content article 2543 * @return the restored web content article from the Recycle Bin 2544 * @throws PortalException if the web content article with the primary key 2545 could not be found in the Recycle Bin, if the user did not have 2546 permission to restore the article, or if a portal exception 2547 occurred 2548 */ 2549 @Override 2550 public com.liferay.portlet.journal.model.JournalArticle restoreArticleFromTrash( 2551 long userId, com.liferay.portlet.journal.model.JournalArticle article) 2552 throws com.liferay.portal.kernel.exception.PortalException { 2553 return _journalArticleLocalService.restoreArticleFromTrash(userId, 2554 article); 2555 } 2556 2557 /** 2558 * Returns an ordered range of all the web content articles matching the 2559 * parameters using the indexer, including a keywords parameter for matching 2560 * an article's ID, title, description, or content, a DDM structure key 2561 * parameter, a DDM template key parameter, an AND operator switch, and 2562 * parameters for type, status, a finder hash map. It is preferable to use 2563 * this method instead of the non-indexed version whenever possible for 2564 * performance reasons. 2565 * 2566 * <p> 2567 * Useful when paginating results. Returns a maximum of <code>end - 2568 * start</code> instances. <code>start</code> and <code>end</code> are not 2569 * primary keys, they are indexes in the result set. Thus, <code>0</code> 2570 * refers to the first result in the set. Setting both <code>start</code> 2571 * and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full 2572 * result set. 2573 * </p> 2574 * 2575 * @param companyId the primary key of the web content article's company 2576 * @param groupId the primary key of the group (optionally <code>0</code>) 2577 * @param folderIds the primary keys of the web content article folders 2578 (optionally {@link java.util.Collections#EMPTY_LIST}) 2579 * @param classNameId the primary key of the DDMStructure class if the web 2580 content article is related to a DDM structure, the primary key of 2581 the class name associated with the article, or {@link 2582 JournalArticleConstants#CLASSNAME_ID_DEFAULT} otherwise 2583 * @param articleId the article ID keywords (space separated, optionally 2584 <code>null</code>) 2585 * @param title the title keywords (space separated, optionally 2586 <code>null</code>) 2587 * @param description the description keywords (space separated, optionally 2588 <code>null</code>) 2589 * @param content the content keywords (space separated, optionally 2590 <code>null</code>) 2591 * @param status the web content article's workflow status. For more 2592 information see {@link WorkflowConstants} for constants starting 2593 with the "STATUS_" prefix. 2594 * @param ddmStructureKey the primary key of the web content article's DDM 2595 structure, if the article is related to a DDM structure, or 2596 <code>null</code> otherwise 2597 * @param ddmTemplateKey the primary key of the web content article's DDM 2598 template 2599 * @param params the finder parameters (optionally <code>null</code>). The 2600 <code>includeDiscussions</code> parameter can be set to 2601 <code>true</code> to search for the keywords in the web content 2602 article discussions. 2603 * @param andSearch whether every field must match its value or keywords, 2604 or just one field must match 2605 * @param start the lower bound of the range of web content articles to 2606 return 2607 * @param end the upper bound of the range of web content articles to 2608 return (not inclusive) 2609 * @param sort the field, type, and direction by which to sort (optionally 2610 <code>null</code>) 2611 * @return the matching web content articles ordered by <code>sort</code> 2612 */ 2613 @Override 2614 public com.liferay.portal.kernel.search.Hits search(long companyId, 2615 long groupId, java.util.List<java.lang.Long> folderIds, 2616 long classNameId, java.lang.String articleId, java.lang.String title, 2617 java.lang.String description, java.lang.String content, int status, 2618 java.lang.String ddmStructureKey, java.lang.String ddmTemplateKey, 2619 java.util.LinkedHashMap<java.lang.String, java.lang.Object> params, 2620 boolean andSearch, int start, int end, 2621 com.liferay.portal.kernel.search.Sort sort) { 2622 return _journalArticleLocalService.search(companyId, groupId, 2623 folderIds, classNameId, articleId, title, description, content, 2624 status, ddmStructureKey, ddmTemplateKey, params, andSearch, start, 2625 end, sort); 2626 } 2627 2628 /** 2629 * @deprecated As of 7.0.0, replaced by {@link #search(long, long, List, 2630 long, String, String, String, String, int, String, String, 2631 LinkedHashMap, boolean, int, int, Sort)} 2632 */ 2633 @Deprecated 2634 @Override 2635 public com.liferay.portal.kernel.search.Hits search(long companyId, 2636 long groupId, java.util.List<java.lang.Long> folderIds, 2637 long classNameId, java.lang.String articleId, java.lang.String title, 2638 java.lang.String description, java.lang.String content, 2639 java.lang.String type, java.lang.String statusString, 2640 java.lang.String ddmStructureKey, java.lang.String ddmTemplateKey, 2641 java.util.LinkedHashMap<java.lang.String, java.lang.Object> params, 2642 boolean andSearch, int start, int end, 2643 com.liferay.portal.kernel.search.Sort sort) { 2644 return _journalArticleLocalService.search(companyId, groupId, 2645 folderIds, classNameId, articleId, title, description, content, 2646 type, statusString, ddmStructureKey, ddmTemplateKey, params, 2647 andSearch, start, end, sort); 2648 } 2649 2650 /** 2651 * Returns an ordered range of all the web content articles matching the 2652 * parameters without using the indexer, including keyword parameters for 2653 * article ID, title, description, and content, a DDM structure key 2654 * parameter, a DDM template key parameter, and an AND operator switch. It 2655 * is preferable to use the indexed version {@link #search(long, long, List, 2656 * long, String, String, String, String, int, String, String, LinkedHashMap, 2657 * boolean, int, int, Sort)} instead of this method wherever possible for 2658 * performance reasons. 2659 * 2660 * <p> 2661 * Useful when paginating results. Returns a maximum of <code>end - 2662 * start</code> instances. <code>start</code> and <code>end</code> are not 2663 * primary keys, they are indexes in the result set. Thus, <code>0</code> 2664 * refers to the first result in the set. Setting both <code>start</code> 2665 * and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full 2666 * result set. 2667 * </p> 2668 * 2669 * @param companyId the primary key of the web content article's company 2670 * @param groupId the primary key of the group (optionally <code>0</code>) 2671 * @param folderIds the primary keys of the web content article folders 2672 (optionally {@link java.util.Collections#EMPTY_LIST}) 2673 * @param classNameId the primary key of the DDMStructure class if the web 2674 content article is related to a DDM structure, the primary key of 2675 the class name associated with the article, or {@link 2676 JournalArticleConstants#CLASSNAME_ID_DEFAULT} otherwise 2677 * @param articleId the article ID keywords (space separated, optionally 2678 <code>null</code>) 2679 * @param version the web content article's version (optionally 2680 <code>null</code>) 2681 * @param title the title keywords (space separated, optionally 2682 <code>null</code>) 2683 * @param description the description keywords (space separated, optionally 2684 <code>null</code>) 2685 * @param content the content keywords (space separated, optionally 2686 <code>null</code>) 2687 * @param ddmStructureKey the primary key of the web content article's DDM 2688 structure, if the article is related to a DDM structure, or 2689 <code>null</code> otherwise 2690 * @param ddmTemplateKey the primary key of the web content article's DDM 2691 template 2692 * @param displayDateGT the date after which a matching web content 2693 article's display date must be after (optionally 2694 <code>null</code>) 2695 * @param displayDateLT the date before which a matching web content 2696 article's display date must be before (optionally 2697 <code>null</code>) 2698 * @param status the web content article's workflow status. For more 2699 information see {@link WorkflowConstants} for constants starting 2700 with the "STATUS_" prefix. 2701 * @param reviewDate the web content article's scheduled review date 2702 (optionally <code>null</code>) 2703 * @param andOperator whether every field must match its value or keywords, 2704 or just one field must match. Company, group, folder IDs, class 2705 name ID, and status must all match their values. 2706 * @param start the lower bound of the range of web content articles to 2707 return 2708 * @param end the upper bound of the range of web content articles to 2709 return (not inclusive) 2710 * @param obc the comparator to order the web content articles 2711 * @return the range of matching web content articles ordered by the 2712 comparator 2713 */ 2714 @Override 2715 public java.util.List<com.liferay.portlet.journal.model.JournalArticle> search( 2716 long companyId, long groupId, java.util.List<java.lang.Long> folderIds, 2717 long classNameId, java.lang.String articleId, java.lang.Double version, 2718 java.lang.String title, java.lang.String description, 2719 java.lang.String content, java.lang.String ddmStructureKey, 2720 java.lang.String ddmTemplateKey, java.util.Date displayDateGT, 2721 java.util.Date displayDateLT, int status, java.util.Date reviewDate, 2722 boolean andOperator, int start, int end, 2723 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.journal.model.JournalArticle> obc) { 2724 return _journalArticleLocalService.search(companyId, groupId, 2725 folderIds, classNameId, articleId, version, title, description, 2726 content, ddmStructureKey, ddmTemplateKey, displayDateGT, 2727 displayDateLT, status, reviewDate, andOperator, start, end, obc); 2728 } 2729 2730 /** 2731 * Returns an ordered range of all the web content articles matching the 2732 * parameters without using the indexer, including keyword parameters for 2733 * article ID, title, description, and content, a DDM structure keys 2734 * (plural) parameter, a DDM template keys (plural) parameter, and an AND 2735 * operator switch. 2736 * 2737 * <p> 2738 * Useful when paginating results. Returns a maximum of <code>end - 2739 * start</code> instances. <code>start</code> and <code>end</code> are not 2740 * primary keys, they are indexes in the result set. Thus, <code>0</code> 2741 * refers to the first result in the set. Setting both <code>start</code> 2742 * and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full 2743 * result set. 2744 * </p> 2745 * 2746 * @param companyId the primary key of the web content article's company 2747 * @param groupId the primary key of the group (optionally <code>0</code>) 2748 * @param folderIds the primary keys of the web content article folders 2749 (optionally {@link java.util.Collections#EMPTY_LIST}) 2750 * @param classNameId the primary key of the DDMStructure class if the web 2751 content article is related to a DDM structure, the primary key of 2752 the class name associated with the article, or {@link 2753 JournalArticleConstants#CLASSNAME_ID_DEFAULT} otherwise 2754 * @param articleId the article ID keywords (space separated, optionally 2755 <code>null</code>) 2756 * @param version the web content article's version (optionally 2757 <code>null</code>) 2758 * @param title the title keywords (space separated, optionally 2759 <code>null</code>) 2760 * @param description the description keywords (space separated, optionally 2761 <code>null</code>) 2762 * @param content the content keywords (space separated, optionally 2763 <code>null</code>) 2764 * @param ddmStructureKeys the primary keys of the web content article's 2765 DDM structures, if the article is related to a DDM structure, or 2766 <code>null</code> otherwise 2767 * @param ddmTemplateKeys the primary keys of the web content article's DDM 2768 templates (originally <code>null</code>). If the articles are 2769 related to a DDM structure, the template's structure must match 2770 it. 2771 * @param displayDateGT the date after which a matching web content 2772 article's display date must be after (optionally 2773 <code>null</code>) 2774 * @param displayDateLT the date before which a matching web content 2775 article's display date must be before (optionally 2776 <code>null</code>) 2777 * @param status the web content article's workflow status. For more 2778 information see {@link WorkflowConstants} for constants starting 2779 with the "STATUS_" prefix. 2780 * @param reviewDate the web content article's scheduled review date 2781 (optionally <code>null</code>) 2782 * @param andOperator whether every field must match its value or keywords, 2783 or just one field must match. Company, group, folder IDs, class 2784 name ID, and status must all match their values. 2785 * @param start the lower bound of the range of web content articles to 2786 return 2787 * @param end the upper bound of the range of web content articles to 2788 return (not inclusive) 2789 * @param obc the comparator to order the web content articles 2790 * @return the range of matching web content articles ordered by the 2791 comparator 2792 */ 2793 @Override 2794 public java.util.List<com.liferay.portlet.journal.model.JournalArticle> search( 2795 long companyId, long groupId, java.util.List<java.lang.Long> folderIds, 2796 long classNameId, java.lang.String articleId, java.lang.Double version, 2797 java.lang.String title, java.lang.String description, 2798 java.lang.String content, java.lang.String[] ddmStructureKeys, 2799 java.lang.String[] ddmTemplateKeys, java.util.Date displayDateGT, 2800 java.util.Date displayDateLT, int status, java.util.Date reviewDate, 2801 boolean andOperator, int start, int end, 2802 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.journal.model.JournalArticle> obc) { 2803 return _journalArticleLocalService.search(companyId, groupId, 2804 folderIds, classNameId, articleId, version, title, description, 2805 content, ddmStructureKeys, ddmTemplateKeys, displayDateGT, 2806 displayDateLT, status, reviewDate, andOperator, start, end, obc); 2807 } 2808 2809 /** 2810 * Returns an ordered range of all the web content articles matching the 2811 * parameters using the indexer, including a keywords parameter for matching 2812 * an article's ID, title, description, or content, a DDM structure key 2813 * parameter, a DDM template key parameter, and a finder hash map parameter. 2814 * It is preferable to use this method instead of the non-indexed version 2815 * whenever possible for performance reasons. 2816 * 2817 * <p> 2818 * Useful when paginating results. Returns a maximum of <code>end - 2819 * start</code> instances. <code>start</code> and <code>end</code> are not 2820 * primary keys, they are indexes in the result set. Thus, <code>0</code> 2821 * refers to the first result in the set. Setting both <code>start</code> 2822 * and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full 2823 * result set. 2824 * </p> 2825 * 2826 * @param companyId the primary key of the web content article's company 2827 * @param groupId the primary key of the group (optionally <code>0</code>) 2828 * @param folderIds the primary keys of the web content article folders 2829 (optionally {@link java.util.Collections#EMPTY_LIST}) 2830 * @param classNameId the primary key of the DDMStructure class if the web 2831 content article is related to a DDM structure, the primary key of 2832 the class name associated with the article, or {@link 2833 JournalArticleConstants#CLASSNAME_ID_DEFAULT} otherwise 2834 * @param ddmStructureKey the primary key of the web content article's DDM 2835 structure, if the article is related to a DDM structure, or 2836 <code>null</code> otherwise 2837 * @param ddmTemplateKey the primary key of the web content article's DDM 2838 template 2839 * @param keywords the keywords (space separated), which may occur in the 2840 web content article ID, title, description, or content 2841 (optionally <code>null</code>). If the keywords value is not 2842 <code>null</code>, the search uses the OR operator in connecting 2843 query criteria; otherwise it uses the AND operator. 2844 * @param params the finder parameters (optionally <code>null</code>) 2845 * @param start the lower bound of the range of web content articles to 2846 return 2847 * @param end the upper bound of the range of web content articles to 2848 return (not inclusive) 2849 * @param sort the field, type, and direction by which to sort (optionally 2850 <code>null</code>) 2851 * @return the matching web content articles ordered by <code>sort</code> 2852 */ 2853 @Override 2854 public com.liferay.portal.kernel.search.Hits search(long companyId, 2855 long groupId, java.util.List<java.lang.Long> folderIds, 2856 long classNameId, java.lang.String ddmStructureKey, 2857 java.lang.String ddmTemplateKey, java.lang.String keywords, 2858 java.util.LinkedHashMap<java.lang.String, java.lang.Object> params, 2859 int start, int end, com.liferay.portal.kernel.search.Sort sort) { 2860 return _journalArticleLocalService.search(companyId, groupId, 2861 folderIds, classNameId, ddmStructureKey, ddmTemplateKey, keywords, 2862 params, start, end, sort); 2863 } 2864 2865 /** 2866 * Returns an ordered range of all the web content articles matching the 2867 * parameters without using the indexer, including a keywords parameter for 2868 * matching with the article's ID, title, description, and content, a DDM 2869 * structure key parameter, and a DDM template key parameter. It is 2870 * preferable to use the indexed version {@link #search(long, long, List, 2871 * long, String, String, String, LinkedHashMap, int, int, Sort)} instead of 2872 * this method wherever possible for performance reasons. 2873 * 2874 * <p> 2875 * Useful when paginating results. Returns a maximum of <code>end - 2876 * start</code> instances. <code>start</code> and <code>end</code> are not 2877 * primary keys, they are indexes in the result set. Thus, <code>0</code> 2878 * refers to the first result in the set. Setting both <code>start</code> 2879 * and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full 2880 * result set. 2881 * </p> 2882 * 2883 * @param companyId the primary key of the web content article's company 2884 * @param groupId the primary key of the group (optionally <code>0</code>) 2885 * @param folderIds the primary keys of the web content article folders 2886 (optionally {@link java.util.Collections#EMPTY_LIST}) 2887 * @param classNameId the primary key of the DDMStructure class if the web 2888 content article is related to a DDM structure, the primary key of 2889 the class name associated with the article, or {@link 2890 JournalArticleConstants#CLASSNAME_ID_DEFAULT} otherwise 2891 * @param keywords the keywords (space separated), which may occur in the 2892 web content article ID, title, description, or content 2893 (optionally <code>null</code>). If the keywords value is not 2894 <code>null</code>, the search uses the OR operator in connecting 2895 query criteria; otherwise it uses the AND operator. 2896 * @param version the web content article's version (optionally 2897 <code>null</code>) 2898 * @param ddmStructureKey the primary key of the web content article's DDM 2899 structure, if the article is related to a DDM structure, or 2900 <code>null</code> otherwise 2901 * @param ddmTemplateKey the primary key of the web content article's DDM 2902 template 2903 * @param displayDateGT the date after which a matching web content 2904 article's display date must be after (optionally 2905 <code>null</code>) 2906 * @param displayDateLT the date before which a matching web content 2907 article's display date must be before (optionally 2908 <code>null</code>) 2909 * @param status the web content article's workflow status. For more 2910 information see {@link WorkflowConstants} for constants starting 2911 with the "STATUS_" prefix. 2912 * @param reviewDate the web content article's scheduled review date 2913 (optionally <code>null</code>) 2914 * @param start the lower bound of the range of web content articles to 2915 return 2916 * @param end the upper bound of the range of web content articles to 2917 return (not inclusive) 2918 * @param obc the comparator to order the web content articles 2919 * @return the range of matching web content articles ordered by the 2920 comparator 2921 */ 2922 @Override 2923 public java.util.List<com.liferay.portlet.journal.model.JournalArticle> search( 2924 long companyId, long groupId, java.util.List<java.lang.Long> folderIds, 2925 long classNameId, java.lang.String keywords, java.lang.Double version, 2926 java.lang.String ddmStructureKey, java.lang.String ddmTemplateKey, 2927 java.util.Date displayDateGT, java.util.Date displayDateLT, int status, 2928 java.util.Date reviewDate, int start, int end, 2929 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.journal.model.JournalArticle> obc) { 2930 return _journalArticleLocalService.search(companyId, groupId, 2931 folderIds, classNameId, keywords, version, ddmStructureKey, 2932 ddmTemplateKey, displayDateGT, displayDateLT, status, reviewDate, 2933 start, end, obc); 2934 } 2935 2936 /** 2937 * Returns a range of all the web content articles in a single folder 2938 * matching the parameters without using the indexer. It is preferable to 2939 * use the indexed version {@link #search(long, long, long, int, int, int)} 2940 * instead of this method wherever possible for performance reasons. 2941 * 2942 * <p> 2943 * Useful when paginating results. Returns a maximum of <code>end - 2944 * start</code> instances. <code>start</code> and <code>end</code> are not 2945 * primary keys, they are indexes in the result set. Thus, <code>0</code> 2946 * refers to the first result in the set. Setting both <code>start</code> 2947 * and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full 2948 * result set. 2949 * </p> 2950 * 2951 * @param groupId the primary key of the group (optionally <code>0</code>) 2952 * @param folderId the primary key of the web content article folder 2953 * @param status the web content article's workflow status. For more 2954 information see {@link WorkflowConstants} for constants starting 2955 with the "STATUS_" prefix. 2956 * @param start the lower bound of the range of web content articles to 2957 return 2958 * @param end the upper bound of the range of web content articles to 2959 return (not inclusive) 2960 * @return the matching web content articles 2961 */ 2962 @Override 2963 public java.util.List<com.liferay.portlet.journal.model.JournalArticle> search( 2964 long groupId, long folderId, int status, int start, int end) { 2965 return _journalArticleLocalService.search(groupId, folderId, status, 2966 start, end); 2967 } 2968 2969 /** 2970 * Returns a range of all the web content articles matching the parameters 2971 * without using the indexer. It is preferable to use the indexed version 2972 * {@link #search(long, long, long, int, int, int)} instead of this method 2973 * wherever possible for performance reasons. 2974 * 2975 * <p> 2976 * Useful when paginating results. Returns a maximum of <code>end - 2977 * start</code> instances. <code>start</code> and <code>end</code> are not 2978 * primary keys, they are indexes in the result set. Thus, <code>0</code> 2979 * refers to the first result in the set. Setting both <code>start</code> 2980 * and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full 2981 * result set. 2982 * </p> 2983 * 2984 * @param groupId the primary key of the group (optionally <code>0</code>) 2985 * @param folderIds the primary keys of the web content article folders 2986 (optionally {@link java.util.Collections#EMPTY_LIST}) 2987 * @param status the web content article's workflow status. For more 2988 information see {@link WorkflowConstants} for constants starting 2989 with the "STATUS_" prefix. 2990 * @param start the lower bound of the range of web content articles to 2991 return 2992 * @param end the upper bound of the range of web content articles to 2993 return (not inclusive) 2994 * @return the matching web content articles 2995 */ 2996 @Override 2997 public java.util.List<com.liferay.portlet.journal.model.JournalArticle> search( 2998 long groupId, java.util.List<java.lang.Long> folderIds, int status, 2999 int start, int end) { 3000 return _journalArticleLocalService.search(groupId, folderIds, status, 3001 start, end); 3002 } 3003 3004 /** 3005 * Returns a range of all the web content articles matching the group, 3006 * creator, and status using the indexer. It is preferable to use this 3007 * method instead of the non-indexed version whenever possible for 3008 * performance reasons. 3009 * 3010 * <p> 3011 * Useful when paginating results. Returns a maximum of <code>end - 3012 * start</code> instances. <code>start</code> and <code>end</code> are not 3013 * primary keys, they are indexes in the result set. Thus, <code>0</code> 3014 * refers to the first result in the set. Setting both <code>start</code> 3015 * and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full 3016 * result set. 3017 * </p> 3018 * 3019 * @param groupId the primary key of the group (optionally <code>0</code>) 3020 * @param userId the primary key of the user searching for web content 3021 articles 3022 * @param creatorUserId the primary key of the web content article's 3023 creator 3024 * @param status the web content article's workflow status. For more 3025 information see {@link WorkflowConstants} for constants starting 3026 with the "STATUS_" prefix. 3027 * @param start the lower bound of the range of web content articles to 3028 return 3029 * @param end the upper bound of the range of web content articles to 3030 return (not inclusive) 3031 * @return the matching web content articles 3032 * @throws PortalException if a portal exception occurred 3033 */ 3034 @Override 3035 public com.liferay.portal.kernel.search.Hits search(long groupId, 3036 long userId, long creatorUserId, int status, int start, int end) 3037 throws com.liferay.portal.kernel.exception.PortalException { 3038 return _journalArticleLocalService.search(groupId, userId, 3039 creatorUserId, status, start, end); 3040 } 3041 3042 /** 3043 * Returns the number of web content articles matching the parameters, 3044 * including keyword parameters for article ID, title, description, and 3045 * content, a DDM structure key parameter, a DDM template key parameter, and 3046 * an AND operator switch. 3047 * 3048 * @param companyId the primary key of the web content article's company 3049 * @param groupId the primary key of the group (optionally <code>0</code>) 3050 * @param folderIds the primary keys of the web content article folders 3051 (optionally {@link java.util.Collections#EMPTY_LIST}) 3052 * @param classNameId the primary key of the DDMStructure class if the web 3053 content article is related to a DDM structure, the primary key of 3054 the class name associated with the article, or {@link 3055 JournalArticleConstants#CLASSNAME_ID_DEFAULT} otherwise 3056 * @param articleId the article ID keywords (space separated, optionally 3057 <code>null</code>) 3058 * @param version the web content article's version (optionally 3059 <code>null</code>) 3060 * @param title the title keywords (space separated, optionally 3061 <code>null</code>) 3062 * @param description the description keywords (space separated, optionally 3063 <code>null</code>) 3064 * @param content the content keywords (space separated, optionally 3065 <code>null</code>) 3066 * @param ddmStructureKey the primary key of the web content article's DDM 3067 structure, if the article is related to a DDM structure, or 3068 <code>null</code> otherwise 3069 * @param ddmTemplateKey the primary key of the web content article's DDM 3070 template 3071 * @param displayDateGT the date after which a matching web content 3072 article's display date must be after (optionally 3073 <code>null</code>) 3074 * @param displayDateLT the date before which a matching web content 3075 article's display date must be before (optionally 3076 <code>null</code>) 3077 * @param status the web content article's workflow status. For more 3078 information see {@link WorkflowConstants} for constants starting 3079 with the "STATUS_" prefix. 3080 * @param reviewDate the web content article's scheduled review date 3081 (optionally <code>null</code>) 3082 * @param andOperator whether every field must match its value or keywords, 3083 or just one field must match. Group, folder IDs, class name ID, 3084 and status must all match their values. 3085 * @return the number of matching web content articles 3086 */ 3087 @Override 3088 public int searchCount(long companyId, long groupId, 3089 java.util.List<java.lang.Long> folderIds, long classNameId, 3090 java.lang.String articleId, java.lang.Double version, 3091 java.lang.String title, java.lang.String description, 3092 java.lang.String content, java.lang.String ddmStructureKey, 3093 java.lang.String ddmTemplateKey, java.util.Date displayDateGT, 3094 java.util.Date displayDateLT, int status, java.util.Date reviewDate, 3095 boolean andOperator) { 3096 return _journalArticleLocalService.searchCount(companyId, groupId, 3097 folderIds, classNameId, articleId, version, title, description, 3098 content, ddmStructureKey, ddmTemplateKey, displayDateGT, 3099 displayDateLT, status, reviewDate, andOperator); 3100 } 3101 3102 /** 3103 * Returns the number of web content articles matching the parameters, 3104 * including keyword parameters for article ID, title, description, and 3105 * content, a DDM structure keys (plural) parameter, a DDM template keys 3106 * (plural) parameter, and an AND operator switch. 3107 * 3108 * @param companyId the primary key of the web content article's company 3109 * @param groupId the primary key of the group (optionally <code>0</code>) 3110 * @param folderIds the primary keys of the web content article folders 3111 (optionally {@link java.util.Collections#EMPTY_LIST}) 3112 * @param classNameId the primary key of the DDMStructure class if the web 3113 content article is related to a DDM structure, the primary key of 3114 the class name associated with the article, or {@link 3115 JournalArticleConstants#CLASSNAME_ID_DEFAULT} otherwise 3116 * @param articleId the article ID keywords (space separated, optionally 3117 <code>null</code>) 3118 * @param version the web content article's version (optionally 3119 <code>null</code>) 3120 * @param title the title keywords (space separated, optionally 3121 <code>null</code>) 3122 * @param description the description keywords (space separated, optionally 3123 <code>null</code>) 3124 * @param content the content keywords (space separated, optionally 3125 <code>null</code>) 3126 * @param ddmStructureKeys the primary keys of the web content article's 3127 DDM structures, if the article is related to a DDM structure, or 3128 <code>null</code> otherwise 3129 * @param ddmTemplateKeys the primary keys of the web content article's DDM 3130 templates (originally <code>null</code>). If the articles are 3131 related to a DDM structure, the template's structure must match 3132 it. 3133 * @param displayDateGT the date after which a matching web content 3134 article's display date must be after (optionally 3135 <code>null</code>) 3136 * @param displayDateLT the date before which a matching web content 3137 article's display date must be before (optionally 3138 <code>null</code>) 3139 * @param status the web content article's workflow status. For more 3140 information see {@link WorkflowConstants} for constants starting 3141 with the "STATUS_" prefix. 3142 * @param reviewDate the web content article's scheduled review date 3143 (optionally <code>null</code>) 3144 * @param andOperator whether every field must match its value or keywords, 3145 or just one field must match. Group, folder IDs, class name ID, 3146 and status must all match their values. 3147 * @return the number of matching web content articles 3148 */ 3149 @Override 3150 public int searchCount(long companyId, long groupId, 3151 java.util.List<java.lang.Long> folderIds, long classNameId, 3152 java.lang.String articleId, java.lang.Double version, 3153 java.lang.String title, java.lang.String description, 3154 java.lang.String content, java.lang.String[] ddmStructureKeys, 3155 java.lang.String[] ddmTemplateKeys, java.util.Date displayDateGT, 3156 java.util.Date displayDateLT, int status, java.util.Date reviewDate, 3157 boolean andOperator) { 3158 return _journalArticleLocalService.searchCount(companyId, groupId, 3159 folderIds, classNameId, articleId, version, title, description, 3160 content, ddmStructureKeys, ddmTemplateKeys, displayDateGT, 3161 displayDateLT, status, reviewDate, andOperator); 3162 } 3163 3164 /** 3165 * Returns the number of web content articles matching the parameters, 3166 * including a keywords parameter for matching with the article's ID, title, 3167 * description, and content, a DDM structure key parameter, and a DDM 3168 * template key parameter. 3169 * 3170 * @param companyId the primary key of the web content article's company 3171 * @param groupId the primary key of the group (optionally <code>0</code>) 3172 * @param folderIds the primary keys of the web content article folders 3173 (optionally {@link java.util.Collections#EMPTY_LIST}) 3174 * @param classNameId the primary key of the DDMStructure class if the web 3175 content article is related to a DDM structure, the primary key of 3176 the class name associated with the article, or {@link 3177 JournalArticleConstants#CLASSNAME_ID_DEFAULT} otherwise 3178 * @param keywords the keywords (space separated), which may occur in the 3179 web content article ID, title, description, or content 3180 (optionally <code>null</code>). If the keywords value is not 3181 <code>null</code>, the search uses the OR operator in connecting 3182 query criteria; otherwise it uses the AND operator. 3183 * @param version the web content article's version (optionally 3184 <code>null</code>) 3185 * @param ddmStructureKey the primary key of the web content article's DDM 3186 structure, if the article is related to a DDM structure, or 3187 <code>null</code> otherwise 3188 * @param ddmTemplateKey the primary key of the web content article's DDM 3189 template 3190 * @param displayDateGT the date after which a matching web content 3191 article's display date must be after (optionally 3192 <code>null</code>) 3193 * @param displayDateLT the date before which a matching web content 3194 article's display date must be before (optionally 3195 <code>null</code>) 3196 * @param status the web content article's workflow status. For more 3197 information see {@link WorkflowConstants} for constants starting 3198 with the "STATUS_" prefix. 3199 * @param reviewDate the web content article's scheduled review date 3200 (optionally <code>null</code>) 3201 * @return the number of matching web content articles 3202 */ 3203 @Override 3204 public int searchCount(long companyId, long groupId, 3205 java.util.List<java.lang.Long> folderIds, long classNameId, 3206 java.lang.String keywords, java.lang.Double version, 3207 java.lang.String ddmStructureKey, java.lang.String ddmTemplateKey, 3208 java.util.Date displayDateGT, java.util.Date displayDateLT, int status, 3209 java.util.Date reviewDate) { 3210 return _journalArticleLocalService.searchCount(companyId, groupId, 3211 folderIds, classNameId, keywords, version, ddmStructureKey, 3212 ddmTemplateKey, displayDateGT, displayDateLT, status, reviewDate); 3213 } 3214 3215 /** 3216 * Returns the number of web content articles matching the group, folder, 3217 * and status. 3218 * 3219 * @param groupId the primary key of the group (optionally <code>0</code>) 3220 * @param folderId the primary key of the web content article folder 3221 * @param status the web content article's workflow status. For more 3222 information see {@link WorkflowConstants} for constants starting 3223 with the "STATUS_" prefix. 3224 * @return the number of matching web content articles 3225 */ 3226 @Override 3227 public int searchCount(long groupId, long folderId, int status) { 3228 return _journalArticleLocalService.searchCount(groupId, folderId, status); 3229 } 3230 3231 /** 3232 * Returns the number of web content articles matching the group, folders, 3233 * and status. 3234 * 3235 * @param groupId the primary key of the group (optionally <code>0</code>) 3236 * @param folderIds the primary keys of the web content article folders 3237 (optionally {@link java.util.Collections#EMPTY_LIST}) 3238 * @param status the web content article's workflow status. For more 3239 information see {@link WorkflowConstants} for constants starting 3240 with the "STATUS_" prefix. 3241 * @return the number of matching web content articles 3242 */ 3243 @Override 3244 public int searchCount(long groupId, 3245 java.util.List<java.lang.Long> folderIds, int status) { 3246 return _journalArticleLocalService.searchCount(groupId, folderIds, 3247 status); 3248 } 3249 3250 /** 3251 * Returns a {@link BaseModelSearchResult} containing the total number of 3252 * hits and an ordered range of all the web content articles matching the 3253 * parameters using the indexer, including keyword parameters for article 3254 * ID, title, description, or content, a DDM structure key parameter, a DDM 3255 * template key parameter, an AND operator switch, and parameters for type, 3256 * status, and a finder hash map. It is preferable to use this method 3257 * instead of the non-indexed version whenever possible for performance 3258 * reasons. 3259 * 3260 * <p> 3261 * The <code>start</code> and <code>end</code> parameters only affect the 3262 * amount of web content articles returned as results, not the total number 3263 * of hits. 3264 * </p> 3265 * 3266 * <p> 3267 * Useful when paginating results. Returns a maximum of <code>end - 3268 * start</code> instances. <code>start</code> and <code>end</code> are not 3269 * primary keys, they are indexes in the result set. Thus, <code>0</code> 3270 * refers to the first result in the set. Setting both <code>start</code> 3271 * and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full 3272 * result set. 3273 * </p> 3274 * 3275 * @param companyId the primary key of the web content article's company 3276 * @param groupId the primary key of the group (optionally <code>0</code>) 3277 * @param folderIds the primary keys of the web content article folders 3278 (optionally {@link java.util.Collections#EMPTY_LIST}) 3279 * @param classNameId the primary key of the DDMStructure class, the 3280 primary key of the class name associated with the article, or 3281 {@link JournalArticleConstants#CLASSNAME_ID_DEFAULT} otherwise 3282 * @param articleId the article ID keywords (space separated, optionally 3283 <code>null</code>) 3284 * @param title the title keywords (space separated, optionally 3285 <code>null</code>) 3286 * @param description the description keywords (space separated, optionally 3287 <code>null</code>) 3288 * @param content the content keywords (space separated, optionally 3289 <code>null</code>) 3290 * @param status the web content article's workflow status. For more 3291 information see {@link WorkflowConstants} for constants starting 3292 with the "STATUS_" prefix. 3293 * @param ddmStructureKey the primary key of the web content article's DDM 3294 structure 3295 * @param ddmTemplateKey the primary key of the web content article's DDM 3296 template 3297 * @param params the finder parameters (optionally <code>null</code>). The 3298 <code>includeDiscussions</code> parameter can be set to 3299 <code>true</code> to search for the keywords in the web content 3300 article discussions. 3301 * @param andSearch whether every field must match its value or keywords, 3302 or just one field must match 3303 * @param start the lower bound of the range of web content articles to 3304 return 3305 * @param end the upper bound of the range of web content articles to 3306 return (not inclusive) 3307 * @param sort the field, type, and direction by which to sort (optionally 3308 <code>null</code>) 3309 * @return a {@link BaseModelSearchResult} containing the total number of 3310 hits and an ordered range of all the matching web content 3311 articles ordered by <code>sort</code> 3312 * @throws PortalException if a portal exception occurred 3313 */ 3314 @Override 3315 public com.liferay.portal.kernel.search.BaseModelSearchResult<com.liferay.portlet.journal.model.JournalArticle> searchJournalArticles( 3316 long companyId, long groupId, java.util.List<java.lang.Long> folderIds, 3317 long classNameId, java.lang.String articleId, java.lang.String title, 3318 java.lang.String description, java.lang.String content, int status, 3319 java.lang.String ddmStructureKey, java.lang.String ddmTemplateKey, 3320 java.util.LinkedHashMap<java.lang.String, java.lang.Object> params, 3321 boolean andSearch, int start, int end, 3322 com.liferay.portal.kernel.search.Sort sort) 3323 throws com.liferay.portal.kernel.exception.PortalException { 3324 return _journalArticleLocalService.searchJournalArticles(companyId, 3325 groupId, folderIds, classNameId, articleId, title, description, 3326 content, status, ddmStructureKey, ddmTemplateKey, params, 3327 andSearch, start, end, sort); 3328 } 3329 3330 /** 3331 * Returns a {@link BaseModelSearchResult} containing the total number of 3332 * hits and an ordered range of all the web content articles matching the 3333 * parameters using the indexer, including a keywords parameter for matching 3334 * an article's ID, title, description, or content, a DDM structure key 3335 * parameter, a DDM template key parameter, and a finder hash map parameter. 3336 * It is preferable to use this method instead of the non-indexed version 3337 * whenever possible for performance reasons. 3338 * 3339 * <p> 3340 * The <code>start</code> and <code>end</code> parameters only affect the 3341 * amount of web content articles returned as results, not the total number 3342 * of hits. 3343 * </p> 3344 * 3345 * <p> 3346 * Useful when paginating results. Returns a maximum of <code>end - 3347 * start</code> instances. <code>start</code> and <code>end</code> are not 3348 * primary keys, they are indexes in the result set. Thus, <code>0</code> 3349 * refers to the first result in the set. Setting both <code>start</code> 3350 * and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full 3351 * result set. 3352 * </p> 3353 * 3354 * @param companyId the primary key of the web content article's company 3355 * @param groupId the primary key of the group (optionally <code>0</code>) 3356 * @param folderIds the primary keys of the web content article folders 3357 (optionally {@link java.util.Collections#EMPTY_LIST}) 3358 * @param classNameId the primary key of the DDMStructure class, the 3359 primary key of the class name associated with the article, or 3360 {@link JournalArticleConstants#CLASSNAME_ID_DEFAULT} otherwise 3361 * @param ddmStructureKey the primary key of the web content article's DDM 3362 structure 3363 * @param ddmTemplateKey the primary key of the web content article's DDM 3364 template 3365 * @param keywords the keywords (space separated), which may occur in the 3366 web content article ID, title, description, or content 3367 (optionally <code>null</code>). If the keywords value is not 3368 <code>null</code>, the search uses the OR operator in connecting 3369 query criteria; otherwise it uses the AND operator. 3370 * @param params the finder parameters (optionally <code>null</code>) 3371 * @param start the lower bound of the range of web content articles to 3372 return 3373 * @param end the upper bound of the range of web content articles to 3374 return (not inclusive) 3375 * @param sort the field, type, and direction by which to sort (optionally 3376 <code>null</code>) 3377 * @return a {@link BaseModelSearchResult} containing the total number of 3378 hits and an ordered range of all the matching web content 3379 articles ordered by <code>sort</code> 3380 * @throws PortalException if a portal exception occurred 3381 */ 3382 @Override 3383 public com.liferay.portal.kernel.search.BaseModelSearchResult<com.liferay.portlet.journal.model.JournalArticle> searchJournalArticles( 3384 long companyId, long groupId, java.util.List<java.lang.Long> folderIds, 3385 long classNameId, java.lang.String ddmStructureKey, 3386 java.lang.String ddmTemplateKey, java.lang.String keywords, 3387 java.util.LinkedHashMap<java.lang.String, java.lang.Object> params, 3388 int start, int end, com.liferay.portal.kernel.search.Sort sort) 3389 throws com.liferay.portal.kernel.exception.PortalException { 3390 return _journalArticleLocalService.searchJournalArticles(companyId, 3391 groupId, folderIds, classNameId, ddmStructureKey, ddmTemplateKey, 3392 keywords, params, start, end, sort); 3393 } 3394 3395 /** 3396 * Returns a {@link BaseModelSearchResult} containing the total number of 3397 * hits and an ordered range of all the web content articles matching the 3398 * parameters using the indexer, including the web content article's creator 3399 * ID and status. It is preferable to use this method instead of the 3400 * non-indexed version whenever possible for performance reasons. 3401 * 3402 * <p> 3403 * The <code>start</code> and <code>end</code> parameters only affect the 3404 * amount of web content articles returned as results, not the total number 3405 * of hits. 3406 * </p> 3407 * 3408 * <p> 3409 * Useful when paginating results. Returns a maximum of <code>end - 3410 * start</code> instances. <code>start</code> and <code>end</code> are not 3411 * primary keys, they are indexes in the result set. Thus, <code>0</code> 3412 * refers to the first result in the set. Setting both <code>start</code> 3413 * and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full 3414 * result set. 3415 * </p> 3416 * 3417 * @param groupId the primary key of the group (optionally <code>0</code>) 3418 * @param userId the primary key of the user searching for web content 3419 articles 3420 * @param creatorUserId the primary key of the web content article's 3421 creator 3422 * @param status the web content article's workflow status. For more 3423 information see {@link WorkflowConstants} for constants starting 3424 with the "STATUS_" prefix. 3425 * @param start the lower bound of the range of web content articles to 3426 return 3427 * @param end the upper bound of the range of web content articles to 3428 return (not inclusive) 3429 * @return a {@link BaseModelSearchResult} containing the total number of 3430 hits and an ordered range of all the matching web content 3431 articles ordered by <code>sort</code> 3432 * @throws PortalException if a portal exception occurred 3433 */ 3434 @Override 3435 public com.liferay.portal.kernel.search.BaseModelSearchResult<com.liferay.portlet.journal.model.JournalArticle> searchJournalArticles( 3436 long groupId, long userId, long creatorUserId, int status, int start, 3437 int end) throws com.liferay.portal.kernel.exception.PortalException { 3438 return _journalArticleLocalService.searchJournalArticles(groupId, 3439 userId, creatorUserId, status, start, end); 3440 } 3441 3442 /** 3443 * Sets the Spring bean ID for this bean. 3444 * 3445 * @param beanIdentifier the Spring bean ID for this bean 3446 */ 3447 @Override 3448 public void setBeanIdentifier(java.lang.String beanIdentifier) { 3449 _journalArticleLocalService.setBeanIdentifier(beanIdentifier); 3450 } 3451 3452 @Override 3453 public void setTreePaths(long folderId, java.lang.String treePath, 3454 boolean reindex) 3455 throws com.liferay.portal.kernel.exception.PortalException { 3456 _journalArticleLocalService.setTreePaths(folderId, treePath, reindex); 3457 } 3458 3459 /** 3460 * Subscribes the user to changes in elements that belong to the web content 3461 * article's DDM structure. 3462 * 3463 * @param groupId the primary key of the folder's group 3464 * @param userId the primary key of the user to be subscribed 3465 * @param ddmStructureId the primary key of the structure to subscribe to 3466 * @throws PortalException if a matching user or group could not be found 3467 */ 3468 @Override 3469 public void subscribeStructure(long groupId, long userId, 3470 long ddmStructureId) 3471 throws com.liferay.portal.kernel.exception.PortalException { 3472 _journalArticleLocalService.subscribeStructure(groupId, userId, 3473 ddmStructureId); 3474 } 3475 3476 /** 3477 * Unsubscribes the user from changes in elements that belong to the web 3478 * content article's DDM structure. 3479 * 3480 * @param groupId the primary key of the folder's group 3481 * @param userId the primary key of the user to be subscribed 3482 * @param ddmStructureId the primary key of the structure to subscribe to 3483 * @throws PortalException if a matching user or subscription could not be 3484 found 3485 */ 3486 @Override 3487 public void unsubscribeStructure(long groupId, long userId, 3488 long ddmStructureId) 3489 throws com.liferay.portal.kernel.exception.PortalException { 3490 _journalArticleLocalService.unsubscribeStructure(groupId, userId, 3491 ddmStructureId); 3492 } 3493 3494 /** 3495 * Updates the web content article matching the version, replacing its 3496 * folder and content. 3497 * 3498 * @param userId the primary key of the user updating the web content 3499 article 3500 * @param groupId the primary key of the web content article's group 3501 * @param folderId the primary key of the web content article folder 3502 * @param articleId the primary key of the web content article 3503 * @param version the web content article's version 3504 * @param content the HTML content wrapped in XML. For more information, 3505 see the content example in the class description for {@link 3506 JournalArticleLocalServiceImpl}. 3507 * @param serviceContext the service context to be applied. Can set the 3508 modification date, expando bridge attributes, asset category IDs, 3509 asset tag names, asset link entry IDs, workflow actions, the and 3510 "urlTitle" attributes, and can set whether to add the default 3511 command update for the web content article. With respect to 3512 social activities, by setting the service context's command to 3513 {@link com.liferay.portal.kernel.util.Constants#UPDATE}, the 3514 invocation is considered a web content update activity; otherwise 3515 it is considered a web content add activity. 3516 * @return the updated web content article 3517 * @throws PortalException if a user with the primary key or a matching web 3518 content article could not be found, or if a portal exception 3519 occurred 3520 */ 3521 @Override 3522 public com.liferay.portlet.journal.model.JournalArticle updateArticle( 3523 long userId, long groupId, long folderId, java.lang.String articleId, 3524 double version, java.lang.String content, 3525 com.liferay.portal.service.ServiceContext serviceContext) 3526 throws com.liferay.portal.kernel.exception.PortalException { 3527 return _journalArticleLocalService.updateArticle(userId, groupId, 3528 folderId, articleId, version, content, serviceContext); 3529 } 3530 3531 /** 3532 * Updates the web content article with additional parameters. 3533 * 3534 * @param userId the primary key of the user updating the web content 3535 article 3536 * @param groupId the primary key of the web content article's group 3537 * @param folderId the primary key of the web content article folder 3538 * @param articleId the primary key of the web content article 3539 * @param version the web content article's version 3540 * @param titleMap the web content article's locales and localized titles 3541 * @param descriptionMap the web content article's locales and localized 3542 descriptions 3543 * @param content the HTML content wrapped in XML. For more information, 3544 see the content example in the class description for {@link 3545 JournalArticleLocalServiceImpl}. 3546 * @param ddmStructureKey the primary key of the web content article's DDM 3547 structure, if the article is related to a DDM structure, or 3548 <code>null</code> otherwise 3549 * @param ddmTemplateKey the primary key of the web content article's DDM 3550 template 3551 * @param layoutUuid the unique string identifying the web content 3552 article's display page 3553 * @param displayDateMonth the month the web content article is set to 3554 display 3555 * @param displayDateDay the calendar day the web content article is set to 3556 display 3557 * @param displayDateYear the year the web content article is set to 3558 display 3559 * @param displayDateHour the hour the web content article is set to 3560 display 3561 * @param displayDateMinute the minute the web content article is set to 3562 display 3563 * @param expirationDateMonth the month the web content article is set to 3564 expire 3565 * @param expirationDateDay the calendar day the web content article is set 3566 to expire 3567 * @param expirationDateYear the year the web content article is set to 3568 expire 3569 * @param expirationDateHour the hour the web content article is set to 3570 expire 3571 * @param expirationDateMinute the minute the web content article is set to 3572 expire 3573 * @param neverExpire whether the web content article is not set to auto 3574 expire 3575 * @param reviewDateMonth the month the web content article is set for 3576 review 3577 * @param reviewDateDay the calendar day the web content article is set for 3578 review 3579 * @param reviewDateYear the year the web content article is set for review 3580 * @param reviewDateHour the hour the web content article is set for review 3581 * @param reviewDateMinute the minute the web content article is set for 3582 review 3583 * @param neverReview whether the web content article is not set for review 3584 * @param indexable whether the web content is searchable 3585 * @param smallImage whether to update web content article's a small image. 3586 A file must be passed in as <code>smallImageFile</code> value, 3587 otherwise the current small image is deleted. 3588 * @param smallImageURL the web content article's small image URL 3589 (optionally <code>null</code>) 3590 * @param smallImageFile the web content article's new small image file 3591 (optionally <code>null</code>). Must pass in 3592 <code>smallImage</code> value of <code>true</code> to replace the 3593 article's small image file. 3594 * @param images the web content's images (optionally <code>null</code>) 3595 * @param articleURL the web content article's accessible URL (optionally 3596 <code>null</code>) 3597 * @param serviceContext the service context to be applied. Can set the 3598 modification date, expando bridge attributes, asset category IDs, 3599 asset tag names, asset link entry IDs, workflow actions, the and 3600 "urlTitle" attributes, and can set whether to add the default 3601 command update for the web content article. With respect to 3602 social activities, by setting the service context's command to 3603 {@link com.liferay.portal.kernel.util.Constants#UPDATE}, the 3604 invocation is considered a web content update activity; otherwise 3605 it is considered a web content add activity. 3606 * @return the updated web content article 3607 * @throws PortalException if a user with the primary key or a matching web 3608 content article could not be found, or if a portal exception 3609 occurred 3610 */ 3611 @Override 3612 public com.liferay.portlet.journal.model.JournalArticle updateArticle( 3613 long userId, long groupId, long folderId, java.lang.String articleId, 3614 double version, 3615 java.util.Map<java.util.Locale, java.lang.String> titleMap, 3616 java.util.Map<java.util.Locale, java.lang.String> descriptionMap, 3617 java.lang.String content, java.lang.String ddmStructureKey, 3618 java.lang.String ddmTemplateKey, java.lang.String layoutUuid, 3619 int displayDateMonth, int displayDateDay, int displayDateYear, 3620 int displayDateHour, int displayDateMinute, int expirationDateMonth, 3621 int expirationDateDay, int expirationDateYear, int expirationDateHour, 3622 int expirationDateMinute, boolean neverExpire, int reviewDateMonth, 3623 int reviewDateDay, int reviewDateYear, int reviewDateHour, 3624 int reviewDateMinute, boolean neverReview, boolean indexable, 3625 boolean smallImage, java.lang.String smallImageURL, 3626 java.io.File smallImageFile, 3627 java.util.Map<java.lang.String, byte[]> images, 3628 java.lang.String articleURL, 3629 com.liferay.portal.service.ServiceContext serviceContext) 3630 throws com.liferay.portal.kernel.exception.PortalException { 3631 return _journalArticleLocalService.updateArticle(userId, groupId, 3632 folderId, articleId, version, titleMap, descriptionMap, content, 3633 ddmStructureKey, ddmTemplateKey, layoutUuid, displayDateMonth, 3634 displayDateDay, displayDateYear, displayDateHour, 3635 displayDateMinute, expirationDateMonth, expirationDateDay, 3636 expirationDateYear, expirationDateHour, expirationDateMinute, 3637 neverExpire, reviewDateMonth, reviewDateDay, reviewDateYear, 3638 reviewDateHour, reviewDateMinute, neverReview, indexable, 3639 smallImage, smallImageURL, smallImageFile, images, articleURL, 3640 serviceContext); 3641 } 3642 3643 /** 3644 * Updates the web content article matching the version, replacing its 3645 * folder, title, description, content, and layout UUID. 3646 * 3647 * @param userId the primary key of the user updating the web content 3648 article 3649 * @param groupId the primary key of the web content article's group 3650 * @param folderId the primary key of the web content article folder 3651 * @param articleId the primary key of the web content article 3652 * @param version the web content article's version 3653 * @param titleMap the web content article's locales and localized titles 3654 * @param descriptionMap the web content article's locales and localized 3655 descriptions 3656 * @param content the HTML content wrapped in XML. For more information, 3657 see the content example in the class description for {@link 3658 JournalArticleLocalServiceImpl}. 3659 * @param layoutUuid the unique string identifying the web content 3660 article's display page 3661 * @param serviceContext the service context to be applied. Can set the 3662 modification date, expando bridge attributes, asset category IDs, 3663 asset tag names, asset link entry IDs, workflow actions, the and 3664 "urlTitle" attributes, and can set whether to add the default 3665 command update for the web content article. With respect to 3666 social activities, by setting the service context's command to 3667 {@link com.liferay.portal.kernel.util.Constants#UPDATE}, the 3668 invocation is considered a web content update activity; otherwise 3669 it is considered a web content add activity. 3670 * @return the updated web content article 3671 * @throws PortalException if a user with the primary key or a matching web 3672 content article could not be found, or if a portal exception 3673 occurred 3674 */ 3675 @Override 3676 public com.liferay.portlet.journal.model.JournalArticle updateArticle( 3677 long userId, long groupId, long folderId, java.lang.String articleId, 3678 double version, 3679 java.util.Map<java.util.Locale, java.lang.String> titleMap, 3680 java.util.Map<java.util.Locale, java.lang.String> descriptionMap, 3681 java.lang.String content, java.lang.String layoutUuid, 3682 com.liferay.portal.service.ServiceContext serviceContext) 3683 throws com.liferay.portal.kernel.exception.PortalException { 3684 return _journalArticleLocalService.updateArticle(userId, groupId, 3685 folderId, articleId, version, titleMap, descriptionMap, content, 3686 layoutUuid, serviceContext); 3687 } 3688 3689 /** 3690 * @deprecated As of 6.2.0, replaced by {@link 3691 #updateArticleTranslation(long, String, double, Locale, 3692 String, String, String, Map, ServiceContext)} 3693 */ 3694 @Deprecated 3695 @Override 3696 public com.liferay.portlet.journal.model.JournalArticle updateArticleTranslation( 3697 long groupId, java.lang.String articleId, double version, 3698 java.util.Locale locale, java.lang.String title, 3699 java.lang.String description, java.lang.String content, 3700 java.util.Map<java.lang.String, byte[]> images) 3701 throws com.liferay.portal.kernel.exception.PortalException { 3702 return _journalArticleLocalService.updateArticleTranslation(groupId, 3703 articleId, version, locale, title, description, content, images); 3704 } 3705 3706 /** 3707 * Updates the translation of the web content article. 3708 * 3709 * @param groupId the primary key of the web content article's group 3710 * @param articleId the primary key of the web content article 3711 * @param version the web content article's version 3712 * @param locale the locale of the web content article's display template 3713 * @param title the translated web content article title 3714 * @param description the translated web content article description 3715 * @param content the HTML content wrapped in XML. For more information, 3716 see the content example in the class description for {@link 3717 JournalArticleLocalServiceImpl}. 3718 * @param images the web content's images 3719 * @param serviceContext the service context to be applied. Can set the 3720 modification date and "urlTitle" attribute for the web content 3721 article. 3722 * @return the updated web content article 3723 * @throws PortalException if a user with the primary key or a matching web 3724 content article could not be found, or if a portal exception 3725 occurred 3726 */ 3727 @Override 3728 public com.liferay.portlet.journal.model.JournalArticle updateArticleTranslation( 3729 long groupId, java.lang.String articleId, double version, 3730 java.util.Locale locale, java.lang.String title, 3731 java.lang.String description, java.lang.String content, 3732 java.util.Map<java.lang.String, byte[]> images, 3733 com.liferay.portal.service.ServiceContext serviceContext) 3734 throws com.liferay.portal.kernel.exception.PortalException { 3735 return _journalArticleLocalService.updateArticleTranslation(groupId, 3736 articleId, version, locale, title, description, content, images, 3737 serviceContext); 3738 } 3739 3740 /** 3741 * Updates the web content article's asset with the new asset categories, 3742 * tag names, and link entries, removing and adding them as necessary. 3743 * 3744 * @param userId the primary key of the user updating the web content 3745 article's asset 3746 * @param article the web content article 3747 * @param assetCategoryIds the primary keys of the new asset categories 3748 * @param assetTagNames the new asset tag names 3749 * @param assetLinkEntryIds the primary keys of the new asset link entries 3750 * @throws PortalException if a portal exception occurred 3751 */ 3752 @Override 3753 public void updateAsset(long userId, 3754 com.liferay.portlet.journal.model.JournalArticle article, 3755 long[] assetCategoryIds, java.lang.String[] assetTagNames, 3756 long[] assetLinkEntryIds) 3757 throws com.liferay.portal.kernel.exception.PortalException { 3758 _journalArticleLocalService.updateAsset(userId, article, 3759 assetCategoryIds, assetTagNames, assetLinkEntryIds); 3760 } 3761 3762 /** 3763 * Updates the web content article matching the group, article ID, and 3764 * version, replacing its content. 3765 * 3766 * @param groupId the primary key of the web content article's group 3767 * @param articleId the primary key of the web content article 3768 * @param version the web content article's version 3769 * @param content the HTML content wrapped in XML. For more information, 3770 see the content example in the class description for {@link 3771 JournalArticleLocalServiceImpl}. 3772 * @return the updated web content article 3773 * @throws PortalException if a matching web content article could not be 3774 found 3775 */ 3776 @Override 3777 public com.liferay.portlet.journal.model.JournalArticle updateContent( 3778 long groupId, java.lang.String articleId, double version, 3779 java.lang.String content) 3780 throws com.liferay.portal.kernel.exception.PortalException { 3781 return _journalArticleLocalService.updateContent(groupId, articleId, 3782 version, content); 3783 } 3784 3785 /** 3786 * Updates the web content articles matching the group, class name ID, and 3787 * DDM template key, replacing the DDM template key with a new one. 3788 * 3789 * @param groupId the primary key of the web content article's group 3790 * @param classNameId the primary key of the DDMStructure class if the web 3791 content article is related to a DDM structure, the primary key of 3792 the class name associated with the article, or {@link 3793 JournalArticleConstants#CLASSNAME_ID_DEFAULT} otherwise 3794 * @param oldDDMTemplateKey the primary key of the web content article's old 3795 DDM template 3796 * @param newDDMTemplateKey the primary key of the web content article's new 3797 DDM template 3798 */ 3799 @Override 3800 public void updateDDMTemplateKey(long groupId, long classNameId, 3801 java.lang.String oldDDMTemplateKey, java.lang.String newDDMTemplateKey) { 3802 _journalArticleLocalService.updateDDMTemplateKey(groupId, classNameId, 3803 oldDDMTemplateKey, newDDMTemplateKey); 3804 } 3805 3806 /** 3807 * Updates the journal article in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners. 3808 * 3809 * @param journalArticle the journal article 3810 * @return the journal article that was updated 3811 */ 3812 @Override 3813 public com.liferay.portlet.journal.model.JournalArticle updateJournalArticle( 3814 com.liferay.portlet.journal.model.JournalArticle journalArticle) { 3815 return _journalArticleLocalService.updateJournalArticle(journalArticle); 3816 } 3817 3818 /** 3819 * Updates the workflow status of the web content article. 3820 * 3821 * @param userId the primary key of the user updating the web content 3822 article's status 3823 * @param article the web content article 3824 * @param status the web content article's workflow status. For more 3825 information see {@link WorkflowConstants} for constants starting 3826 with the "STATUS_" prefix. 3827 * @param articleURL the web content article's accessible URL 3828 * @param serviceContext the service context to be applied. Can set the 3829 modification date, status date, and portlet preferences. With 3830 respect to social activities, by setting the service context's 3831 command to {@link 3832 com.liferay.portal.kernel.util.Constants#UPDATE}, the invocation 3833 is considered a web content update activity; otherwise it is 3834 considered a web content add activity. 3835 * @param workflowContext the web content article's configured workflow 3836 context 3837 * @return the updated web content article 3838 * @throws PortalException if a portal exception occurred 3839 */ 3840 @Override 3841 public com.liferay.portlet.journal.model.JournalArticle updateStatus( 3842 long userId, com.liferay.portlet.journal.model.JournalArticle article, 3843 int status, java.lang.String articleURL, 3844 com.liferay.portal.service.ServiceContext serviceContext, 3845 java.util.Map<java.lang.String, java.io.Serializable> workflowContext) 3846 throws com.liferay.portal.kernel.exception.PortalException { 3847 return _journalArticleLocalService.updateStatus(userId, article, 3848 status, articleURL, serviceContext, workflowContext); 3849 } 3850 3851 /** 3852 * Updates the workflow status of the web content article matching the class 3853 * PK. 3854 * 3855 * @param userId the primary key of the user updating the web content 3856 article's status 3857 * @param classPK the primary key of the DDM structure, if the web content 3858 article is related to a DDM structure, the primary key of the 3859 class associated with the article, or <code>0</code> otherwise 3860 * @param status the web content article's workflow status. For more 3861 information see {@link WorkflowConstants} for constants starting 3862 with the "STATUS_" prefix. 3863 * @param workflowContext the web content article's configured workflow 3864 * @param serviceContext the service context to be applied. Can set the 3865 modification date, portlet preferences, and can set whether to 3866 add the default command update for the web content article. 3867 * @return the updated web content article 3868 * @throws PortalException if a matching web content article could not be 3869 found or if a portal exception occurred 3870 */ 3871 @Override 3872 public com.liferay.portlet.journal.model.JournalArticle updateStatus( 3873 long userId, long classPK, int status, 3874 java.util.Map<java.lang.String, java.io.Serializable> workflowContext, 3875 com.liferay.portal.service.ServiceContext serviceContext) 3876 throws com.liferay.portal.kernel.exception.PortalException { 3877 return _journalArticleLocalService.updateStatus(userId, classPK, 3878 status, workflowContext, serviceContext); 3879 } 3880 3881 /** 3882 * Updates the workflow status of the web content article matching the 3883 * group, article ID, and version. 3884 * 3885 * @param userId the primary key of the user updating the web content 3886 article's status 3887 * @param groupId the primary key of the web content article's group 3888 * @param articleId the primary key of the web content article 3889 * @param version the web content article's version 3890 * @param status the web content article's workflow status. For more 3891 information see {@link WorkflowConstants} for constants starting 3892 with the "STATUS_" prefix. 3893 * @param articleURL the web content article's accessible URL 3894 * @param workflowContext the web content article's configured workflow 3895 * @param serviceContext the service context to be applied. Can set the 3896 modification date, portlet preferences, and can set whether to 3897 add the default command update for the web content article. 3898 * @return the updated web content article 3899 * @throws PortalException if a matching web content article could not be 3900 found or if a portal exception occurred 3901 */ 3902 @Override 3903 public com.liferay.portlet.journal.model.JournalArticle updateStatus( 3904 long userId, long groupId, java.lang.String articleId, double version, 3905 int status, java.lang.String articleURL, 3906 java.util.Map<java.lang.String, java.io.Serializable> workflowContext, 3907 com.liferay.portal.service.ServiceContext serviceContext) 3908 throws com.liferay.portal.kernel.exception.PortalException { 3909 return _journalArticleLocalService.updateStatus(userId, groupId, 3910 articleId, version, status, articleURL, workflowContext, 3911 serviceContext); 3912 } 3913 3914 /** 3915 * Updates the web content articles matching the group, class name ID, and 3916 * DDM template key, replacing the DDM template key with a new one. 3917 * 3918 * @param groupId the primary key of the web content article's group 3919 * @param classNameId the primary key of the DDMStructure class if the 3920 web content article is related to a DDM structure, the 3921 primary key of the class name associated with the article, or 3922 {@link JournalArticleConstants#CLASSNAME_ID_DEFAULT} 3923 otherwise 3924 * @param oldDDMTemplateKey the primary key of the web content 3925 article's old DDM template 3926 * @param newDDMTemplateKey the primary key of the web content 3927 article's new DDM template 3928 * @deprecated As of 7.0.0, replaced by {@link #updateDDMTemplateKey} 3929 */ 3930 @Deprecated 3931 @Override 3932 public void updateTemplateId(long groupId, long classNameId, 3933 java.lang.String oldDDMTemplateKey, java.lang.String newDDMTemplateKey) { 3934 _journalArticleLocalService.updateTemplateId(groupId, classNameId, 3935 oldDDMTemplateKey, newDDMTemplateKey); 3936 } 3937 3938 /** 3939 * @deprecated As of 6.1.0, replaced by {@link #getWrappedService} 3940 */ 3941 @Deprecated 3942 public JournalArticleLocalService getWrappedJournalArticleLocalService() { 3943 return _journalArticleLocalService; 3944 } 3945 3946 /** 3947 * @deprecated As of 6.1.0, replaced by {@link #setWrappedService} 3948 */ 3949 @Deprecated 3950 public void setWrappedJournalArticleLocalService( 3951 JournalArticleLocalService journalArticleLocalService) { 3952 _journalArticleLocalService = journalArticleLocalService; 3953 } 3954 3955 @Override 3956 public JournalArticleLocalService getWrappedService() { 3957 return _journalArticleLocalService; 3958 } 3959 3960 @Override 3961 public void setWrappedService( 3962 JournalArticleLocalService journalArticleLocalService) { 3963 _journalArticleLocalService = journalArticleLocalService; 3964 } 3965 3966 private JournalArticleLocalService _journalArticleLocalService; 3967 }