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 JournalArticleService}. 023 * 024 * @author Brian Wing Shun Chan 025 * @see JournalArticleService 026 * @generated 027 */ 028 @ProviderType 029 public class JournalArticleServiceWrapper implements JournalArticleService, 030 ServiceWrapper<JournalArticleService> { 031 public JournalArticleServiceWrapper( 032 JournalArticleService journalArticleService) { 033 _journalArticleService = journalArticleService; 034 } 035 036 /** 037 * Adds a web content article without any images. 038 * 039 * @param groupId the primary key of the web content article's group 040 * @param folderId the primary key of the web content article folder 041 * @param classNameId the primary key of the DDMStructure class if the web 042 content article is related to a DDM structure, the primary key of 043 the class name associated with the article, or {@link 044 JournalArticleConstants#CLASSNAME_ID_DEFAULT} otherwise 045 * @param classPK the primary key of the DDM structure, if the primary key 046 of the DDMStructure class is given as the 047 <code>classNameId</code> parameter, the primary key of the class 048 associated with the web content article, or <code>0</code> 049 otherwise 050 * @param articleId the primary key of the web content article 051 * @param autoArticleId whether to auto generate the web content article ID 052 * @param titleMap the web content article's locales and localized titles 053 * @param descriptionMap the web content article's locales and localized 054 descriptions 055 * @param content the HTML content wrapped in XML. For more information, 056 see the content example in the class description for {@link 057 JournalArticleLocalServiceImpl}. 058 * @param ddmStructureKey the primary key of the web content article's DDM 059 structure, if the article is related to a DDM structure, or 060 <code>null</code> otherwise 061 * @param ddmTemplateKey the primary key of the web content article's DDM 062 template 063 * @param layoutUuid the unique string identifying the web content 064 article's display page 065 * @param displayDateMonth the month the web content article is set to 066 display 067 * @param displayDateDay the calendar day the web content article is set to 068 display 069 * @param displayDateYear the year the web content article is set to 070 display 071 * @param displayDateHour the hour the web content article is set to 072 display 073 * @param displayDateMinute the minute the web content article is set to 074 display 075 * @param expirationDateMonth the month the web content article is set to 076 expire 077 * @param expirationDateDay the calendar day the web content article is set 078 to expire 079 * @param expirationDateYear the year the web content article is set to 080 expire 081 * @param expirationDateHour the hour the web content article is set to 082 expire 083 * @param expirationDateMinute the minute the web content article is set to 084 expire 085 * @param neverExpire whether the web content article is not set to auto 086 expire 087 * @param reviewDateMonth the month the web content article is set for 088 review 089 * @param reviewDateDay the calendar day the web content article is set for 090 review 091 * @param reviewDateYear the year the web content article is set for review 092 * @param reviewDateHour the hour the web content article is set for review 093 * @param reviewDateMinute the minute the web content article is set for 094 review 095 * @param neverReview whether the web content article is not set for review 096 * @param indexable whether the web content article is searchable 097 * @param articleURL the web content article's accessible URL 098 * @param serviceContext the service context to be applied. Can set the 099 UUID, creation date, modification date, expando bridge 100 attributes, guest permissions, group permissions, asset category 101 IDs, asset tag names, asset link entry IDs, the "urlTitle" 102 attribute, and workflow actions for the web content article. Can 103 also set whether to add the default guest and group permissions. 104 * @return the web content article 105 * @throws PortalException if the user did not have permission to add the 106 web content article or if a portal exception occurred 107 */ 108 @Override 109 public com.liferay.portlet.journal.model.JournalArticle addArticle( 110 long groupId, long folderId, long classNameId, long classPK, 111 java.lang.String articleId, boolean autoArticleId, 112 java.util.Map<java.util.Locale, java.lang.String> titleMap, 113 java.util.Map<java.util.Locale, java.lang.String> descriptionMap, 114 java.lang.String content, java.lang.String ddmStructureKey, 115 java.lang.String ddmTemplateKey, java.lang.String layoutUuid, 116 int displayDateMonth, int displayDateDay, int displayDateYear, 117 int displayDateHour, int displayDateMinute, int expirationDateMonth, 118 int expirationDateDay, int expirationDateYear, int expirationDateHour, 119 int expirationDateMinute, boolean neverExpire, int reviewDateMonth, 120 int reviewDateDay, int reviewDateYear, int reviewDateHour, 121 int reviewDateMinute, boolean neverReview, boolean indexable, 122 java.lang.String articleURL, 123 com.liferay.portal.service.ServiceContext serviceContext) 124 throws com.liferay.portal.kernel.exception.PortalException { 125 return _journalArticleService.addArticle(groupId, folderId, 126 classNameId, classPK, articleId, autoArticleId, titleMap, 127 descriptionMap, content, ddmStructureKey, ddmTemplateKey, 128 layoutUuid, displayDateMonth, displayDateDay, displayDateYear, 129 displayDateHour, displayDateMinute, expirationDateMonth, 130 expirationDateDay, expirationDateYear, expirationDateHour, 131 expirationDateMinute, neverExpire, reviewDateMonth, reviewDateDay, 132 reviewDateYear, reviewDateHour, reviewDateMinute, neverReview, 133 indexable, articleURL, serviceContext); 134 } 135 136 /** 137 * Adds a web content article with additional parameters. 138 * 139 * @param groupId the primary key of the web content article's group 140 * @param folderId the primary key of the web content article folder 141 * @param classNameId the primary key of the DDMStructure class if the web 142 content article is related to a DDM structure, the primary key of 143 the class name associated with the article, or {@link 144 JournalArticleConstants#CLASSNAME_ID_DEFAULT} otherwise 145 * @param classPK the primary key of the DDM structure, if the primary key 146 of the DDMStructure class is given as the 147 <code>classNameId</code> parameter, the primary key of the class 148 associated with the web content article, or <code>0</code> 149 otherwise 150 * @param articleId the primary key of the web content article 151 * @param autoArticleId whether to auto generate the web content article ID 152 * @param titleMap the web content article's locales and localized titles 153 * @param descriptionMap the web content article's locales and localized 154 descriptions 155 * @param content the HTML content wrapped in XML. For more information, 156 see the content example in the class description for {@link 157 JournalArticleLocalServiceImpl}. 158 * @param ddmStructureKey the primary key of the web content article's DDM 159 structure, if the article is related to a DDM structure, or 160 <code>null</code> otherwise 161 * @param ddmTemplateKey the primary key of the web content article's DDM 162 template 163 * @param layoutUuid the unique string identifying the web content 164 article's display page 165 * @param displayDateMonth the month the web content article is set to 166 display 167 * @param displayDateDay the calendar day the web content article is set to 168 display 169 * @param displayDateYear the year the web content article is set to 170 display 171 * @param displayDateHour the hour the web content article is set to 172 display 173 * @param displayDateMinute the minute the web content article is set to 174 display 175 * @param expirationDateMonth the month the web content article is set to 176 expire 177 * @param expirationDateDay the calendar day the web content article is set 178 to expire 179 * @param expirationDateYear the year the web content article is set to 180 expire 181 * @param expirationDateHour the hour the web content article is set to 182 expire 183 * @param expirationDateMinute the minute the web content article is set to 184 expire 185 * @param neverExpire whether the web content article is not set to auto 186 expire 187 * @param reviewDateMonth the month the web content article is set for 188 review 189 * @param reviewDateDay the calendar day the web content article is set for 190 review 191 * @param reviewDateYear the year the web content article is set for review 192 * @param reviewDateHour the hour the web content article is set for review 193 * @param reviewDateMinute the minute the web content article is set for 194 review 195 * @param neverReview whether the web content article is not set for review 196 * @param indexable whether the web content article is searchable 197 * @param smallImage whether the web content article has a small image 198 * @param smallImageURL the web content article's small image URL 199 * @param smallFile the web content article's small image file 200 * @param images the web content's images 201 * @param articleURL the web content article's accessible URL 202 * @param serviceContext the service context to be applied. Can set the 203 UUID, creation date, modification date, expando bridge 204 attributes, guest permissions, group permissions, asset category 205 IDs, asset tag names, asset link entry IDs, the "urlTitle" 206 attribute, and workflow actions for the web content article. Can 207 also set whether to add the default guest and group permissions. 208 * @return the web content article 209 * @throws PortalException if the user did not have permission to add the 210 web content article or if a portal exception occurred 211 */ 212 @Override 213 public com.liferay.portlet.journal.model.JournalArticle addArticle( 214 long groupId, long folderId, long classNameId, long classPK, 215 java.lang.String articleId, boolean autoArticleId, 216 java.util.Map<java.util.Locale, java.lang.String> titleMap, 217 java.util.Map<java.util.Locale, java.lang.String> descriptionMap, 218 java.lang.String content, java.lang.String ddmStructureKey, 219 java.lang.String ddmTemplateKey, java.lang.String layoutUuid, 220 int displayDateMonth, int displayDateDay, int displayDateYear, 221 int displayDateHour, int displayDateMinute, int expirationDateMonth, 222 int expirationDateDay, int expirationDateYear, int expirationDateHour, 223 int expirationDateMinute, boolean neverExpire, int reviewDateMonth, 224 int reviewDateDay, int reviewDateYear, int reviewDateHour, 225 int reviewDateMinute, boolean neverReview, boolean indexable, 226 boolean smallImage, java.lang.String smallImageURL, 227 java.io.File smallFile, java.util.Map<java.lang.String, byte[]> images, 228 java.lang.String articleURL, 229 com.liferay.portal.service.ServiceContext serviceContext) 230 throws com.liferay.portal.kernel.exception.PortalException { 231 return _journalArticleService.addArticle(groupId, folderId, 232 classNameId, classPK, articleId, autoArticleId, titleMap, 233 descriptionMap, content, ddmStructureKey, ddmTemplateKey, 234 layoutUuid, displayDateMonth, displayDateDay, displayDateYear, 235 displayDateHour, displayDateMinute, expirationDateMonth, 236 expirationDateDay, expirationDateYear, expirationDateHour, 237 expirationDateMinute, neverExpire, reviewDateMonth, reviewDateDay, 238 reviewDateYear, reviewDateHour, reviewDateMinute, neverReview, 239 indexable, smallImage, smallImageURL, smallFile, images, 240 articleURL, serviceContext); 241 } 242 243 /** 244 * Copies the web content article matching the group, article ID, and 245 * version. This method creates a new article, extracting all the values 246 * from the old one and updating its article ID. 247 * 248 * @param groupId the primary key of the web content article's group 249 * @param oldArticleId the primary key of the old web content article 250 * @param newArticleId the primary key of the new web content article 251 * @param autoArticleId whether to auto-generate the web content article ID 252 * @param version the web content article's version 253 * @return the new web content article 254 * @throws PortalException if the user did not have permission to add the 255 copy the web content article, if a matching web content article 256 could not be found, or if a portal exception occurred 257 */ 258 @Override 259 public com.liferay.portlet.journal.model.JournalArticle copyArticle( 260 long groupId, java.lang.String oldArticleId, 261 java.lang.String newArticleId, boolean autoArticleId, double version) 262 throws com.liferay.portal.kernel.exception.PortalException { 263 return _journalArticleService.copyArticle(groupId, oldArticleId, 264 newArticleId, autoArticleId, version); 265 } 266 267 /** 268 * Deletes all web content articles and their resources matching the group 269 * and article ID, optionally sending email notifying denial of article if 270 * it had not yet been approved. 271 * 272 * @param groupId the primary key of the web content article's group 273 * @param articleId the primary key of the web content article 274 * @param articleURL the web content article's accessible URL 275 * @param serviceContext the service context to be applied. Can set the 276 portlet preferences that include email information to notify 277 recipients of the unapproved web content article's denial. 278 * @throws PortalException if the user did not have permission to delete the 279 web content article or if a portal exception occurred 280 */ 281 @Override 282 public void deleteArticle(long groupId, java.lang.String articleId, 283 java.lang.String articleURL, 284 com.liferay.portal.service.ServiceContext serviceContext) 285 throws com.liferay.portal.kernel.exception.PortalException { 286 _journalArticleService.deleteArticle(groupId, articleId, articleURL, 287 serviceContext); 288 } 289 290 /** 291 * Deletes the web content article and its resources matching the group, 292 * article ID, and version, optionally sending email notifying denial of the 293 * web content article if it had not yet been approved. 294 * 295 * @param groupId the primary key of the web content article's group 296 * @param articleId the primary key of the web content article 297 * @param version the web content article's version 298 * @param articleURL the web content article's accessible URL 299 * @param serviceContext the service context to be applied. Can set the 300 portlet preferences that include email information to notify 301 recipients of the unapproved web content article's denial. 302 * @throws PortalException if the user did not have permission to delete the 303 web content article, if a matching web content article could not 304 be found, or if a portal exception occurred 305 */ 306 @Override 307 public void deleteArticle(long groupId, java.lang.String articleId, 308 double version, java.lang.String articleURL, 309 com.liferay.portal.service.ServiceContext serviceContext) 310 throws com.liferay.portal.kernel.exception.PortalException { 311 _journalArticleService.deleteArticle(groupId, articleId, version, 312 articleURL, serviceContext); 313 } 314 315 /** 316 * Expires the web content article matching the group and article ID, 317 * expiring all of its versions if the 318 * <code>journal.article.expire.all.versions</code> portal property is 319 * <code>true</code>, otherwise expiring only its latest approved version. 320 * 321 * @param groupId the primary key of the web content article's group 322 * @param articleId the primary key of the web content article 323 * @param articleURL the web content article's accessible URL 324 * @param serviceContext the service context to be applied. Can set the 325 modification date, status date, portlet preferences, and can set 326 whether to add the default command update for the web content 327 article. With respect to social activities, by setting the 328 service context's command to {@link 329 com.liferay.portal.kernel.util.Constants#UPDATE}, the invocation 330 is considered a web content update activity; otherwise it is 331 considered a web content add activity. 332 * @throws PortalException if the user did not have permission to expire the 333 web content article, if a matching web content article could not 334 be found, or if a portal exception occurred 335 */ 336 @Override 337 public void expireArticle(long groupId, java.lang.String articleId, 338 java.lang.String articleURL, 339 com.liferay.portal.service.ServiceContext serviceContext) 340 throws com.liferay.portal.kernel.exception.PortalException { 341 _journalArticleService.expireArticle(groupId, articleId, articleURL, 342 serviceContext); 343 } 344 345 /** 346 * Expires the web content article matching the group, article ID, and 347 * version. 348 * 349 * @param groupId the primary key of the web content article's group 350 * @param articleId the primary key of the web content article 351 * @param version the web content article's version 352 * @param articleURL the web content article's accessible URL 353 * @param serviceContext the service context to be applied. Can set the 354 modification date, status date, portlet preferences, and can set 355 whether to add the default command update for the web content 356 article. With respect to social activities, by setting the 357 service context's command to {@link 358 com.liferay.portal.kernel.util.Constants#UPDATE}, the invocation 359 is considered a web content update activity; otherwise it is 360 considered a web content add activity. 361 * @return the web content article 362 * @throws PortalException if the user did not have permission to expire the 363 web content article, if a matching web content article could not 364 be found, or if a portal exception occurred 365 */ 366 @Override 367 public com.liferay.portlet.journal.model.JournalArticle expireArticle( 368 long groupId, java.lang.String articleId, double version, 369 java.lang.String articleURL, 370 com.liferay.portal.service.ServiceContext serviceContext) 371 throws com.liferay.portal.kernel.exception.PortalException { 372 return _journalArticleService.expireArticle(groupId, articleId, 373 version, articleURL, serviceContext); 374 } 375 376 /** 377 * Returns the latest approved web content article, or the latest unapproved 378 * article if none are approved. Both approved and unapproved articles must 379 * match the group and article ID. 380 * 381 * @param groupId the primary key of the web content article's group 382 * @param articleId the primary key of the web content article 383 * @return the matching web content article 384 * @throws PortalException if the user did not have permission to view the 385 web content article or if a matching web content article could 386 not be found 387 */ 388 @Override 389 public com.liferay.portlet.journal.model.JournalArticle getArticle( 390 long groupId, java.lang.String articleId) 391 throws com.liferay.portal.kernel.exception.PortalException { 392 return _journalArticleService.getArticle(groupId, articleId); 393 } 394 395 /** 396 * Returns the web content article matching the group, article ID, and 397 * version. 398 * 399 * @param groupId the primary key of the web content article's group 400 * @param articleId the primary key of the web content article 401 * @param version the web content article's version 402 * @return the matching web content article 403 * @throws PortalException if the user did not have permission to view the 404 web content article or if a matching web content article could 405 not be found 406 */ 407 @Override 408 public com.liferay.portlet.journal.model.JournalArticle getArticle( 409 long groupId, java.lang.String articleId, double version) 410 throws com.liferay.portal.kernel.exception.PortalException { 411 return _journalArticleService.getArticle(groupId, articleId, version); 412 } 413 414 /** 415 * Returns the web content article matching the group, class name, and class 416 * PK. 417 * 418 * @param groupId the primary key of the web content article's group 419 * @param className the DDMStructure class name if the web content article 420 is related to a DDM structure, the primary key of the class name 421 associated with the article, or {@link 422 JournalArticleConstants#CLASSNAME_ID_DEFAULT} otherwise 423 * @param classPK the primary key of the DDM structure, if the the 424 DDMStructure class name is given as the <code>className</code> 425 parameter, the primary key of the class associated with the web 426 content article, or <code>0</code> otherwise 427 * @return the matching web content article 428 * @throws PortalException if a matching web content article could not be 429 found or if the user did not have permission to view the web 430 content article 431 */ 432 @Override 433 public com.liferay.portlet.journal.model.JournalArticle getArticle( 434 long groupId, java.lang.String className, long classPK) 435 throws com.liferay.portal.kernel.exception.PortalException { 436 return _journalArticleService.getArticle(groupId, className, classPK); 437 } 438 439 /** 440 * Returns the web content article with the ID. 441 * 442 * @param id the primary key of the web content article 443 * @return the web content article with the ID 444 * @throws PortalException if a matching web content article could not be 445 found or if the user did not have permission to view the web 446 content article 447 */ 448 @Override 449 public com.liferay.portlet.journal.model.JournalArticle getArticle(long id) 450 throws com.liferay.portal.kernel.exception.PortalException { 451 return _journalArticleService.getArticle(id); 452 } 453 454 /** 455 * Returns the latest web content article that is approved, or the latest 456 * unapproved article if none are approved. Both approved and unapproved 457 * articles must match the group and URL title. 458 * 459 * @param groupId the primary key of the web content article's group 460 * @param urlTitle the web content article's accessible URL title 461 * @return the matching web content article 462 * @throws PortalException if the user did not have permission to view the 463 web content article or if a portal exception occurred 464 */ 465 @Override 466 public com.liferay.portlet.journal.model.JournalArticle getArticleByUrlTitle( 467 long groupId, java.lang.String urlTitle) 468 throws com.liferay.portal.kernel.exception.PortalException { 469 return _journalArticleService.getArticleByUrlTitle(groupId, urlTitle); 470 } 471 472 /** 473 * Returns the latest web content from the web content article matching the 474 * group and article ID. 475 * 476 * @param groupId the primary key of the web content article's group 477 * @param articleId the primary key of the web content article 478 * @param languageId the primary key of the language translation to get 479 * @param portletRequestModel the portlet request model 480 * @param themeDisplay the theme display 481 * @return the matching web content 482 * @throws PortalException if the user did not have permission to view the 483 web content article, if a matching web content article or DDM 484 template could not be found, or if a portal exception occurred 485 */ 486 @Override 487 public java.lang.String getArticleContent(long groupId, 488 java.lang.String articleId, java.lang.String languageId, 489 com.liferay.portal.kernel.portlet.PortletRequestModel portletRequestModel, 490 com.liferay.portal.theme.ThemeDisplay themeDisplay) 491 throws com.liferay.portal.kernel.exception.PortalException { 492 return _journalArticleService.getArticleContent(groupId, articleId, 493 languageId, portletRequestModel, themeDisplay); 494 } 495 496 /** 497 * Returns the latest web content from the web content article matching the 498 * group and article ID. 499 * 500 * @param groupId the primary key of the web content article's group 501 * @param articleId the primary key of the web content article 502 * @param languageId the primary key of the language translation to get 503 * @param themeDisplay the theme display 504 * @return the matching web content 505 * @throws PortalException if the user did not have permission to view 506 the web content article, if a matching web content article or 507 DDM template could not be found, or if a portal exception 508 occurred 509 * @deprecated As of 7.0.0, replaced by {@link #getArticleContent(long, 510 String, String, PortletRequestModel, ThemeDisplay)} 511 */ 512 @Deprecated 513 @Override 514 public java.lang.String getArticleContent(long groupId, 515 java.lang.String articleId, java.lang.String languageId, 516 com.liferay.portal.theme.ThemeDisplay themeDisplay) 517 throws com.liferay.portal.kernel.exception.PortalException { 518 return _journalArticleService.getArticleContent(groupId, articleId, 519 languageId, themeDisplay); 520 } 521 522 /** 523 * Returns the web content from the web content article matching the group, 524 * article ID, and version. 525 * 526 * @param groupId the primary key of the web content article's group 527 * @param articleId the primary key of the web content article 528 * @param version the web content article's version 529 * @param languageId the primary key of the language translation to get 530 * @param portletRequestModel the portlet request model 531 * @param themeDisplay the theme display 532 * @return the matching web content 533 * @throws PortalException if the user did not have permission to view the 534 web content article, if a matching web content article or DDM 535 template could not be found, or if a portal exception occurred 536 */ 537 @Override 538 public java.lang.String getArticleContent(long groupId, 539 java.lang.String articleId, double version, 540 java.lang.String languageId, 541 com.liferay.portal.kernel.portlet.PortletRequestModel portletRequestModel, 542 com.liferay.portal.theme.ThemeDisplay themeDisplay) 543 throws com.liferay.portal.kernel.exception.PortalException { 544 return _journalArticleService.getArticleContent(groupId, articleId, 545 version, languageId, portletRequestModel, themeDisplay); 546 } 547 548 /** 549 * Returns the web content from the web content article matching the group, 550 * article ID, and version. 551 * 552 * @param groupId the primary key of the web content article's group 553 * @param articleId the primary key of the web content article 554 * @param version the web content article's version 555 * @param languageId the primary key of the language translation to get 556 * @param themeDisplay the theme display 557 * @return the matching web content 558 * @throws PortalException if the user did not have permission to view 559 the web content article, if a matching web content article or 560 DDM template could not be found, or if a portal exception 561 occurred 562 * @deprecated As of 7.0.0, replaced by {@link #getArticleContent(long, 563 String, double, String, PortletRequestModel, ThemeDisplay)} 564 */ 565 @Deprecated 566 @Override 567 public java.lang.String getArticleContent(long groupId, 568 java.lang.String articleId, double version, 569 java.lang.String languageId, 570 com.liferay.portal.theme.ThemeDisplay themeDisplay) 571 throws com.liferay.portal.kernel.exception.PortalException { 572 return _journalArticleService.getArticleContent(groupId, articleId, 573 version, languageId, themeDisplay); 574 } 575 576 /** 577 * Returns all the web content articles matching the group and folder. 578 * 579 * @param groupId the primary key of the web content article's group 580 * @param folderId the primary key of the web content article folder 581 * @return the matching web content articles 582 */ 583 @Override 584 public java.util.List<com.liferay.portlet.journal.model.JournalArticle> getArticles( 585 long groupId, long folderId) { 586 return _journalArticleService.getArticles(groupId, folderId); 587 } 588 589 /** 590 * Returns an ordered range of all the web content articles matching the 591 * group and folder. 592 * 593 * <p> 594 * Useful when paginating results. Returns a maximum of <code>end - 595 * start</code> instances. <code>start</code> and <code>end</code> are not 596 * primary keys, they are indexes in the result set. Thus, <code>0</code> 597 * refers to the first result in the set. Setting both <code>start</code> 598 * and <code>end</code> to {@link 599 * com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full 600 * result set. 601 * </p> 602 * 603 * @param groupId the primary key of the web content article's group 604 * @param folderId the primary key of the web content article folder 605 * @param start the lower bound of the range of web content articles to 606 return 607 * @param end the upper bound of the range of web content articles to 608 return (not inclusive) 609 * @param obc the comparator to order the web content articles 610 * @return the matching web content articles 611 */ 612 @Override 613 public java.util.List<com.liferay.portlet.journal.model.JournalArticle> getArticles( 614 long groupId, long folderId, int start, int end, 615 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.journal.model.JournalArticle> obc) { 616 return _journalArticleService.getArticles(groupId, folderId, start, 617 end, obc); 618 } 619 620 /** 621 * Returns an ordered range of all the web content articles matching the 622 * group and article ID. 623 * 624 * <p> 625 * Useful when paginating results. Returns a maximum of <code>end - 626 * start</code> instances. <code>start</code> and <code>end</code> are not 627 * primary keys, they are indexes in the result set. Thus, <code>0</code> 628 * refers to the first result in the set. Setting both <code>start</code> 629 * and <code>end</code> to {@link 630 * com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full 631 * result set. 632 * </p> 633 * 634 * @param groupId the primary key of the web content article's group 635 * @param articleId the primary key of the web content article 636 * @param start the lower bound of the range of web content articles to 637 return 638 * @param end the upper bound of the range of web content articles to 639 return (not inclusive) 640 * @param obc the comparator to order the web content articles 641 * @return the range of matching web content articles ordered by the 642 comparator 643 */ 644 @Override 645 public java.util.List<com.liferay.portlet.journal.model.JournalArticle> getArticlesByArticleId( 646 long groupId, java.lang.String articleId, int start, int end, 647 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.journal.model.JournalArticle> obc) { 648 return _journalArticleService.getArticlesByArticleId(groupId, 649 articleId, start, end, obc); 650 } 651 652 /** 653 * Returns all the web content articles matching the group and layout UUID. 654 * 655 * @param groupId the primary key of the web content article's group 656 * @param layoutUuid the unique string identifying the web content 657 article's display page 658 * @return the matching web content articles 659 */ 660 @Override 661 public java.util.List<com.liferay.portlet.journal.model.JournalArticle> getArticlesByLayoutUuid( 662 long groupId, java.lang.String layoutUuid) { 663 return _journalArticleService.getArticlesByLayoutUuid(groupId, 664 layoutUuid); 665 } 666 667 /** 668 * Returns an ordered range of all the web content articles matching the 669 * group, class name ID, DDM structure key, and workflow status. 670 * 671 * <p> 672 * Useful when paginating results. Returns a maximum of <code>end - 673 * start</code> instances. <code>start</code> and <code>end</code> are not 674 * primary keys, they are indexes in the result set. Thus, <code>0</code> 675 * refers to the first result in the set. Setting both <code>start</code> 676 * and <code>end</code> to {@link 677 * com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full 678 * result set. 679 * </p> 680 * 681 * @param groupId the primary key of the web content article's group 682 * @param classNameId the primary key of the DDMStructure class if the web 683 content article is related to a DDM structure, the primary key of 684 the class name associated with the article, or {@link 685 JournalArticleConstants#CLASSNAME_ID_DEFAULT} otherwise 686 * @param ddmStructureKey the primary key of the web content article's DDM 687 structure 688 * @param status the web content article's workflow status. For more 689 information see {@link WorkflowConstants} for constants starting 690 with the "STATUS_" prefix. 691 * @param start the lower bound of the range of web content articles to 692 return 693 * @param end the upper bound of the range of web content articles to 694 return (not inclusive) 695 * @param obc the comparator to order the web content articles 696 * @return the range of matching web content articles ordered by the 697 comparator 698 */ 699 @Override 700 public java.util.List<com.liferay.portlet.journal.model.JournalArticle> getArticlesByStructureId( 701 long groupId, long classNameId, java.lang.String ddmStructureKey, 702 int status, int start, int end, 703 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.journal.model.JournalArticle> obc) { 704 return _journalArticleService.getArticlesByStructureId(groupId, 705 classNameId, ddmStructureKey, status, start, end, obc); 706 } 707 708 /** 709 * Returns an ordered range of all the web content articles matching the 710 * group, default class name ID, and DDM structure key. 711 * 712 * <p> 713 * Useful when paginating results. Returns a maximum of <code>end - 714 * start</code> instances. <code>start</code> and <code>end</code> are not 715 * primary keys, they are indexes in the result set. Thus, <code>0</code> 716 * refers to the first result in the set. Setting both <code>start</code> 717 * and <code>end</code> to {@link 718 * com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full 719 * result set. 720 * </p> 721 * 722 * @param groupId the primary key of the web content article's group 723 * @param ddmStructureKey the primary key of the web content article's DDM 724 structure 725 * @param start the lower bound of the range of web content articles to 726 return 727 * @param end the upper bound of the range of web content articles to 728 return (not inclusive) 729 * @param obc the comparator to order the web content articles 730 * @return the range of matching web content articles ordered by the 731 comparator 732 */ 733 @Override 734 public java.util.List<com.liferay.portlet.journal.model.JournalArticle> getArticlesByStructureId( 735 long groupId, java.lang.String ddmStructureKey, int start, int end, 736 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.journal.model.JournalArticle> obc) { 737 return _journalArticleService.getArticlesByStructureId(groupId, 738 ddmStructureKey, start, end, obc); 739 } 740 741 /** 742 * Returns the number of web content articles matching the group and folder. 743 * 744 * @param groupId the primary key of the web content article's group 745 * @param folderId the primary key of the web content article folder 746 * @return the number of matching web content articles 747 */ 748 @Override 749 public int getArticlesCount(long groupId, long folderId) { 750 return _journalArticleService.getArticlesCount(groupId, folderId); 751 } 752 753 /** 754 * Returns the number of web content articles matching the group, folder, 755 * and status. 756 * 757 * @param groupId the primary key of the web content article's group 758 * @param folderId the primary key of the web content article's folder 759 * @param status the web content article's workflow status. For more 760 information see {@link WorkflowConstants} for constants starting 761 with the "STATUS_" prefix. 762 * @return the number of matching web content articles 763 */ 764 @Override 765 public int getArticlesCount(long groupId, long folderId, int status) { 766 return _journalArticleService.getArticlesCount(groupId, folderId, status); 767 } 768 769 /** 770 * Returns the number of web content articles matching the group and article 771 * ID. 772 * 773 * @param groupId the primary key of the web content article's group 774 * @param articleId the primary key of the web content article 775 * @return the number of matching web content articles 776 */ 777 @Override 778 public int getArticlesCountByArticleId(long groupId, 779 java.lang.String articleId) { 780 return _journalArticleService.getArticlesCountByArticleId(groupId, 781 articleId); 782 } 783 784 /** 785 * Returns the number of web content articles matching the group, class name 786 * ID, DDM structure key, and workflow status. 787 * 788 * @param groupId the primary key of the web content article's group 789 * @param classNameId the primary key of the DDMStructure class if the web 790 content article is related to a DDM structure, the primary key of 791 the class name associated with the article, or {@link 792 JournalArticleConstants#CLASSNAME_ID_DEFAULT} otherwise 793 * @param ddmStructureKey the primary key of the web content article's DDM 794 structure 795 * @param status the web content article's workflow status. For more 796 information see {@link WorkflowConstants} for constants starting 797 with the "STATUS_" prefix. 798 * @return the number of matching web content articles 799 */ 800 @Override 801 public int getArticlesCountByStructureId(long groupId, long classNameId, 802 java.lang.String ddmStructureKey, int status) { 803 return _journalArticleService.getArticlesCountByStructureId(groupId, 804 classNameId, ddmStructureKey, status); 805 } 806 807 /** 808 * Returns the number of web content articles matching the group, default 809 * class name ID, and DDM structure key. 810 * 811 * @param groupId the primary key of the web content article's group 812 * @param ddmStructureKey the primary key of the web content article's DDM 813 structure 814 * @return the number of matching web content articles 815 */ 816 @Override 817 public int getArticlesCountByStructureId(long groupId, 818 java.lang.String ddmStructureKey) { 819 return _journalArticleService.getArticlesCountByStructureId(groupId, 820 ddmStructureKey); 821 } 822 823 /** 824 * Returns the Spring bean ID for this bean. 825 * 826 * @return the Spring bean ID for this bean 827 */ 828 @Override 829 public java.lang.String getBeanIdentifier() { 830 return _journalArticleService.getBeanIdentifier(); 831 } 832 833 /** 834 * Returns the web content article matching the URL title that is currently 835 * displayed or next to be displayed if no article is currently displayed. 836 * 837 * @param groupId the primary key of the web content article's group 838 * @param urlTitle the web content article's accessible URL title 839 * @return the web content article matching the URL title that is currently 840 displayed, or next one to be displayed if no version of the 841 article is currently displayed 842 * @throws PortalException if the user did not have permission to view the 843 web content article or if no approved matching web content 844 articles could be found 845 */ 846 @Override 847 public com.liferay.portlet.journal.model.JournalArticle getDisplayArticleByUrlTitle( 848 long groupId, java.lang.String urlTitle) 849 throws com.liferay.portal.kernel.exception.PortalException { 850 return _journalArticleService.getDisplayArticleByUrlTitle(groupId, 851 urlTitle); 852 } 853 854 /** 855 * Returns the number of folders containing web content articles belonging 856 * to the group. 857 * 858 * @param groupId the primary key of the web content article's group 859 * @param folderIds the primary keys of the web content article folders 860 (optionally {@link java.util.Collections#EMPTY_LIST}) 861 * @return the number of matching folders containing web content articles 862 */ 863 @Override 864 public int getFoldersAndArticlesCount(long groupId, 865 java.util.List<java.lang.Long> folderIds) { 866 return _journalArticleService.getFoldersAndArticlesCount(groupId, 867 folderIds); 868 } 869 870 /** 871 * Returns an ordered range of all the web content articles matching the 872 * group, user, the root folder or any of its subfolders. 873 * 874 * <p> 875 * Useful when paginating results. Returns a maximum of <code>end - 876 * start</code> instances. <code>start</code> and <code>end</code> are not 877 * primary keys, they are indexes in the result set. Thus, <code>0</code> 878 * refers to the first result in the set. Setting both <code>start</code> 879 * and <code>end</code> to {@link 880 * com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full 881 * result set. 882 * </p> 883 * 884 * @param groupId the primary key of the web content article's group 885 * @param userId the primary key of the user (optionally <code>0</code>) 886 * @param rootFolderId the primary key of the root folder to begin the 887 search 888 * @param start the lower bound of the range of web content articles to 889 return 890 * @param end the upper bound of the range of web content articles to 891 return (not inclusive) 892 * @param orderByComparator the comparator to order the web content 893 articles 894 * @return the range of matching web content articles ordered by the 895 comparator 896 * @throws PortalException if the root folder could not be found, if the 897 current user did not have permission to view the root folder, or 898 if a portal exception occurred 899 */ 900 @Override 901 public java.util.List<com.liferay.portlet.journal.model.JournalArticle> getGroupArticles( 902 long groupId, long userId, long rootFolderId, int start, int end, 903 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.journal.model.JournalArticle> orderByComparator) 904 throws com.liferay.portal.kernel.exception.PortalException { 905 return _journalArticleService.getGroupArticles(groupId, userId, 906 rootFolderId, start, end, orderByComparator); 907 } 908 909 /** 910 * Returns an ordered range of all the web content articles matching the 911 * group, user, the root folder or any of its subfolders. 912 * 913 * <p> 914 * Useful when paginating results. Returns a maximum of <code>end - 915 * start</code> instances. <code>start</code> and <code>end</code> are not 916 * primary keys, they are indexes in the result set. Thus, <code>0</code> 917 * refers to the first result in the set. Setting both <code>start</code> 918 * and <code>end</code> to {@link 919 * com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full 920 * result set. 921 * </p> 922 * 923 * @param groupId the primary key of the web content article's group 924 * @param userId the primary key of the user (optionally <code>0</code>) 925 * @param rootFolderId the primary key of the root folder to begin the 926 search 927 * @param status the web content article's workflow status. For more 928 information see {@link WorkflowConstants} for constants starting 929 with the "STATUS_" prefix. 930 * @param start the lower bound of the range of web content articles to 931 return 932 * @param end the upper bound of the range of web content articles to 933 return (not inclusive) 934 * @param orderByComparator the comparator to order the web content 935 articles 936 * @return the range of matching web content articles ordered by the 937 comparator 938 * @throws PortalException if a portal exception occurred 939 */ 940 @Override 941 public java.util.List<com.liferay.portlet.journal.model.JournalArticle> getGroupArticles( 942 long groupId, long userId, long rootFolderId, int status, int start, 943 int end, 944 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.journal.model.JournalArticle> orderByComparator) 945 throws com.liferay.portal.kernel.exception.PortalException { 946 return _journalArticleService.getGroupArticles(groupId, userId, 947 rootFolderId, status, start, end, orderByComparator); 948 } 949 950 /** 951 * Returns the number of web content articles matching the group, user, and 952 * the root folder or any of its subfolders. 953 * 954 * @param groupId the primary key of the web content article's group 955 * @param userId the primary key of the user (optionally <code>0</code>) 956 * @param rootFolderId the primary key of the root folder to begin the 957 search 958 * @return the number of matching web content articles 959 * @throws PortalException if the root folder could not be found, if the 960 current user did not have permission to view the root folder, or 961 if a portal exception occurred 962 */ 963 @Override 964 public int getGroupArticlesCount(long groupId, long userId, 965 long rootFolderId) 966 throws com.liferay.portal.kernel.exception.PortalException { 967 return _journalArticleService.getGroupArticlesCount(groupId, userId, 968 rootFolderId); 969 } 970 971 /** 972 * Returns the number of web content articles matching the group, user, and 973 * the root folder or any of its subfolders. 974 * 975 * @param groupId the primary key of the web content article's group 976 * @param userId the primary key of the user (optionally <code>0</code>) 977 * @param rootFolderId the primary key of the root folder to begin the 978 search 979 * @param status the web content article's workflow status. For more 980 information see {@link WorkflowConstants} for constants starting 981 with the "STATUS_" prefix. 982 * @return the number of matching web content articles 983 * @throws PortalException if a portal exception occurred 984 */ 985 @Override 986 public int getGroupArticlesCount(long groupId, long userId, 987 long rootFolderId, int status) 988 throws com.liferay.portal.kernel.exception.PortalException { 989 return _journalArticleService.getGroupArticlesCount(groupId, userId, 990 rootFolderId, status); 991 } 992 993 /** 994 * Returns the latest web content article matching the group, article ID, 995 * and workflow status. 996 * 997 * @param groupId the primary key of the web content article's group 998 * @param articleId the primary key of the web content article 999 * @param status the web content article's workflow status. For more 1000 information see {@link WorkflowConstants} for constants starting 1001 with the "STATUS_" prefix. 1002 * @return the latest matching web content article 1003 * @throws PortalException if the user did not have permission to view the 1004 web content article or if a matching web content article could 1005 not be found 1006 */ 1007 @Override 1008 public com.liferay.portlet.journal.model.JournalArticle getLatestArticle( 1009 long groupId, java.lang.String articleId, int status) 1010 throws com.liferay.portal.kernel.exception.PortalException { 1011 return _journalArticleService.getLatestArticle(groupId, articleId, 1012 status); 1013 } 1014 1015 /** 1016 * Returns the latest web content article matching the group, class name ID, 1017 * and class PK. 1018 * 1019 * @param groupId the primary key of the web content article's group 1020 * @param className the DDMStructure class name if the web content article 1021 is related to a DDM structure, the class name associated with the 1022 article, or {@link JournalArticleConstants#CLASSNAME_ID_DEFAULT} 1023 otherwise 1024 * @param classPK the primary key of the DDM structure, if the DDMStructure 1025 class name is given as the <code>className</code> parameter, the 1026 primary key of the class associated with the web content article, 1027 or <code>0</code> otherwise 1028 * @return the latest matching web content article 1029 * @throws PortalException if a matching web content article could not be 1030 found or if the user did not have permission to view the web 1031 content article 1032 */ 1033 @Override 1034 public com.liferay.portlet.journal.model.JournalArticle getLatestArticle( 1035 long groupId, java.lang.String className, long classPK) 1036 throws com.liferay.portal.kernel.exception.PortalException { 1037 return _journalArticleService.getLatestArticle(groupId, className, 1038 classPK); 1039 } 1040 1041 /** 1042 * Returns the latest web content article matching the resource primary key, 1043 * preferring articles with approved workflow status. 1044 * 1045 * @param resourcePrimKey the primary key of the resource instance 1046 * @return the latest web content article matching the resource primary key, 1047 preferring articles with approved workflow status 1048 * @throws PortalException if the user did not have permission to view the 1049 web content article or if a matching web content article could 1050 not be found 1051 */ 1052 @Override 1053 public com.liferay.portlet.journal.model.JournalArticle getLatestArticle( 1054 long resourcePrimKey) 1055 throws com.liferay.portal.kernel.exception.PortalException { 1056 return _journalArticleService.getLatestArticle(resourcePrimKey); 1057 } 1058 1059 /** 1060 * Moves all versions of the the web content article matching the group and 1061 * article ID to the folder. 1062 * 1063 * @param groupId the primary key of the web content article's group 1064 * @param articleId the primary key of the web content article 1065 * @param newFolderId the primary key of the web content article's new 1066 folder 1067 * @throws PortalException if the user did not have permission to update any 1068 one of the versions of the web content article or if any one of 1069 the versions of the web content article could not be moved to the 1070 folder 1071 */ 1072 @Override 1073 public void moveArticle(long groupId, java.lang.String articleId, 1074 long newFolderId) 1075 throws com.liferay.portal.kernel.exception.PortalException { 1076 _journalArticleService.moveArticle(groupId, articleId, newFolderId); 1077 } 1078 1079 /** 1080 * Moves the web content article from the Recycle Bin to the folder. 1081 * 1082 * @param groupId the primary key of the web content article's group 1083 * @param articleId the primary key of the web content article 1084 * @param newFolderId the primary key of the web content article's new 1085 folder 1086 * @param serviceContext the service context to be applied. Can set the 1087 modification date, portlet preferences, and can set whether to 1088 add the default command update for the web content article. With 1089 respect to social activities, by setting the service context's 1090 command to {@link 1091 com.liferay.portal.kernel.util.Constants#UPDATE}, the invocation 1092 is considered a web content update activity; otherwise it is 1093 considered a web content add activity. 1094 * @return the updated web content article, which was moved from the Recycle 1095 Bin to the folder 1096 * @throws PortalException if the user did not have permission to view or 1097 update the web content article, if a trashed web content article 1098 with the primary key could not be found, or if a portal exception 1099 occurred 1100 */ 1101 @Override 1102 public com.liferay.portlet.journal.model.JournalArticle moveArticleFromTrash( 1103 long groupId, java.lang.String articleId, long newFolderId, 1104 com.liferay.portal.service.ServiceContext serviceContext) 1105 throws com.liferay.portal.kernel.exception.PortalException { 1106 return _journalArticleService.moveArticleFromTrash(groupId, articleId, 1107 newFolderId, serviceContext); 1108 } 1109 1110 /** 1111 * Moves the web content article from the Recycle Bin to the folder. 1112 * 1113 * @param groupId the primary key of the web content article's group 1114 * @param resourcePrimKey the primary key of the resource instance 1115 * @param newFolderId the primary key of the web content article's new 1116 folder 1117 * @param serviceContext the service context to be applied. Can set the 1118 modification date, portlet preferences, and can set whether to 1119 add the default command update for the web content article. With 1120 respect to social activities, by setting the service context's 1121 command to {@link 1122 com.liferay.portal.kernel.util.Constants#UPDATE}, the invocation 1123 is considered a web content update activity; otherwise it is 1124 considered a web content add activity. 1125 * @return the updated web content article, which was moved from the Recycle 1126 Bin to the folder 1127 * @throws PortalException if the user did not have permission to view or 1128 update the web content article, if a matching trashed web content 1129 article could not be found, or if a portal exception occurred 1130 */ 1131 @Override 1132 public com.liferay.portlet.journal.model.JournalArticle moveArticleFromTrash( 1133 long groupId, long resourcePrimKey, long newFolderId, 1134 com.liferay.portal.service.ServiceContext serviceContext) 1135 throws com.liferay.portal.kernel.exception.PortalException { 1136 return _journalArticleService.moveArticleFromTrash(groupId, 1137 resourcePrimKey, newFolderId, serviceContext); 1138 } 1139 1140 /** 1141 * Moves the latest version of the web content article matching the group 1142 * and article ID to the recycle bin. 1143 * 1144 * @param groupId the primary key of the web content article's group 1145 * @param articleId the primary key of the web content article 1146 * @return the moved web content article or <code>null</code> if no matching 1147 article was found 1148 * @throws PortalException if the user did not have permission to move the 1149 article to the Recycle Bin or if a portal exception occurred 1150 */ 1151 @Override 1152 public com.liferay.portlet.journal.model.JournalArticle moveArticleToTrash( 1153 long groupId, java.lang.String articleId) 1154 throws com.liferay.portal.kernel.exception.PortalException { 1155 return _journalArticleService.moveArticleToTrash(groupId, articleId); 1156 } 1157 1158 /** 1159 * Removes the web content of all the company's web content articles 1160 * matching the language. 1161 * 1162 * @param companyId the primary key of the web content article's company 1163 * @param languageId the primary key of the language locale to remove 1164 * @throws PortalException if the user did not have permission to update any 1165 one of the the web content articles or if web content matching 1166 the language could not be found for any one of the articles 1167 */ 1168 @Override 1169 public void removeArticleLocale(long companyId, java.lang.String languageId) 1170 throws com.liferay.portal.kernel.exception.PortalException { 1171 _journalArticleService.removeArticleLocale(companyId, languageId); 1172 } 1173 1174 /** 1175 * Removes the web content of the web content article matching the group, 1176 * article ID, and version, and language. 1177 * 1178 * @param groupId the primary key of the web content article's group 1179 * @param articleId the primary key of the web content article 1180 * @param version the web content article's version 1181 * @param languageId the primary key of the language locale to remove 1182 * @return the updated web content article with the locale removed 1183 * @throws PortalException if the user did not have permission to update the 1184 web content article or if a matching web content article could 1185 not be found 1186 */ 1187 @Override 1188 public com.liferay.portlet.journal.model.JournalArticle removeArticleLocale( 1189 long groupId, java.lang.String articleId, double version, 1190 java.lang.String languageId) 1191 throws com.liferay.portal.kernel.exception.PortalException { 1192 return _journalArticleService.removeArticleLocale(groupId, articleId, 1193 version, languageId); 1194 } 1195 1196 /** 1197 * Restores the web content article from the Recycle Bin. 1198 * 1199 * @param groupId the primary key of the web content article's group 1200 * @param articleId the primary key of the web content article 1201 * @throws PortalException if the web content article with the primary key 1202 could not be found in the Recycle Bin, if the user did not have 1203 permission to restore the article, or if a portal exception 1204 occurred 1205 */ 1206 @Override 1207 public void restoreArticleFromTrash(long groupId, java.lang.String articleId) 1208 throws com.liferay.portal.kernel.exception.PortalException { 1209 _journalArticleService.restoreArticleFromTrash(groupId, articleId); 1210 } 1211 1212 /** 1213 * Restores the web content article associated with the resource primary key 1214 * from the Recycle Bin. 1215 * 1216 * @param resourcePrimKey the primary key of the resource instance 1217 * @throws PortalException if a matching web content article could not be 1218 found in the Recycle Bin, if the user did not have permission to 1219 view or restore the article, or if a portal exception occurred 1220 */ 1221 @Override 1222 public void restoreArticleFromTrash(long resourcePrimKey) 1223 throws com.liferay.portal.kernel.exception.PortalException { 1224 _journalArticleService.restoreArticleFromTrash(resourcePrimKey); 1225 } 1226 1227 /** 1228 * Returns an ordered range of all the web content articles matching the 1229 * parameters, including keyword parameters for article ID, title, 1230 * description, and content, a DDM structure key parameter, a DDM template 1231 * key parameter, and an AND operator switch. 1232 * 1233 * <p> 1234 * Useful when paginating results. Returns a maximum of <code>end - 1235 * start</code> instances. <code>start</code> and <code>end</code> are not 1236 * primary keys, they are indexes in the result set. Thus, <code>0</code> 1237 * refers to the first result in the set. Setting both <code>start</code> 1238 * and <code>end</code> to {@link 1239 * com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full 1240 * result set. 1241 * </p> 1242 * 1243 * @param companyId the primary key of the web content article's company 1244 * @param groupId the primary key of the group (optionally <code>0</code>) 1245 * @param folderIds the primary keys of the web content article folders 1246 (optionally {@link java.util.Collections#EMPTY_LIST}) 1247 * @param classNameId the primary key of the DDMStructure class if the web 1248 content article is related to a DDM structure, the primary key of 1249 the class name associated with the article, or {@link 1250 JournalArticleConstants#CLASSNAME_ID_DEFAULT} otherwise 1251 * @param articleId the article ID keywords (space separated, optionally 1252 <code>null</code>) 1253 * @param version the web content article's version (optionally 1254 <code>null</code>) 1255 * @param title the title keywords (space separated, optionally 1256 <code>null</code>) 1257 * @param description the description keywords (space separated, optionally 1258 <code>null</code>) 1259 * @param content the content keywords (space separated, optionally 1260 <code>null</code>) 1261 * @param ddmStructureKey the primary key of the web content article's DDM 1262 structure, if the article is related to a DDM structure, or 1263 <code>null</code> otherwise 1264 * @param ddmTemplateKey the primary key of the web content article's DDM 1265 template 1266 * @param displayDateGT the date after which a matching web content 1267 article's display date must be after (optionally 1268 <code>null</code>) 1269 * @param displayDateLT the date before which a matching web content 1270 article's display date must be before (optionally 1271 <code>null</code>) 1272 * @param status the web content article's workflow status. For more 1273 information see {@link WorkflowConstants} for constants starting 1274 with the "STATUS_" prefix. 1275 * @param reviewDate the web content article's scheduled review date 1276 (optionally <code>null</code>) 1277 * @param andOperator whether every field must match its value or keywords, 1278 or just one field must match. Company, group, folder IDs, class 1279 name ID, and status must all match their values. 1280 * @param start the lower bound of the range of web content articles to 1281 return 1282 * @param end the upper bound of the range of web content articles to 1283 return (not inclusive) 1284 * @param obc the comparator to order the web content articles 1285 * @return the range of matching web content articles ordered by the 1286 comparator 1287 */ 1288 @Override 1289 public java.util.List<com.liferay.portlet.journal.model.JournalArticle> search( 1290 long companyId, long groupId, java.util.List<java.lang.Long> folderIds, 1291 long classNameId, java.lang.String articleId, java.lang.Double version, 1292 java.lang.String title, java.lang.String description, 1293 java.lang.String content, java.lang.String ddmStructureKey, 1294 java.lang.String ddmTemplateKey, java.util.Date displayDateGT, 1295 java.util.Date displayDateLT, int status, java.util.Date reviewDate, 1296 boolean andOperator, int start, int end, 1297 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.journal.model.JournalArticle> obc) { 1298 return _journalArticleService.search(companyId, groupId, folderIds, 1299 classNameId, articleId, version, title, description, content, 1300 ddmStructureKey, ddmTemplateKey, displayDateGT, displayDateLT, 1301 status, reviewDate, andOperator, start, end, obc); 1302 } 1303 1304 /** 1305 * Returns an ordered range of all the web content articles matching the 1306 * parameters, including keyword parameters for article ID, title, 1307 * description, and content, a DDM structure keys (plural) parameter, a DDM 1308 * template keys (plural) parameter, and an AND operator switch. 1309 * 1310 * <p> 1311 * Useful when paginating results. Returns a maximum of <code>end - 1312 * start</code> instances. <code>start</code> and <code>end</code> are not 1313 * primary keys, they are indexes in the result set. Thus, <code>0</code> 1314 * refers to the first result in the set. Setting both <code>start</code> 1315 * and <code>end</code> to {@link 1316 * com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full 1317 * result set. 1318 * </p> 1319 * 1320 * @param companyId the primary key of the web content article's company 1321 * @param groupId the primary key of the group (optionally <code>0</code>) 1322 * @param folderIds the primary keys of the web content article folders 1323 (optionally {@link java.util.Collections#EMPTY_LIST}) 1324 * @param classNameId the primary key of the DDMStructure class if the web 1325 content article is related to a DDM structure, the primary key of 1326 the class name associated with the article, or {@link 1327 JournalArticleConstants#CLASSNAME_ID_DEFAULT} otherwise 1328 * @param articleId the article ID keywords (space separated, optionally 1329 <code>null</code>) 1330 * @param version the web content article's version (optionally 1331 <code>null</code>) 1332 * @param title the title keywords (space separated, optionally 1333 <code>null</code>) 1334 * @param description the description keywords (space separated, optionally 1335 <code>null</code>) 1336 * @param content the content keywords (space separated, optionally 1337 <code>null</code>) 1338 * @param ddmStructureKeys the primary keys of the web content article's 1339 DDM structures, if the article is related to a DDM structure, or 1340 <code>null</code> otherwise 1341 * @param ddmTemplateKeys the primary keys of the web content article's DDM 1342 templates (originally <code>null</code>). If the articles are 1343 related to a DDM structure, the template's structure must match 1344 it. 1345 * @param displayDateGT the date after which a matching web content 1346 article's display date must be after (optionally 1347 <code>null</code>) 1348 * @param displayDateLT the date before which a matching web content 1349 article's display date must be before (optionally 1350 <code>null</code>) 1351 * @param status the web content article's workflow status. For more 1352 information see {@link WorkflowConstants} for constants starting 1353 with the "STATUS_" prefix. 1354 * @param reviewDate the web content article's scheduled review date 1355 (optionally <code>null</code>) 1356 * @param andOperator whether every field must match its value or keywords, 1357 or just one field must match. Company, group, folder IDs, class 1358 name ID, and status must all match their values. 1359 * @param start the lower bound of the range of web content articles to 1360 return 1361 * @param end the upper bound of the range of web content articles to 1362 return (not inclusive) 1363 * @param obc the comparator to order the web content articles 1364 * @return the range of matching web content articles ordered by the 1365 comparator 1366 */ 1367 @Override 1368 public java.util.List<com.liferay.portlet.journal.model.JournalArticle> search( 1369 long companyId, long groupId, java.util.List<java.lang.Long> folderIds, 1370 long classNameId, java.lang.String articleId, java.lang.Double version, 1371 java.lang.String title, java.lang.String description, 1372 java.lang.String content, java.lang.String[] ddmStructureKeys, 1373 java.lang.String[] ddmTemplateKeys, java.util.Date displayDateGT, 1374 java.util.Date displayDateLT, int status, java.util.Date reviewDate, 1375 boolean andOperator, int start, int end, 1376 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.journal.model.JournalArticle> obc) { 1377 return _journalArticleService.search(companyId, groupId, folderIds, 1378 classNameId, articleId, version, title, description, content, 1379 ddmStructureKeys, ddmTemplateKeys, displayDateGT, displayDateLT, 1380 status, reviewDate, andOperator, start, end, obc); 1381 } 1382 1383 /** 1384 * Returns an ordered range of all the web content articles matching the 1385 * parameters, including a keywords parameter for matching with the 1386 * article's ID, title, description, and content, a DDM structure key 1387 * parameter, and a DDM template key parameter. 1388 * 1389 * <p> 1390 * Useful when paginating results. Returns a maximum of <code>end - 1391 * start</code> instances. <code>start</code> and <code>end</code> are not 1392 * primary keys, they are indexes in the result set. Thus, <code>0</code> 1393 * refers to the first result in the set. Setting both <code>start</code> 1394 * and <code>end</code> to {@link 1395 * com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full 1396 * result set. 1397 * </p> 1398 * 1399 * @param companyId the primary key of the web content article's company 1400 * @param groupId the primary key of the group (optionally <code>0</code>) 1401 * @param folderIds the primary keys of the web content article folders 1402 (optionally {@link java.util.Collections#EMPTY_LIST}) 1403 * @param classNameId the primary key of the DDMStructure class if the web 1404 content article is related to a DDM structure, the primary key of 1405 the class name associated with the article, or {@link 1406 JournalArticleConstants#CLASSNAME_ID_DEFAULT} otherwise 1407 * @param keywords the keywords (space separated), which may occur in the 1408 web content article ID, title, description, or content 1409 (optionally <code>null</code>). If the keywords value is not 1410 <code>null</code>, the search uses the OR operator in connecting 1411 query criteria; otherwise it uses the AND operator. 1412 * @param version the web content article's version (optionally 1413 <code>null</code>) 1414 * @param ddmStructureKey the primary key of the web content article's DDM 1415 structure, if the article is related to a DDM structure, or 1416 <code>null</code> otherwise 1417 * @param ddmTemplateKey the primary key of the web content article's DDM 1418 template 1419 * @param displayDateGT the date after which a matching web content 1420 article's display date must be after (optionally 1421 <code>null</code>) 1422 * @param displayDateLT the date before which a matching web content 1423 article's display date must be before (optionally 1424 <code>null</code>) 1425 * @param status the web content article's workflow status. For more 1426 information see {@link WorkflowConstants} for constants starting 1427 with the "STATUS_" prefix. 1428 * @param reviewDate the web content article's scheduled review date 1429 (optionally <code>null</code>) 1430 * @param start the lower bound of the range of web content articles to 1431 return 1432 * @param end the upper bound of the range of web content articles to 1433 return (not inclusive) 1434 * @param obc the comparator to order the web content articles 1435 * @return the range of matching web content articles ordered by the 1436 comparator 1437 */ 1438 @Override 1439 public java.util.List<com.liferay.portlet.journal.model.JournalArticle> search( 1440 long companyId, long groupId, java.util.List<java.lang.Long> folderIds, 1441 long classNameId, java.lang.String keywords, java.lang.Double version, 1442 java.lang.String ddmStructureKey, java.lang.String ddmTemplateKey, 1443 java.util.Date displayDateGT, java.util.Date displayDateLT, int status, 1444 java.util.Date reviewDate, int start, int end, 1445 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.journal.model.JournalArticle> obc) { 1446 return _journalArticleService.search(companyId, groupId, folderIds, 1447 classNameId, keywords, version, ddmStructureKey, ddmTemplateKey, 1448 displayDateGT, displayDateLT, status, reviewDate, start, end, obc); 1449 } 1450 1451 /** 1452 * Returns a range of all the web content articles matching the group, 1453 * creator, creator, and workflow status using the indexer. It is preferable 1454 * to use this method instead of the non-indexed version whenever possible 1455 * for performance reasons. 1456 * 1457 * <p> 1458 * Useful when paginating results. Returns a maximum of <code>end - 1459 * start</code> instances. <code>start</code> and <code>end</code> are not 1460 * primary keys, they are indexes in the result set. Thus, <code>0</code> 1461 * refers to the first result in the set. Setting both <code>start</code> 1462 * and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full 1463 * result set. 1464 * </p> 1465 * 1466 * @param groupId the primary key of the web content article's group 1467 * @param creatorUserId the primary key of the web content article's 1468 creator 1469 * @param status the web content article's workflow status. For more 1470 information see {@link WorkflowConstants} for constants starting 1471 with the "STATUS_" prefix. 1472 * @param start the lower bound of the range of web content articles to 1473 return 1474 * @param end the upper bound of the range of web content articles to 1475 return (not inclusive) 1476 * @return the matching web content articles 1477 * @throws PortalException if a portal exception occurred 1478 */ 1479 @Override 1480 public com.liferay.portal.kernel.search.Hits search(long groupId, 1481 long creatorUserId, int status, int start, int end) 1482 throws com.liferay.portal.kernel.exception.PortalException { 1483 return _journalArticleService.search(groupId, creatorUserId, status, 1484 start, end); 1485 } 1486 1487 /** 1488 * Returns the number of web content articles matching the parameters, 1489 * including keyword parameters for article ID, title, description, and 1490 * content, a DDM structure key parameter, a DDM template key parameter, and 1491 * an AND operator switch. 1492 * 1493 * @param companyId the primary key of the web content article's company 1494 * @param groupId the primary key of the group (optionally <code>0</code>) 1495 * @param folderIds the primary keys of the web content article folders 1496 (optionally {@link java.util.Collections#EMPTY_LIST}) 1497 * @param classNameId the primary key of the DDMStructure class if the web 1498 content article is related to a DDM structure, the primary key of 1499 the class name associated with the article, or {@link 1500 JournalArticleConstants#CLASSNAME_ID_DEFAULT} otherwise 1501 * @param articleId the article ID keywords (space separated, optionally 1502 <code>null</code>) 1503 * @param version the web content article's version (optionally 1504 <code>null</code>) 1505 * @param title the title keywords (space separated, optionally 1506 <code>null</code>) 1507 * @param description the description keywords (space separated, optionally 1508 <code>null</code>) 1509 * @param content the content keywords (space separated, optionally 1510 <code>null</code>) 1511 * @param ddmStructureKey the primary key of the web content article's DDM 1512 structure, if the article is related to a DDM structure, or 1513 <code>null</code> otherwise 1514 * @param ddmTemplateKey the primary key of the web content article's DDM 1515 template 1516 * @param displayDateGT the date after which a matching web content 1517 article's display date must be after (optionally 1518 <code>null</code>) 1519 * @param displayDateLT the date before which a matching web content 1520 article's display date must be before (optionally 1521 <code>null</code>) 1522 * @param status the web content article's workflow status. For more 1523 information see {@link WorkflowConstants} for constants starting 1524 with the "STATUS_" prefix. 1525 * @param reviewDate the web content article's scheduled review date 1526 (optionally <code>null</code>) 1527 * @param andOperator whether every field must match its value or keywords, 1528 or just one field must match. Group, folder IDs, class name ID, 1529 and status must all match their values. 1530 * @return the number of matching web content articles 1531 */ 1532 @Override 1533 public int searchCount(long companyId, long groupId, 1534 java.util.List<java.lang.Long> folderIds, long classNameId, 1535 java.lang.String articleId, java.lang.Double version, 1536 java.lang.String title, java.lang.String description, 1537 java.lang.String content, java.lang.String ddmStructureKey, 1538 java.lang.String ddmTemplateKey, java.util.Date displayDateGT, 1539 java.util.Date displayDateLT, int status, java.util.Date reviewDate, 1540 boolean andOperator) { 1541 return _journalArticleService.searchCount(companyId, groupId, 1542 folderIds, classNameId, articleId, version, title, description, 1543 content, ddmStructureKey, ddmTemplateKey, displayDateGT, 1544 displayDateLT, status, reviewDate, andOperator); 1545 } 1546 1547 /** 1548 * Returns the number of web content articles matching the parameters, 1549 * including keyword parameters for article ID, title, description, and 1550 * content, a DDM structure keys (plural) parameter, a DDM template keys 1551 * (plural) parameter, and an AND operator switch. 1552 * 1553 * @param companyId the primary key of the web content article's company 1554 * @param groupId the primary key of the group (optionally <code>0</code>) 1555 * @param folderIds the primary keys of the web content article folders 1556 (optionally {@link java.util.Collections#EMPTY_LIST}) 1557 * @param classNameId the primary key of the DDMStructure class if the web 1558 content article is related to a DDM structure, the primary key of 1559 the class name associated with the article, or {@link 1560 JournalArticleConstants#CLASSNAME_ID_DEFAULT} otherwise 1561 * @param articleId the article ID keywords (space separated, optionally 1562 <code>null</code>) 1563 * @param version the web content article's version (optionally 1564 <code>null</code>) 1565 * @param title the title keywords (space separated, optionally 1566 <code>null</code>) 1567 * @param description the description keywords (space separated, optionally 1568 <code>null</code>) 1569 * @param content the content keywords (space separated, optionally 1570 <code>null</code>) 1571 * @param ddmStructureKeys the primary keys of the web content article's 1572 DDM structures, if the article is related to a DDM structure, or 1573 <code>null</code> otherwise 1574 * @param ddmTemplateKeys the primary keys of the web content article's DDM 1575 templates (originally <code>null</code>). If the articles are 1576 related to a DDM structure, the template's structure must match 1577 it. 1578 * @param displayDateGT the date after which a matching web content 1579 article's display date must be after (optionally 1580 <code>null</code>) 1581 * @param displayDateLT the date before which a matching web content 1582 article's display date must be before (optionally 1583 <code>null</code>) 1584 * @param status the web content article's workflow status. For more 1585 information see {@link WorkflowConstants} for constants starting 1586 with the "STATUS_" prefix. 1587 * @param reviewDate the web content article's scheduled review date 1588 (optionally <code>null</code>) 1589 * @param andOperator whether every field must match its value or keywords, 1590 or just one field must match. Group, folder IDs, class name ID, 1591 and status must all match their values. 1592 * @return the number of matching web content articles 1593 */ 1594 @Override 1595 public int searchCount(long companyId, long groupId, 1596 java.util.List<java.lang.Long> folderIds, long classNameId, 1597 java.lang.String articleId, java.lang.Double version, 1598 java.lang.String title, java.lang.String description, 1599 java.lang.String content, java.lang.String[] ddmStructureKeys, 1600 java.lang.String[] ddmTemplateKeys, java.util.Date displayDateGT, 1601 java.util.Date displayDateLT, int status, java.util.Date reviewDate, 1602 boolean andOperator) { 1603 return _journalArticleService.searchCount(companyId, groupId, 1604 folderIds, classNameId, articleId, version, title, description, 1605 content, ddmStructureKeys, ddmTemplateKeys, displayDateGT, 1606 displayDateLT, status, reviewDate, andOperator); 1607 } 1608 1609 /** 1610 * Returns the number of web content articles matching the parameters, 1611 * including a keywords parameter for matching with the article's ID, title, 1612 * description, and content, a DDM structure key parameter, and a DDM 1613 * template key parameter. 1614 * 1615 * @param companyId the primary key of the web content article's company 1616 * @param groupId the primary key of the group (optionally <code>0</code>) 1617 * @param folderIds the primary keys of the web content article folders 1618 (optionally {@link java.util.Collections#EMPTY_LIST}) 1619 * @param classNameId the primary key of the DDMStructure class if the web 1620 content article is related to a DDM structure, the primary key of 1621 the class name associated with the article, or {@link 1622 JournalArticleConstants#CLASSNAME_ID_DEFAULT} otherwise 1623 * @param keywords the keywords (space separated), which may occur in the 1624 web content article ID, title, description, or content 1625 (optionally <code>null</code>). If the keywords value is not 1626 <code>null</code>, the search uses the OR operator in connecting 1627 query criteria; otherwise it uses the AND operator. 1628 * @param version the web content article's version (optionally 1629 <code>null</code>) 1630 * @param ddmStructureKey the primary key of the web content article's DDM 1631 structure, if the article is related to a DDM structure, or 1632 <code>null</code> otherwise 1633 * @param ddmTemplateKey the primary key of the web content article's DDM 1634 template 1635 * @param displayDateGT the date after which a matching web content 1636 article's display date must be after (optionally 1637 <code>null</code>) 1638 * @param displayDateLT the date before which a matching web content 1639 article's display date must be before (optionally 1640 <code>null</code>) 1641 * @param status the web content article's workflow status. For more 1642 information see {@link WorkflowConstants} for constants starting 1643 with the "STATUS_" prefix. 1644 * @param reviewDate the web content article's scheduled review date 1645 (optionally <code>null</code>) 1646 * @return the number of matching web content articles 1647 */ 1648 @Override 1649 public int searchCount(long companyId, long groupId, 1650 java.util.List<java.lang.Long> folderIds, long classNameId, 1651 java.lang.String keywords, java.lang.Double version, 1652 java.lang.String ddmStructureKey, java.lang.String ddmTemplateKey, 1653 java.util.Date displayDateGT, java.util.Date displayDateLT, int status, 1654 java.util.Date reviewDate) { 1655 return _journalArticleService.searchCount(companyId, groupId, 1656 folderIds, classNameId, keywords, version, ddmStructureKey, 1657 ddmTemplateKey, displayDateGT, displayDateLT, status, reviewDate); 1658 } 1659 1660 /** 1661 * Sets the Spring bean ID for this bean. 1662 * 1663 * @param beanIdentifier the Spring bean ID for this bean 1664 */ 1665 @Override 1666 public void setBeanIdentifier(java.lang.String beanIdentifier) { 1667 _journalArticleService.setBeanIdentifier(beanIdentifier); 1668 } 1669 1670 /** 1671 * Subscribes the user to changes in elements that belong to the web content 1672 * article's DDM structure. 1673 * 1674 * @param groupId the primary key of the folder's group 1675 * @param userId the primary key of the user to be subscribed 1676 * @param ddmStructureId the primary key of the structure to subscribe to 1677 * @throws PortalException if a matching user or group could not be found 1678 */ 1679 @Override 1680 public void subscribeStructure(long groupId, long userId, 1681 long ddmStructureId) 1682 throws com.liferay.portal.kernel.exception.PortalException { 1683 _journalArticleService.subscribeStructure(groupId, userId, 1684 ddmStructureId); 1685 } 1686 1687 /** 1688 * Unsubscribes the user from changes in elements that belong to the web 1689 * content article's DDM structure. 1690 * 1691 * @param groupId the primary key of the folder's group 1692 * @param userId the primary key of the user to be subscribed 1693 * @param ddmStructureId the primary key of the structure to subscribe to 1694 * @throws PortalException if a matching user or subscription could not be 1695 found 1696 */ 1697 @Override 1698 public void unsubscribeStructure(long groupId, long userId, 1699 long ddmStructureId) 1700 throws com.liferay.portal.kernel.exception.PortalException { 1701 _journalArticleService.unsubscribeStructure(groupId, userId, 1702 ddmStructureId); 1703 } 1704 1705 /** 1706 * Updates the web content article matching the version, replacing its 1707 * folder and content. 1708 * 1709 * @param groupId the primary key of the web content article's group 1710 * @param folderId the primary key of the web content article folder 1711 * @param articleId the primary key of the web content article 1712 * @param version the web content article's version 1713 * @param content the HTML content wrapped in XML. For more information, 1714 see the content example in the class description for {@link 1715 JournalArticleLocalServiceImpl}. 1716 * @param serviceContext the service context to be applied. Can set the 1717 modification date, expando bridge attributes, asset category IDs, 1718 asset tag names, asset link entry IDs, workflow actions, the and 1719 "urlTitle" attributes, and can set whether to add the default 1720 command update for the web content article. With respect to 1721 social activities, by setting the service context's command to 1722 {@link com.liferay.portal.kernel.util.Constants#UPDATE}, the 1723 invocation is considered a web content update activity; otherwise 1724 it is considered a web content add activity. 1725 * @return the updated web content article 1726 * @throws PortalException if the user did not have permission to update the 1727 web content article, if a user with the primary key or a matching 1728 web content article could not be found, or if a portal exception 1729 occurred 1730 */ 1731 @Override 1732 public com.liferay.portlet.journal.model.JournalArticle updateArticle( 1733 long groupId, long folderId, java.lang.String articleId, 1734 double version, java.lang.String content, 1735 com.liferay.portal.service.ServiceContext serviceContext) 1736 throws com.liferay.portal.kernel.exception.PortalException { 1737 return _journalArticleService.updateArticle(groupId, folderId, 1738 articleId, version, content, serviceContext); 1739 } 1740 1741 /** 1742 * Updates the web content article with additional parameters. 1743 * 1744 * @param groupId the primary key of the web content article's group 1745 * @param folderId the primary key of the web content article folder 1746 * @param articleId the primary key of the web content article 1747 * @param version the web content article's version 1748 * @param titleMap the web content article's locales and localized titles 1749 * @param descriptionMap the web content article's locales and localized 1750 descriptions 1751 * @param content the HTML content wrapped in XML. For more information, 1752 see the content example in the class description for {@link 1753 JournalArticleLocalServiceImpl}. 1754 * @param ddmStructureKey the primary key of the web content article's DDM 1755 structure, if the article is related to a DDM structure, or 1756 <code>null</code> otherwise 1757 * @param ddmTemplateKey the primary key of the web content article's DDM 1758 template 1759 * @param layoutUuid the unique string identifying the web content 1760 article's display page 1761 * @param displayDateMonth the month the web content article is set to 1762 display 1763 * @param displayDateDay the calendar day the web content article is set to 1764 display 1765 * @param displayDateYear the year the web content article is set to 1766 display 1767 * @param displayDateHour the hour the web content article is set to 1768 display 1769 * @param displayDateMinute the minute the web content article is set to 1770 display 1771 * @param expirationDateMonth the month the web content article is set to 1772 expire 1773 * @param expirationDateDay the calendar day the web content article is set 1774 to expire 1775 * @param expirationDateYear the year the web content article is set to 1776 expire 1777 * @param expirationDateHour the hour the web content article is set to 1778 expire 1779 * @param expirationDateMinute the minute the web content article is set to 1780 expire 1781 * @param neverExpire whether the web content article is not set to auto 1782 expire 1783 * @param reviewDateMonth the month the web content article is set for 1784 review 1785 * @param reviewDateDay the calendar day the web content article is set for 1786 review 1787 * @param reviewDateYear the year the web content article is set for review 1788 * @param reviewDateHour the hour the web content article is set for review 1789 * @param reviewDateMinute the minute the web content article is set for 1790 review 1791 * @param neverReview whether the web content article is not set for review 1792 * @param indexable whether the web content is searchable 1793 * @param smallImage whether to update web content article's a small image. 1794 A file must be passed in as <code>smallImageFile</code> value, 1795 otherwise the current small image is deleted. 1796 * @param smallImageURL the web content article's small image URL 1797 (optionally <code>null</code>) 1798 * @param smallFile the web content article's new small image file 1799 (optionally <code>null</code>). Must pass in 1800 <code>smallImage</code> value of <code>true</code> to replace the 1801 article's small image file. 1802 * @param images the web content's images (optionally <code>null</code>) 1803 * @param articleURL the web content article's accessible URL (optionally 1804 <code>null</code>) 1805 * @param serviceContext the service context to be applied. Can set the 1806 modification date, expando bridge attributes, asset category IDs, 1807 asset tag names, asset link entry IDs, workflow actions, the and 1808 "urlTitle" attributes, and can set whether to add the default 1809 command update for the web content article. With respect to 1810 social activities, by setting the service context's command to 1811 {@link com.liferay.portal.kernel.util.Constants#UPDATE}, the 1812 invocation is considered a web content update activity; otherwise 1813 it is considered a web content add activity. 1814 * @return the updated web content article 1815 * @throws PortalException if the user did not have permission to update the 1816 web content article, if a user with the primary key or a matching 1817 web content article could not be found, or if a portal exception 1818 occurred 1819 */ 1820 @Override 1821 public com.liferay.portlet.journal.model.JournalArticle updateArticle( 1822 long groupId, long folderId, java.lang.String articleId, 1823 double version, 1824 java.util.Map<java.util.Locale, java.lang.String> titleMap, 1825 java.util.Map<java.util.Locale, java.lang.String> descriptionMap, 1826 java.lang.String content, java.lang.String ddmStructureKey, 1827 java.lang.String ddmTemplateKey, java.lang.String layoutUuid, 1828 int displayDateMonth, int displayDateDay, int displayDateYear, 1829 int displayDateHour, int displayDateMinute, int expirationDateMonth, 1830 int expirationDateDay, int expirationDateYear, int expirationDateHour, 1831 int expirationDateMinute, boolean neverExpire, int reviewDateMonth, 1832 int reviewDateDay, int reviewDateYear, int reviewDateHour, 1833 int reviewDateMinute, boolean neverReview, boolean indexable, 1834 boolean smallImage, java.lang.String smallImageURL, 1835 java.io.File smallFile, java.util.Map<java.lang.String, byte[]> images, 1836 java.lang.String articleURL, 1837 com.liferay.portal.service.ServiceContext serviceContext) 1838 throws com.liferay.portal.kernel.exception.PortalException { 1839 return _journalArticleService.updateArticle(groupId, folderId, 1840 articleId, version, titleMap, descriptionMap, content, 1841 ddmStructureKey, ddmTemplateKey, layoutUuid, displayDateMonth, 1842 displayDateDay, displayDateYear, displayDateHour, 1843 displayDateMinute, expirationDateMonth, expirationDateDay, 1844 expirationDateYear, expirationDateHour, expirationDateMinute, 1845 neverExpire, reviewDateMonth, reviewDateDay, reviewDateYear, 1846 reviewDateHour, reviewDateMinute, neverReview, indexable, 1847 smallImage, smallImageURL, smallFile, images, articleURL, 1848 serviceContext); 1849 } 1850 1851 /** 1852 * Updates the web content article matching the version, replacing its 1853 * folder, title, description, content, and layout UUID. 1854 * 1855 * @param userId the primary key of the user updating the web content 1856 article 1857 * @param groupId the primary key of the web content article's group 1858 * @param folderId the primary key of the web content article folder 1859 * @param articleId the primary key of the web content article 1860 * @param version the web content article's version 1861 * @param titleMap the web content article's locales and localized titles 1862 * @param descriptionMap the web content article's locales and localized 1863 descriptions 1864 * @param content the HTML content wrapped in XML. For more information, 1865 see the content example in the class description for {@link 1866 JournalArticleLocalServiceImpl}. 1867 * @param layoutUuid the unique string identifying the web content 1868 article's display page 1869 * @param serviceContext the service context to be applied. Can set the 1870 modification date, expando bridge attributes, asset category IDs, 1871 asset tag names, asset link entry IDs, workflow actions, the and 1872 "urlTitle" attributes, and can set whether to add the default 1873 command update for the web content article. With respect to 1874 social activities, by setting the service context's command to 1875 {@link com.liferay.portal.kernel.util.Constants#UPDATE}, the 1876 invocation is considered a web content update activity; otherwise 1877 it is considered a web content add activity. 1878 * @return the updated web content article 1879 * @throws PortalException if a user with the primary key or a matching web 1880 content article could not be found, or if a portal exception 1881 occurred 1882 */ 1883 @Override 1884 public com.liferay.portlet.journal.model.JournalArticle updateArticle( 1885 long userId, long groupId, long folderId, java.lang.String articleId, 1886 double version, 1887 java.util.Map<java.util.Locale, java.lang.String> titleMap, 1888 java.util.Map<java.util.Locale, java.lang.String> descriptionMap, 1889 java.lang.String content, java.lang.String layoutUuid, 1890 com.liferay.portal.service.ServiceContext serviceContext) 1891 throws com.liferay.portal.kernel.exception.PortalException { 1892 return _journalArticleService.updateArticle(userId, groupId, folderId, 1893 articleId, version, titleMap, descriptionMap, content, layoutUuid, 1894 serviceContext); 1895 } 1896 1897 /** 1898 * @deprecated As of 6.2.0, replaced by {@link 1899 #updateArticleTranslation(long, String, double, Locale, 1900 String, String, String, Map, ServiceContext)} 1901 */ 1902 @Deprecated 1903 @Override 1904 public com.liferay.portlet.journal.model.JournalArticle updateArticleTranslation( 1905 long groupId, java.lang.String articleId, double version, 1906 java.util.Locale locale, java.lang.String title, 1907 java.lang.String description, java.lang.String content, 1908 java.util.Map<java.lang.String, byte[]> images) 1909 throws com.liferay.portal.kernel.exception.PortalException { 1910 return _journalArticleService.updateArticleTranslation(groupId, 1911 articleId, version, locale, title, description, content, images); 1912 } 1913 1914 /** 1915 * Updates the translation of the web content article. 1916 * 1917 * @param groupId the primary key of the web content article's group 1918 * @param articleId the primary key of the web content article 1919 * @param version the web content article's version 1920 * @param locale the locale of the web content article's display template 1921 * @param title the translated web content article title 1922 * @param description the translated web content article description 1923 * @param content the HTML content wrapped in XML. For more information, 1924 see the content example in the class description for {@link 1925 JournalArticleLocalServiceImpl}. 1926 * @param images the web content's images 1927 * @param serviceContext the service context to be applied. Can set the 1928 modification date and "urlTitle" attribute for the web content 1929 article. 1930 * @return the updated web content article 1931 * @throws PortalException if the user did not have permission to update the 1932 web content article, if a user with the primary key or a matching 1933 web content article could not be found, or if a portal exception 1934 occurred 1935 */ 1936 @Override 1937 public com.liferay.portlet.journal.model.JournalArticle updateArticleTranslation( 1938 long groupId, java.lang.String articleId, double version, 1939 java.util.Locale locale, java.lang.String title, 1940 java.lang.String description, java.lang.String content, 1941 java.util.Map<java.lang.String, byte[]> images, 1942 com.liferay.portal.service.ServiceContext serviceContext) 1943 throws com.liferay.portal.kernel.exception.PortalException { 1944 return _journalArticleService.updateArticleTranslation(groupId, 1945 articleId, version, locale, title, description, content, images, 1946 serviceContext); 1947 } 1948 1949 /** 1950 * Updates the web content article matching the group, article ID, and 1951 * version, replacing its content. 1952 * 1953 * @param groupId the primary key of the web content article's group 1954 * @param articleId the primary key of the web content article 1955 * @param version the web content article's version 1956 * @param content the HTML content wrapped in XML. For more information, 1957 see the content example in the class description for {@link 1958 JournalArticleLocalServiceImpl}. 1959 * @return the updated web content article 1960 * @throws PortalException if the user did not have permission to update the 1961 web content article or if a matching web content article could 1962 not be found 1963 */ 1964 @Override 1965 public com.liferay.portlet.journal.model.JournalArticle updateContent( 1966 long groupId, java.lang.String articleId, double version, 1967 java.lang.String content) 1968 throws com.liferay.portal.kernel.exception.PortalException { 1969 return _journalArticleService.updateContent(groupId, articleId, 1970 version, content); 1971 } 1972 1973 /** 1974 * Updates the workflow status of the web content article matching the 1975 * group, article ID, and version. 1976 * 1977 * @param groupId the primary key of the web content article's group 1978 * @param articleId the primary key of the web content article 1979 * @param version the web content article's version 1980 * @param status the web content article's workflow status. For more 1981 information see {@link WorkflowConstants} for constants starting 1982 with the "STATUS_" prefix. 1983 * @param articleURL the web content article's accessible URL 1984 * @param serviceContext the service context to be applied. Can set the 1985 modification date, portlet preferences, and can set whether to 1986 add the default command update for the web content article. 1987 * @return the updated web content article 1988 * @throws PortalException if the user did not have permission to update the 1989 web content article, if a matching web content article could not 1990 be found, or if a portal exception occurred 1991 */ 1992 @Override 1993 public com.liferay.portlet.journal.model.JournalArticle updateStatus( 1994 long groupId, java.lang.String articleId, double version, int status, 1995 java.lang.String articleURL, 1996 com.liferay.portal.service.ServiceContext serviceContext) 1997 throws com.liferay.portal.kernel.exception.PortalException { 1998 return _journalArticleService.updateStatus(groupId, articleId, version, 1999 status, articleURL, serviceContext); 2000 } 2001 2002 /** 2003 * @deprecated As of 6.1.0, replaced by {@link #getWrappedService} 2004 */ 2005 @Deprecated 2006 public JournalArticleService getWrappedJournalArticleService() { 2007 return _journalArticleService; 2008 } 2009 2010 /** 2011 * @deprecated As of 6.1.0, replaced by {@link #setWrappedService} 2012 */ 2013 @Deprecated 2014 public void setWrappedJournalArticleService( 2015 JournalArticleService journalArticleService) { 2016 _journalArticleService = journalArticleService; 2017 } 2018 2019 @Override 2020 public JournalArticleService getWrappedService() { 2021 return _journalArticleService; 2022 } 2023 2024 @Override 2025 public void setWrappedService(JournalArticleService journalArticleService) { 2026 _journalArticleService = journalArticleService; 2027 } 2028 2029 private JournalArticleService _journalArticleService; 2030 }