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