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