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