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