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 /** 835 * Deletes the layout's association with the web content articles for the 836 * group. 837 * 838 * @param groupId the primary key of the web content article's group 839 * @param layoutUuid the unique string identifying the web content 840 article's display page 841 * @throws SystemException if a system exception occurred 842 */ 843 @Override 844 public void deleteLayoutArticleReferences(long groupId, 845 java.lang.String layoutUuid) 846 throws com.liferay.portal.kernel.exception.SystemException { 847 _journalArticleLocalService.deleteLayoutArticleReferences(groupId, 848 layoutUuid); 849 } 850 851 /** 852 * Expires the web content article matching the group, article ID, and 853 * version. 854 * 855 * @param userId the primary key of the user updating the web content 856 article 857 * @param groupId the primary key of the web content article's group 858 * @param articleId the primary key of the web content article 859 * @param version the web content article's version 860 * @param articleURL the web content article's accessible URL 861 * @param serviceContext the service context to be applied. Can set the 862 modification date, status date, portlet preferences, and can set 863 whether to add the default command update for the web content 864 article. With respect to social activities, by setting the 865 service context's command to {@link 866 com.liferay.portal.kernel.util.Constants#UPDATE}, the invocation 867 is considered a web content update activity; otherwise it is 868 considered a web content add activity. 869 * @return the web content article 870 * @throws PortalException if a matching web content article could not be 871 found or if a portal exception occurred 872 * @throws SystemException if a system exception occurred 873 */ 874 @Override 875 public com.liferay.portlet.journal.model.JournalArticle expireArticle( 876 long userId, long groupId, java.lang.String articleId, double version, 877 java.lang.String articleURL, 878 com.liferay.portal.service.ServiceContext serviceContext) 879 throws com.liferay.portal.kernel.exception.PortalException, 880 com.liferay.portal.kernel.exception.SystemException { 881 return _journalArticleLocalService.expireArticle(userId, groupId, 882 articleId, version, articleURL, serviceContext); 883 } 884 885 /** 886 * Expires the web content article matching the group and article ID, 887 * expiring all of its versions if the 888 * <code>journal.article.expire.all.versions</code> portal property is 889 * <code>true</code>, otherwise expiring only its latest approved version. 890 * 891 * @param userId the primary key of the user updating the web content 892 article 893 * @param groupId the primary key of the web content article's group 894 * @param articleId the primary key of the web content article 895 * @param articleURL the web content article's accessible URL 896 * @param serviceContext the service context to be applied. Can set the 897 modification date, status date, portlet preferences, and can set 898 whether to add the default command update for the web content 899 article. With respect to social activities, by setting the 900 service context's command to {@link 901 com.liferay.portal.kernel.util.Constants#UPDATE}, the invocation 902 is considered a web content update activity; otherwise it is 903 considered a web content add activity. 904 * @throws PortalException if a matching web content article could not be 905 found or if a portal exception occurred 906 * @throws SystemException if a system exception occurred 907 */ 908 @Override 909 public void expireArticle(long userId, long groupId, 910 java.lang.String articleId, java.lang.String articleURL, 911 com.liferay.portal.service.ServiceContext serviceContext) 912 throws com.liferay.portal.kernel.exception.PortalException, 913 com.liferay.portal.kernel.exception.SystemException { 914 _journalArticleLocalService.expireArticle(userId, groupId, articleId, 915 articleURL, serviceContext); 916 } 917 918 @Override 919 public com.liferay.portlet.journal.model.JournalArticle fetchArticle( 920 long groupId, java.lang.String articleId, double version) 921 throws com.liferay.portal.kernel.exception.SystemException { 922 return _journalArticleLocalService.fetchArticle(groupId, articleId, 923 version); 924 } 925 926 @Override 927 public com.liferay.portlet.journal.model.JournalArticle fetchLatestArticle( 928 long resourcePrimKey, int[] statuses) 929 throws com.liferay.portal.kernel.exception.SystemException { 930 return _journalArticleLocalService.fetchLatestArticle(resourcePrimKey, 931 statuses); 932 } 933 934 @Override 935 public com.liferay.portlet.journal.model.JournalArticle fetchLatestArticle( 936 long resourcePrimKey, int status, boolean preferApproved) 937 throws com.liferay.portal.kernel.exception.SystemException { 938 return _journalArticleLocalService.fetchLatestArticle(resourcePrimKey, 939 status, preferApproved); 940 } 941 942 @Override 943 public com.liferay.portlet.journal.model.JournalArticle fetchLatestArticle( 944 long groupId, java.lang.String articleId, int status) 945 throws com.liferay.portal.kernel.exception.SystemException { 946 return _journalArticleLocalService.fetchLatestArticle(groupId, 947 articleId, status); 948 } 949 950 @Override 951 public com.liferay.portlet.journal.model.JournalArticle fetchLatestIndexableArticle( 952 long resourcePrimKey) 953 throws com.liferay.portal.kernel.exception.SystemException { 954 return _journalArticleLocalService.fetchLatestIndexableArticle(resourcePrimKey); 955 } 956 957 /** 958 * Returns the web content article with the ID. 959 * 960 * @param id the primary key of the web content article 961 * @return the web content article with the ID 962 * @throws PortalException if a matching web content article could not be 963 found 964 * @throws SystemException if a system exception occurred 965 */ 966 @Override 967 public com.liferay.portlet.journal.model.JournalArticle getArticle(long id) 968 throws com.liferay.portal.kernel.exception.PortalException, 969 com.liferay.portal.kernel.exception.SystemException { 970 return _journalArticleLocalService.getArticle(id); 971 } 972 973 /** 974 * Returns the latest approved web content article, or the latest unapproved 975 * article if none are approved. Both approved and unapproved articles must 976 * match the group and article ID. 977 * 978 * @param groupId the primary key of the web content article's group 979 * @param articleId the primary key of the web content article 980 * @return the matching web content article 981 * @throws PortalException if a matching web content article could not be 982 found 983 * @throws SystemException if a system exception occurred 984 */ 985 @Override 986 public com.liferay.portlet.journal.model.JournalArticle getArticle( 987 long groupId, java.lang.String articleId) 988 throws com.liferay.portal.kernel.exception.PortalException, 989 com.liferay.portal.kernel.exception.SystemException { 990 return _journalArticleLocalService.getArticle(groupId, articleId); 991 } 992 993 /** 994 * Returns the web content article matching the group, article ID, and 995 * version. 996 * 997 * @param groupId the primary key of the web content article's group 998 * @param articleId the primary key of the web content article 999 * @param version the web content article's version 1000 * @return the matching web content article 1001 * @throws PortalException if a matching web content article could not be 1002 found 1003 * @throws SystemException if a system exception occurred 1004 */ 1005 @Override 1006 public com.liferay.portlet.journal.model.JournalArticle getArticle( 1007 long groupId, java.lang.String articleId, double version) 1008 throws com.liferay.portal.kernel.exception.PortalException, 1009 com.liferay.portal.kernel.exception.SystemException { 1010 return _journalArticleLocalService.getArticle(groupId, articleId, 1011 version); 1012 } 1013 1014 /** 1015 * Returns the web content article matching the group, class name, and class 1016 * PK. 1017 * 1018 * @param groupId the primary key of the web content article's group 1019 * @param className the DDMStructure class name if the web content article 1020 is related to a DDM structure, the primary key of the class name 1021 associated with the article, or {@link 1022 JournalArticleConstants#CLASSNAME_ID_DEFAULT} otherwise 1023 * @param classPK the primary key of the DDM structure, if the the 1024 DDMStructure class name is given as the <code>className</code> 1025 parameter, the primary key of the class associated with the web 1026 content article, or <code>0</code> otherwise 1027 * @return the matching web content article 1028 * @throws PortalException if a matching web content article could not be 1029 found 1030 * @throws SystemException if a system exception occurred 1031 */ 1032 @Override 1033 public com.liferay.portlet.journal.model.JournalArticle getArticle( 1034 long groupId, java.lang.String className, long classPK) 1035 throws com.liferay.portal.kernel.exception.PortalException, 1036 com.liferay.portal.kernel.exception.SystemException { 1037 return _journalArticleLocalService.getArticle(groupId, className, 1038 classPK); 1039 } 1040 1041 /** 1042 * Returns the latest web content article that is approved, or the latest 1043 * unapproved article if none are approved. Both approved and unapproved 1044 * articles must match the group and URL title. 1045 * 1046 * @param groupId the primary key of the web content article's group 1047 * @param urlTitle the web content article's accessible URL title 1048 * @return the matching web content article 1049 * @throws PortalException if a portal exception occurred 1050 * @throws SystemException if a system exception occurred 1051 */ 1052 @Override 1053 public com.liferay.portlet.journal.model.JournalArticle getArticleByUrlTitle( 1054 long groupId, java.lang.String urlTitle) 1055 throws com.liferay.portal.kernel.exception.PortalException, 1056 com.liferay.portal.kernel.exception.SystemException { 1057 return _journalArticleLocalService.getArticleByUrlTitle(groupId, 1058 urlTitle); 1059 } 1060 1061 /** 1062 * Returns the web content associated with the web content article and DDM 1063 * template. 1064 * 1065 * @param article the web content article 1066 * @param ddmTemplateKey the primary key of the web content article's DDM 1067 template (optionally <code>null</code>). If the article is 1068 related to a DDM structure, the template's structure must match 1069 it. 1070 * @param viewMode the mode in which the web content is being viewed 1071 * @param languageId the primary key of the language translation to get 1072 * @param themeDisplay the theme display 1073 * @return the web content associated with the DDM template 1074 * @throws PortalException if a matching DDM template could not be found or 1075 if a portal exception occurred 1076 * @throws SystemException if a system exception occurred 1077 */ 1078 @Override 1079 public java.lang.String getArticleContent( 1080 com.liferay.portlet.journal.model.JournalArticle article, 1081 java.lang.String ddmTemplateKey, java.lang.String viewMode, 1082 java.lang.String languageId, 1083 com.liferay.portal.theme.ThemeDisplay themeDisplay) 1084 throws com.liferay.portal.kernel.exception.PortalException, 1085 com.liferay.portal.kernel.exception.SystemException { 1086 return _journalArticleLocalService.getArticleContent(article, 1087 ddmTemplateKey, viewMode, languageId, themeDisplay); 1088 } 1089 1090 /** 1091 * Returns the web content matching the group, article ID, and version, and 1092 * associated with the DDM template. 1093 * 1094 * @param groupId the primary key of the web content article's group 1095 * @param articleId the primary key of the web content article 1096 * @param version the web content article's version 1097 * @param viewMode the mode in which the web content is being viewed 1098 * @param ddmTemplateKey the primary key of the web content article's DDM 1099 template (optionally <code>null</code>). If the article is 1100 related to a DDM structure, the template's structure must match 1101 it. 1102 * @param languageId the primary key of the language translation to get 1103 * @param themeDisplay the theme display 1104 * @return the matching web content 1105 * @throws PortalException if a matching web content article or DDM template 1106 could not be found, or if a portal exception occurred 1107 * @throws SystemException if a system exception occurred 1108 */ 1109 @Override 1110 public java.lang.String getArticleContent(long groupId, 1111 java.lang.String articleId, double version, java.lang.String viewMode, 1112 java.lang.String ddmTemplateKey, java.lang.String languageId, 1113 com.liferay.portal.theme.ThemeDisplay themeDisplay) 1114 throws com.liferay.portal.kernel.exception.PortalException, 1115 com.liferay.portal.kernel.exception.SystemException { 1116 return _journalArticleLocalService.getArticleContent(groupId, 1117 articleId, version, viewMode, ddmTemplateKey, languageId, 1118 themeDisplay); 1119 } 1120 1121 /** 1122 * Returns the web content matching the group, article ID, and version. 1123 * 1124 * @param groupId the primary key of the web content article's group 1125 * @param articleId the primary key of the web content article 1126 * @param version the web content article's version 1127 * @param viewMode the mode in which the web content is being viewed 1128 * @param languageId the primary key of the language translation to get 1129 * @param themeDisplay the theme display 1130 * @return the matching web content 1131 * @throws PortalException if a matching web content article or DDM template 1132 could not be found, or if a portal exception occurred 1133 * @throws SystemException if a system exception occurred 1134 */ 1135 @Override 1136 public java.lang.String getArticleContent(long groupId, 1137 java.lang.String articleId, double version, java.lang.String viewMode, 1138 java.lang.String languageId, 1139 com.liferay.portal.theme.ThemeDisplay themeDisplay) 1140 throws com.liferay.portal.kernel.exception.PortalException, 1141 com.liferay.portal.kernel.exception.SystemException { 1142 return _journalArticleLocalService.getArticleContent(groupId, 1143 articleId, version, viewMode, languageId, themeDisplay); 1144 } 1145 1146 /** 1147 * Returns the latest web content matching the group and article ID, and 1148 * associated with DDM template key. 1149 * 1150 * @param groupId the primary key of the web content article's group 1151 * @param articleId the primary key of the web content article 1152 * @param viewMode the mode in which the web content is being viewed 1153 * @param ddmTemplateKey the primary key of the web content article's DDM 1154 template (optionally <code>null</code>). If the article is 1155 related to a DDM structure, the template's structure must match 1156 it. 1157 * @param languageId the primary key of the language translation to get 1158 * @param themeDisplay the theme display 1159 * @return the matching web content 1160 * @throws PortalException if a matching web content article or DDM template 1161 could not be found, or if a portal exception occurred 1162 * @throws SystemException if a system exception occurred 1163 */ 1164 @Override 1165 public java.lang.String getArticleContent(long groupId, 1166 java.lang.String articleId, java.lang.String viewMode, 1167 java.lang.String ddmTemplateKey, java.lang.String languageId, 1168 com.liferay.portal.theme.ThemeDisplay themeDisplay) 1169 throws com.liferay.portal.kernel.exception.PortalException, 1170 com.liferay.portal.kernel.exception.SystemException { 1171 return _journalArticleLocalService.getArticleContent(groupId, 1172 articleId, viewMode, ddmTemplateKey, languageId, themeDisplay); 1173 } 1174 1175 /** 1176 * Returns the latest web content matching the group and article ID. 1177 * 1178 * @param groupId the primary key of the web content article's group 1179 * @param articleId the primary key of the web content article 1180 * @param viewMode the mode in which the web content is being viewed 1181 * @param languageId the primary key of the language translation to get 1182 * @param themeDisplay the theme display 1183 * @return the matching web content 1184 * @throws PortalException if a matching web content article or DDM template 1185 could not be found, or if a portal exception occurred 1186 * @throws SystemException if a system exception occurred 1187 */ 1188 @Override 1189 public java.lang.String getArticleContent(long groupId, 1190 java.lang.String articleId, java.lang.String viewMode, 1191 java.lang.String languageId, 1192 com.liferay.portal.theme.ThemeDisplay themeDisplay) 1193 throws com.liferay.portal.kernel.exception.PortalException, 1194 com.liferay.portal.kernel.exception.SystemException { 1195 return _journalArticleLocalService.getArticleContent(groupId, 1196 articleId, viewMode, languageId, themeDisplay); 1197 } 1198 1199 /** 1200 * Returns a web content article display for the specified page of the 1201 * latest version of the web content article, optionally based on the DDM 1202 * template if the article is template driven. If the article is template 1203 * driven, web content transformation tokens are added from the theme 1204 * display (if not <code>null</code>) or the XML request otherwise. 1205 * 1206 * @param article the web content article 1207 * @param ddmTemplateKey the primary key of the web content article's DDM 1208 template (optionally <code>null</code>). If the article is 1209 related to a DDM structure, the template's structure must match 1210 it. 1211 * @param viewMode the mode in which the web content is being viewed 1212 * @param languageId the primary key of the language translation to get 1213 * @param page the web content's page number. Page numbers start at 1214 <code>1</code>. 1215 * @param xmlRequest the request that serializes the web content into a 1216 hierarchical hash map (optionally <code>null</code>) 1217 * @param themeDisplay the theme display 1218 * @return the web content article display 1219 * @throws PortalException if a matching DDM template could not be found or 1220 if a portal exception occurred 1221 * @throws SystemException if a system exception occurred 1222 */ 1223 @Override 1224 public com.liferay.portlet.journal.model.JournalArticleDisplay getArticleDisplay( 1225 com.liferay.portlet.journal.model.JournalArticle article, 1226 java.lang.String ddmTemplateKey, java.lang.String viewMode, 1227 java.lang.String languageId, int page, java.lang.String xmlRequest, 1228 com.liferay.portal.theme.ThemeDisplay themeDisplay) 1229 throws com.liferay.portal.kernel.exception.PortalException, 1230 com.liferay.portal.kernel.exception.SystemException { 1231 return _journalArticleLocalService.getArticleDisplay(article, 1232 ddmTemplateKey, viewMode, languageId, page, xmlRequest, themeDisplay); 1233 } 1234 1235 /** 1236 * Returns a web content article display for the first page of the specified 1237 * version of the web content article, optionally based on the DDM template 1238 * if the article is template driven. If the article is template driven, web 1239 * content transformation tokens are added from the theme display (if not 1240 * <code>null</code>) or the XML request otherwise. 1241 * 1242 * @param groupId the primary key of the web content article's group 1243 * @param articleId the primary key of the web content article 1244 * @param version the web content article's version 1245 * @param ddmTemplateKey the primary key of the web content article's DDM 1246 template (optionally <code>null</code>). If the article is 1247 related to a DDM structure, the template's structure must match 1248 it. 1249 * @param viewMode the mode in which the web content is being viewed 1250 * @param languageId the primary key of the language translation to get 1251 * @param page the web content's page number 1252 * @param xmlRequest the request that serializes the web content into a 1253 hierarchical hash map 1254 * @param themeDisplay the theme display 1255 * @return the web content article display, or <code>null</code> if the 1256 article has expired or if article's display date/time is after 1257 the current date/time 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 com.liferay.portlet.journal.model.JournalArticleDisplay getArticleDisplay( 1264 long groupId, java.lang.String articleId, double version, 1265 java.lang.String ddmTemplateKey, java.lang.String viewMode, 1266 java.lang.String languageId, int page, java.lang.String xmlRequest, 1267 com.liferay.portal.theme.ThemeDisplay themeDisplay) 1268 throws com.liferay.portal.kernel.exception.PortalException, 1269 com.liferay.portal.kernel.exception.SystemException { 1270 return _journalArticleLocalService.getArticleDisplay(groupId, 1271 articleId, version, ddmTemplateKey, viewMode, languageId, page, 1272 xmlRequest, themeDisplay); 1273 } 1274 1275 /** 1276 * Returns a web content article display for the first page of the specified 1277 * version of the web content article matching the group and article ID, 1278 * optionally based on the DDM template if the article is template driven. 1279 * If the article is template driven, web content transformation tokens are 1280 * added from the theme display (if not <code>null</code>). 1281 * 1282 * @param groupId the primary key of the web content article's group 1283 * @param articleId the primary key of the web content article 1284 * @param version the web content article's version 1285 * @param ddmTemplateKey the primary key of the web content article's DDM 1286 template (optionally <code>null</code>). If the article is 1287 related to a DDM structure, the template's structure must match 1288 it. 1289 * @param viewMode the mode in which the web content is being viewed 1290 * @param languageId the primary key of the language translation to get 1291 * @param themeDisplay the theme display 1292 * @return the web content article display, or <code>null</code> if the 1293 article has expired or if article's display date/time is after 1294 the current date/time 1295 * @throws PortalException if a matching web content article or DDM template 1296 could not be found, or if a portal exception occurred 1297 * @throws SystemException if a system exception occurred 1298 */ 1299 @Override 1300 public com.liferay.portlet.journal.model.JournalArticleDisplay getArticleDisplay( 1301 long groupId, java.lang.String articleId, double version, 1302 java.lang.String ddmTemplateKey, java.lang.String viewMode, 1303 java.lang.String languageId, 1304 com.liferay.portal.theme.ThemeDisplay themeDisplay) 1305 throws com.liferay.portal.kernel.exception.PortalException, 1306 com.liferay.portal.kernel.exception.SystemException { 1307 return _journalArticleLocalService.getArticleDisplay(groupId, 1308 articleId, version, ddmTemplateKey, viewMode, languageId, 1309 themeDisplay); 1310 } 1311 1312 /** 1313 * Returns a web content article display for the first page of the latest 1314 * version of the web content article matching the group and article ID. If 1315 * the article is template driven, web content transformation tokens are 1316 * added from the theme display (if not <code>null</code>) or the XML 1317 * request otherwise. 1318 * 1319 * @param groupId the primary key of the web content article's group 1320 * @param articleId the primary key of the web content article 1321 * @param viewMode the mode in which the web content is being viewed 1322 * @param languageId the primary key of the language translation to get 1323 * @param page the web content's page number 1324 * @param xmlRequest the request that serializes the web content into a 1325 hierarchical hash map 1326 * @param themeDisplay the theme display 1327 * @return the web content article display, or <code>null</code> if the 1328 article has expired or if article's display date/time is after 1329 the current date/time 1330 * @throws PortalException if a matching web content article or DDM template 1331 could not be found, or if a portal exception occurred 1332 * @throws SystemException if a system exception occurred 1333 */ 1334 @Override 1335 public com.liferay.portlet.journal.model.JournalArticleDisplay getArticleDisplay( 1336 long groupId, java.lang.String articleId, java.lang.String viewMode, 1337 java.lang.String languageId, int page, java.lang.String xmlRequest, 1338 com.liferay.portal.theme.ThemeDisplay themeDisplay) 1339 throws com.liferay.portal.kernel.exception.PortalException, 1340 com.liferay.portal.kernel.exception.SystemException { 1341 return _journalArticleLocalService.getArticleDisplay(groupId, 1342 articleId, viewMode, languageId, page, xmlRequest, themeDisplay); 1343 } 1344 1345 /** 1346 * Returns a web content article display for the specified page of the 1347 * latest version of the web content article matching the group and article 1348 * ID, optionally based on the DDM template if the article is template 1349 * driven. If the article is template driven, web content transformation 1350 * tokens are added from the theme display (if not <code>null</code>) or the 1351 * XML request otherwise. 1352 * 1353 * @param groupId the primary key of the web content article's group 1354 * @param articleId the primary key of the web content article 1355 * @param ddmTemplateKey the primary key of the web content article's DDM 1356 template (optionally <code>null</code>). If the article is 1357 related to a DDM structure, the template's structure must match 1358 it. 1359 * @param viewMode the mode in which the web content is being viewed 1360 * @param languageId the primary key of the language translation to get 1361 * @param page the web content's page number 1362 * @param xmlRequest the request that serializes the web content into a 1363 hierarchical hash map 1364 * @param themeDisplay the theme display 1365 * @return the web content article display, or <code>null</code> if the 1366 article has expired or if article's display date/time is after 1367 the current date/time 1368 * @throws PortalException if a matching web content article or DDM template 1369 could not be found, or if a portal exception occurred 1370 * @throws SystemException if a system exception occurred 1371 */ 1372 @Override 1373 public com.liferay.portlet.journal.model.JournalArticleDisplay getArticleDisplay( 1374 long groupId, java.lang.String articleId, 1375 java.lang.String ddmTemplateKey, java.lang.String viewMode, 1376 java.lang.String languageId, int page, java.lang.String xmlRequest, 1377 com.liferay.portal.theme.ThemeDisplay themeDisplay) 1378 throws com.liferay.portal.kernel.exception.PortalException, 1379 com.liferay.portal.kernel.exception.SystemException { 1380 return _journalArticleLocalService.getArticleDisplay(groupId, 1381 articleId, ddmTemplateKey, viewMode, languageId, page, xmlRequest, 1382 themeDisplay); 1383 } 1384 1385 /** 1386 * Returns a web content article display for the first page of the latest 1387 * version of the web content article matching the group and article ID, 1388 * optionally based on the DDM template if the article is template driven. 1389 * If the article is template driven, web content transformation tokens are 1390 * added from the theme display (if not <code>null</code>). 1391 * 1392 * @param groupId the primary key of the web content article's group 1393 * @param articleId the primary key of the web content article 1394 * @param ddmTemplateKey the primary key of the web content article's DDM 1395 template (optionally <code>null</code>). If the article is 1396 related to a DDM structure, the template's structure must match 1397 it. 1398 * @param viewMode the mode in which the web content is being viewed 1399 * @param languageId the primary key of the language translation to get 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, 1411 java.lang.String ddmTemplateKey, java.lang.String viewMode, 1412 java.lang.String languageId, 1413 com.liferay.portal.theme.ThemeDisplay themeDisplay) 1414 throws com.liferay.portal.kernel.exception.PortalException, 1415 com.liferay.portal.kernel.exception.SystemException { 1416 return _journalArticleLocalService.getArticleDisplay(groupId, 1417 articleId, ddmTemplateKey, viewMode, languageId, themeDisplay); 1418 } 1419 1420 /** 1421 * Returns a web content article display for the first page of the latest 1422 * version of the web content article matching the group and article ID. If 1423 * the article is template driven, web content transformation tokens are 1424 * added from the theme display (if not <code>null</code>). 1425 * 1426 * @param groupId the primary key of the web content article's group 1427 * @param articleId the primary key of the web content article 1428 * @param viewMode the mode in which the web content is being viewed 1429 * @param languageId the primary key of the language translation to get 1430 * @param themeDisplay the theme display 1431 * @return the web content article display, or <code>null</code> if the 1432 article has expired or if article's display date/time is after 1433 the current date/time 1434 * @throws PortalException if a matching web content article or DDM template 1435 could not be found, or if a portal exception occurred 1436 * @throws SystemException if a system exception occurred 1437 */ 1438 @Override 1439 public com.liferay.portlet.journal.model.JournalArticleDisplay getArticleDisplay( 1440 long groupId, java.lang.String articleId, java.lang.String viewMode, 1441 java.lang.String languageId, 1442 com.liferay.portal.theme.ThemeDisplay themeDisplay) 1443 throws com.liferay.portal.kernel.exception.PortalException, 1444 com.liferay.portal.kernel.exception.SystemException { 1445 return _journalArticleLocalService.getArticleDisplay(groupId, 1446 articleId, viewMode, languageId, themeDisplay); 1447 } 1448 1449 /** 1450 * Returns all the web content articles present in the system. 1451 * 1452 * @return the web content articles present in the system 1453 * @throws SystemException if a system exception occurred 1454 */ 1455 @Override 1456 public java.util.List<com.liferay.portlet.journal.model.JournalArticle> getArticles() 1457 throws com.liferay.portal.kernel.exception.SystemException { 1458 return _journalArticleLocalService.getArticles(); 1459 } 1460 1461 /** 1462 * Returns all the web content articles belonging to the group. 1463 * 1464 * @param groupId the primary key of the web content article's group 1465 * @return the web content articles belonging to the group 1466 * @throws SystemException if a system exception occurred 1467 */ 1468 @Override 1469 public java.util.List<com.liferay.portlet.journal.model.JournalArticle> getArticles( 1470 long groupId) 1471 throws com.liferay.portal.kernel.exception.SystemException { 1472 return _journalArticleLocalService.getArticles(groupId); 1473 } 1474 1475 /** 1476 * Returns a range of all the web content articles belonging to the group. 1477 * 1478 * <p> 1479 * Useful when paginating results. Returns a maximum of <code>end - 1480 * start</code> instances. <code>start</code> and <code>end</code> are not 1481 * primary keys, they are indexes in the result set. Thus, <code>0</code> 1482 * refers to the first result in the set. Setting both <code>start</code> 1483 * and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full 1484 * result set. 1485 * </p> 1486 * 1487 * @param groupId the primary key of the web content article's group 1488 * @param start the lower bound of the range of web content articles to 1489 return 1490 * @param end the upper bound of the range of web content articles to 1491 return (not inclusive) 1492 * @return the range of matching web content articles 1493 * @throws SystemException if a system exception occurred 1494 */ 1495 @Override 1496 public java.util.List<com.liferay.portlet.journal.model.JournalArticle> getArticles( 1497 long groupId, int start, int end) 1498 throws com.liferay.portal.kernel.exception.SystemException { 1499 return _journalArticleLocalService.getArticles(groupId, start, end); 1500 } 1501 1502 /** 1503 * Returns an ordered range of all the web content articles belonging to the 1504 * group. 1505 * 1506 * <p> 1507 * Useful when paginating results. Returns a maximum of <code>end - 1508 * start</code> instances. <code>start</code> and <code>end</code> are not 1509 * primary keys, they are indexes in the result set. Thus, <code>0</code> 1510 * refers to the first result in the set. Setting both <code>start</code> 1511 * and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full 1512 * result set. 1513 * </p> 1514 * 1515 * @param groupId the primary key of the web content article's group 1516 * @param start the lower bound of the range of web content articles to 1517 return 1518 * @param end the upper bound of the range of web content articles to 1519 return (not inclusive) 1520 * @param obc the comparator to order the web content articles 1521 * @return the range of matching web content articles ordered by the 1522 comparator 1523 * @throws SystemException if a system exception occurred 1524 */ 1525 @Override 1526 public java.util.List<com.liferay.portlet.journal.model.JournalArticle> getArticles( 1527 long groupId, int start, int end, 1528 com.liferay.portal.kernel.util.OrderByComparator obc) 1529 throws com.liferay.portal.kernel.exception.SystemException { 1530 return _journalArticleLocalService.getArticles(groupId, start, end, obc); 1531 } 1532 1533 /** 1534 * Returns all the web content articles matching the group and folder. 1535 * 1536 * @param groupId the primary key of the web content article's group 1537 * @param folderId the primary key of the web content article folder 1538 * @return the matching web content articles 1539 * @throws SystemException if a system exception occurred 1540 */ 1541 @Override 1542 public java.util.List<com.liferay.portlet.journal.model.JournalArticle> getArticles( 1543 long groupId, long folderId) 1544 throws com.liferay.portal.kernel.exception.SystemException { 1545 return _journalArticleLocalService.getArticles(groupId, folderId); 1546 } 1547 1548 /** 1549 * Returns a range of all the web content articles matching the group and 1550 * folder. 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 folderId the primary key of the web content article's folder 1563 * @param start the lower bound of the range of web content articles to 1564 return 1565 * @param end the upper bound of the range of web content articles to 1566 return (not inclusive) 1567 * @return the range of matching web content articles 1568 * @throws SystemException if a system exception occurred 1569 */ 1570 @Override 1571 public java.util.List<com.liferay.portlet.journal.model.JournalArticle> getArticles( 1572 long groupId, long folderId, int start, int end) 1573 throws com.liferay.portal.kernel.exception.SystemException { 1574 return _journalArticleLocalService.getArticles(groupId, folderId, 1575 start, end); 1576 } 1577 1578 @Override 1579 public java.util.List<com.liferay.portlet.journal.model.JournalArticle> getArticles( 1580 long groupId, long folderId, int status, int start, int end) 1581 throws com.liferay.portal.kernel.exception.SystemException { 1582 return _journalArticleLocalService.getArticles(groupId, folderId, 1583 status, start, end); 1584 } 1585 1586 /** 1587 * Returns an ordered range of all the web content articles matching the 1588 * group and folder. 1589 * 1590 * <p> 1591 * Useful when paginating results. Returns a maximum of <code>end - 1592 * start</code> instances. <code>start</code> and <code>end</code> are not 1593 * primary keys, they are indexes in the result set. Thus, <code>0</code> 1594 * refers to the first result in the set. Setting both <code>start</code> 1595 * and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full 1596 * result set. 1597 * </p> 1598 * 1599 * @param groupId the primary key of the web content article's group 1600 * @param folderId the primary key of the web content article's folder 1601 * @param start the lower bound of the range of web content articles to 1602 return 1603 * @param end the upper bound of the range of web content articles to 1604 return (not inclusive) 1605 * @param orderByComparator the comparator to order the web content 1606 articles 1607 * @return the range of matching web content articles ordered by the 1608 comparator 1609 * @throws SystemException if a system exception occurred 1610 */ 1611 @Override 1612 public java.util.List<com.liferay.portlet.journal.model.JournalArticle> getArticles( 1613 long groupId, long folderId, int start, int end, 1614 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1615 throws com.liferay.portal.kernel.exception.SystemException { 1616 return _journalArticleLocalService.getArticles(groupId, folderId, 1617 start, end, orderByComparator); 1618 } 1619 1620 /** 1621 * Returns all the web content articles matching the group and article ID. 1622 * 1623 * @param groupId the primary key of the web content article's group 1624 * @param articleId the primary key of the web content article 1625 * @return the matching web content articles 1626 * @throws SystemException if a system exception occurred 1627 */ 1628 @Override 1629 public java.util.List<com.liferay.portlet.journal.model.JournalArticle> getArticles( 1630 long groupId, java.lang.String articleId) 1631 throws com.liferay.portal.kernel.exception.SystemException { 1632 return _journalArticleLocalService.getArticles(groupId, articleId); 1633 } 1634 1635 @Override 1636 public java.util.List<com.liferay.portlet.journal.model.JournalArticle> getArticlesByResourcePrimKey( 1637 long resourcePrimKey) 1638 throws com.liferay.portal.kernel.exception.SystemException { 1639 return _journalArticleLocalService.getArticlesByResourcePrimKey(resourcePrimKey); 1640 } 1641 1642 /** 1643 * Returns all the web content articles matching the small image ID. 1644 * 1645 * @param smallImageId the primary key of the web content article's small 1646 image 1647 * @return the web content articles matching the small image ID 1648 * @throws SystemException if a system exception occurred 1649 */ 1650 @Override 1651 public java.util.List<com.liferay.portlet.journal.model.JournalArticle> getArticlesBySmallImageId( 1652 long smallImageId) 1653 throws com.liferay.portal.kernel.exception.SystemException { 1654 return _journalArticleLocalService.getArticlesBySmallImageId(smallImageId); 1655 } 1656 1657 /** 1658 * Returns the number of web content articles belonging to the group. 1659 * 1660 * @param groupId the primary key of the web content article's group 1661 * @return the number of web content articles belonging to the group 1662 * @throws SystemException if a system exception occurred 1663 */ 1664 @Override 1665 public int getArticlesCount(long groupId) 1666 throws com.liferay.portal.kernel.exception.SystemException { 1667 return _journalArticleLocalService.getArticlesCount(groupId); 1668 } 1669 1670 /** 1671 * Returns the number of web content articles matching the group and folder. 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 * @return the number of matching web content articles 1676 * @throws SystemException if a system exception occurred 1677 */ 1678 @Override 1679 public int getArticlesCount(long groupId, long folderId) 1680 throws com.liferay.portal.kernel.exception.SystemException { 1681 return _journalArticleLocalService.getArticlesCount(groupId, folderId); 1682 } 1683 1684 @Override 1685 public int getArticlesCount(long groupId, long folderId, int status) 1686 throws com.liferay.portal.kernel.exception.SystemException { 1687 return _journalArticleLocalService.getArticlesCount(groupId, folderId, 1688 status); 1689 } 1690 1691 /** 1692 * Returns an ordered range of all the web content articles matching the 1693 * company, version, and workflow status. 1694 * 1695 * <p> 1696 * Useful when paginating results. Returns a maximum of <code>end - 1697 * start</code> instances. <code>start</code> and <code>end</code> are not 1698 * primary keys, they are indexes in the result set. Thus, <code>0</code> 1699 * refers to the first result in the set. Setting both <code>start</code> 1700 * and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full 1701 * result set. 1702 * </p> 1703 * 1704 * @param companyId the primary key of the web content article's company 1705 * @param version the web content article's version 1706 * @param status the web content article's workflow status. For more 1707 information see {@link WorkflowConstants} for constants starting 1708 with the "STATUS_" prefix. 1709 * @param start the lower bound of the range of web content articles to 1710 return 1711 * @param end the upper bound of the range of web content articles to 1712 return (not inclusive) 1713 * @return the range of matching web content articles ordered by article ID 1714 * @throws SystemException if a system exception occurred 1715 */ 1716 @Override 1717 public java.util.List<com.liferay.portlet.journal.model.JournalArticle> getCompanyArticles( 1718 long companyId, double version, int status, int start, int end) 1719 throws com.liferay.portal.kernel.exception.SystemException { 1720 return _journalArticleLocalService.getCompanyArticles(companyId, 1721 version, status, start, end); 1722 } 1723 1724 /** 1725 * Returns an ordered range of all the web content articles matching the 1726 * company and workflow status. 1727 * 1728 * <p> 1729 * Useful when paginating results. Returns a maximum of <code>end - 1730 * start</code> instances. <code>start</code> and <code>end</code> are not 1731 * primary keys, they are indexes in the result set. Thus, <code>0</code> 1732 * refers to the first result in the set. Setting both <code>start</code> 1733 * and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full 1734 * result set. 1735 * </p> 1736 * 1737 * @param companyId the primary key of the web content article's company 1738 * @param status the web content article's workflow status. For more 1739 information see {@link WorkflowConstants} for constants starting 1740 with the "STATUS_" prefix. 1741 * @param start the lower bound of the range of web content articles to 1742 return 1743 * @param end the upper bound of the range of web content articles to 1744 return (not inclusive) 1745 * @return the range of matching web content articles ordered by article ID 1746 * @throws SystemException if a system exception occurred 1747 */ 1748 @Override 1749 public java.util.List<com.liferay.portlet.journal.model.JournalArticle> getCompanyArticles( 1750 long companyId, int status, int start, int end) 1751 throws com.liferay.portal.kernel.exception.SystemException { 1752 return _journalArticleLocalService.getCompanyArticles(companyId, 1753 status, start, end); 1754 } 1755 1756 /** 1757 * Returns the number of web content articles matching the company, version, 1758 * and workflow status. 1759 * 1760 * <p> 1761 * Useful when paginating results. Returns a maximum of <code>end - 1762 * start</code> instances. <code>start</code> and <code>end</code> are not 1763 * primary keys, they are indexes in the result set. Thus, <code>0</code> 1764 * refers to the first result in the set. Setting both <code>start</code> 1765 * and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full 1766 * result set. 1767 * </p> 1768 * 1769 * @param companyId the primary key of the web content article's company 1770 * @param version the web content article's version 1771 * @param status the web content article's workflow status. For more 1772 information see {@link WorkflowConstants} for constants starting 1773 with the "STATUS_" prefix. 1774 * @param start the lower bound of the range of web content articles to 1775 return 1776 * @param end the upper bound of the range of web content articles to 1777 return (not inclusive) 1778 * @return the number of matching web content articles 1779 * @throws SystemException if a system exception occurred 1780 */ 1781 @Override 1782 public int getCompanyArticlesCount(long companyId, double version, 1783 int status, int start, int end) 1784 throws com.liferay.portal.kernel.exception.SystemException { 1785 return _journalArticleLocalService.getCompanyArticlesCount(companyId, 1786 version, status, start, end); 1787 } 1788 1789 /** 1790 * Returns the number of web content articles matching the company and 1791 * workflow status. 1792 * 1793 * @param companyId the primary key of the web content article's company 1794 * @param status the web content article's workflow status. For more 1795 information see {@link WorkflowConstants} for constants starting 1796 with the "STATUS_" prefix. 1797 * @return the number of matching web content articles 1798 * @throws SystemException if a system exception occurred 1799 */ 1800 @Override 1801 public int getCompanyArticlesCount(long companyId, int status) 1802 throws com.liferay.portal.kernel.exception.SystemException { 1803 return _journalArticleLocalService.getCompanyArticlesCount(companyId, 1804 status); 1805 } 1806 1807 /** 1808 * Returns the matching web content article currently displayed or next to 1809 * be displayed if no article is currently displayed. 1810 * 1811 * @param groupId the primary key of the web content article's group 1812 * @param articleId the primary key of the web content article 1813 * @return the matching web content article currently displayed, or the next 1814 one to be displayed if no version of the article is currently 1815 displayed 1816 * @throws PortalException if no approved matching web content articles 1817 could be found 1818 * @throws SystemException if a system exception occurred 1819 */ 1820 @Override 1821 public com.liferay.portlet.journal.model.JournalArticle getDisplayArticle( 1822 long groupId, java.lang.String articleId) 1823 throws com.liferay.portal.kernel.exception.PortalException, 1824 com.liferay.portal.kernel.exception.SystemException { 1825 return _journalArticleLocalService.getDisplayArticle(groupId, articleId); 1826 } 1827 1828 /** 1829 * Returns the web content article matching the URL title that is currently 1830 * displayed or next to be displayed if no article is currently displayed. 1831 * 1832 * @param groupId the primary key of the web content article's group 1833 * @param urlTitle the web content article's accessible URL title 1834 * @return the web content article matching the URL title that is currently 1835 displayed, or next one to be displayed if no version of the 1836 article is currently displayed 1837 * @throws PortalException if no approved matching web content articles 1838 could be found 1839 * @throws SystemException if a system exception occurred 1840 */ 1841 @Override 1842 public com.liferay.portlet.journal.model.JournalArticle getDisplayArticleByUrlTitle( 1843 long groupId, java.lang.String urlTitle) 1844 throws com.liferay.portal.kernel.exception.PortalException, 1845 com.liferay.portal.kernel.exception.SystemException { 1846 return _journalArticleLocalService.getDisplayArticleByUrlTitle(groupId, 1847 urlTitle); 1848 } 1849 1850 @Override 1851 public java.util.List<com.liferay.portlet.journal.model.JournalArticle> getIndexableArticlesByResourcePrimKey( 1852 long resourcePrimKey) 1853 throws com.liferay.portal.kernel.exception.SystemException { 1854 return _journalArticleLocalService.getIndexableArticlesByResourcePrimKey(resourcePrimKey); 1855 } 1856 1857 /** 1858 * Returns the latest web content article matching the resource primary key, 1859 * preferring articles with approved workflow status. 1860 * 1861 * @param resourcePrimKey the primary key of the resource instance 1862 * @return the latest web content article matching the resource primary key, 1863 preferring articles with approved workflow status 1864 * @throws PortalException if a matching web content article could not be 1865 found 1866 * @throws SystemException if a system exception occurred 1867 */ 1868 @Override 1869 public com.liferay.portlet.journal.model.JournalArticle getLatestArticle( 1870 long resourcePrimKey) 1871 throws com.liferay.portal.kernel.exception.PortalException, 1872 com.liferay.portal.kernel.exception.SystemException { 1873 return _journalArticleLocalService.getLatestArticle(resourcePrimKey); 1874 } 1875 1876 /** 1877 * Returns the latest web content article matching the resource primary key 1878 * and workflow status, preferring articles with approved workflow status. 1879 * 1880 * @param resourcePrimKey the primary key of the resource instance 1881 * @param status the web content article's workflow status. For more 1882 information see {@link WorkflowConstants} for constants starting 1883 with the "STATUS_" prefix. 1884 * @return the latest web content article matching the resource primary key 1885 and workflow status, preferring articles with approved workflow 1886 status 1887 * @throws PortalException if a matching web content article could not be 1888 found 1889 * @throws SystemException if a system exception occurred 1890 */ 1891 @Override 1892 public com.liferay.portlet.journal.model.JournalArticle getLatestArticle( 1893 long resourcePrimKey, int status) 1894 throws com.liferay.portal.kernel.exception.PortalException, 1895 com.liferay.portal.kernel.exception.SystemException { 1896 return _journalArticleLocalService.getLatestArticle(resourcePrimKey, 1897 status); 1898 } 1899 1900 /** 1901 * Returns the latest web content article matching the resource primary key 1902 * and workflow status, optionally preferring articles with approved 1903 * workflow status. 1904 * 1905 * @param resourcePrimKey the primary key of the resource instance 1906 * @param status the web content article's workflow status. For more 1907 information see {@link WorkflowConstants} for constants starting 1908 with the "STATUS_" prefix. 1909 * @param preferApproved whether to prefer returning the latest matching 1910 article that has workflow status {@link 1911 WorkflowConstants#STATUS_APPROVED} over returning one that has a 1912 different status 1913 * @return the latest web content article matching the resource primary key 1914 and workflow status, optionally preferring articles with approved 1915 workflow status 1916 * @throws PortalException if a matching web content article could not be 1917 found 1918 * @throws SystemException if a system exception occurred 1919 */ 1920 @Override 1921 public com.liferay.portlet.journal.model.JournalArticle getLatestArticle( 1922 long resourcePrimKey, int status, boolean preferApproved) 1923 throws com.liferay.portal.kernel.exception.PortalException, 1924 com.liferay.portal.kernel.exception.SystemException { 1925 return _journalArticleLocalService.getLatestArticle(resourcePrimKey, 1926 status, preferApproved); 1927 } 1928 1929 /** 1930 * Returns the latest web content article with the group and article ID. 1931 * 1932 * @param groupId the primary key of the web content article's group 1933 * @param articleId the primary key of the web content article 1934 * @return the latest matching web content article 1935 * @throws PortalException if a matching web content article could not be 1936 found 1937 * @throws SystemException if a system exception occurred 1938 */ 1939 @Override 1940 public com.liferay.portlet.journal.model.JournalArticle getLatestArticle( 1941 long groupId, java.lang.String articleId) 1942 throws com.liferay.portal.kernel.exception.PortalException, 1943 com.liferay.portal.kernel.exception.SystemException { 1944 return _journalArticleLocalService.getLatestArticle(groupId, articleId); 1945 } 1946 1947 /** 1948 * Returns the latest web content article matching the group, article ID, 1949 * and workflow status. 1950 * 1951 * @param groupId the primary key of the web content article's group 1952 * @param articleId the primary key of the web content article 1953 * @param status the web content article's workflow status. For more 1954 information see {@link WorkflowConstants} for constants starting 1955 with the "STATUS_" prefix. 1956 * @return the latest matching web content article 1957 * @throws PortalException if a matching web content article could not be 1958 found 1959 * @throws SystemException if a system exception occurred 1960 */ 1961 @Override 1962 public com.liferay.portlet.journal.model.JournalArticle getLatestArticle( 1963 long groupId, java.lang.String articleId, int status) 1964 throws com.liferay.portal.kernel.exception.PortalException, 1965 com.liferay.portal.kernel.exception.SystemException { 1966 return _journalArticleLocalService.getLatestArticle(groupId, articleId, 1967 status); 1968 } 1969 1970 /** 1971 * Returns the latest web content article matching the group, class name ID, 1972 * and class PK. 1973 * 1974 * @param groupId the primary key of the web content article's group 1975 * @param className the DDMStructure class name if the web content article 1976 is related to a DDM structure, the class name associated with the 1977 article, or {@link JournalArticleConstants#CLASSNAME_ID_DEFAULT} 1978 otherwise 1979 * @param classPK the primary key of the DDM structure, if the DDMStructure 1980 class name is given as the <code>className</code> parameter, the 1981 primary key of the class associated with the web content article, 1982 or <code>0</code> otherwise 1983 * @return the latest matching web content article 1984 * @throws PortalException if a matching web content article could not be 1985 found 1986 * @throws SystemException if a system exception occurred 1987 */ 1988 @Override 1989 public com.liferay.portlet.journal.model.JournalArticle getLatestArticle( 1990 long groupId, java.lang.String className, long classPK) 1991 throws com.liferay.portal.kernel.exception.PortalException, 1992 com.liferay.portal.kernel.exception.SystemException { 1993 return _journalArticleLocalService.getLatestArticle(groupId, className, 1994 classPK); 1995 } 1996 1997 /** 1998 * Returns the latest web content article matching the group, URL title, and 1999 * workflow status. 2000 * 2001 * @param groupId the primary key of the web content article's group 2002 * @param urlTitle the web content article's accessible URL title 2003 * @param status the web content article's workflow status. For more 2004 information see {@link WorkflowConstants} for constants starting 2005 with the "STATUS_" prefix. 2006 * @return the latest matching web content article 2007 * @throws PortalException if a matching web content article could not be 2008 found 2009 * @throws SystemException if a system exception occurred 2010 */ 2011 @Override 2012 public com.liferay.portlet.journal.model.JournalArticle getLatestArticleByUrlTitle( 2013 long groupId, java.lang.String urlTitle, int status) 2014 throws com.liferay.portal.kernel.exception.PortalException, 2015 com.liferay.portal.kernel.exception.SystemException { 2016 return _journalArticleLocalService.getLatestArticleByUrlTitle(groupId, 2017 urlTitle, status); 2018 } 2019 2020 /** 2021 * Returns the latest version number of the web content with the group and 2022 * article ID. 2023 * 2024 * @param groupId the primary key of the web content article's group 2025 * @param articleId the primary key of the web content article 2026 * @return the latest version number of the matching web content 2027 * @throws PortalException if a matching web content article could not be 2028 found 2029 * @throws SystemException if a system exception occurred 2030 */ 2031 @Override 2032 public double getLatestVersion(long groupId, java.lang.String articleId) 2033 throws com.liferay.portal.kernel.exception.PortalException, 2034 com.liferay.portal.kernel.exception.SystemException { 2035 return _journalArticleLocalService.getLatestVersion(groupId, articleId); 2036 } 2037 2038 /** 2039 * Returns the latest version number of the web content with the group, 2040 * article ID, and workflow status. 2041 * 2042 * @param groupId the primary key of the web content article's group 2043 * @param articleId the primary key of the web content article 2044 * @param status the web content article's workflow status. For more 2045 information see {@link WorkflowConstants} for constants starting 2046 with the "STATUS_" prefix. 2047 * @return the latest version number of the matching web content 2048 * @throws PortalException if a matching web content article could not be 2049 found 2050 * @throws SystemException if a system exception occurred 2051 */ 2052 @Override 2053 public double getLatestVersion(long groupId, java.lang.String articleId, 2054 int status) 2055 throws com.liferay.portal.kernel.exception.PortalException, 2056 com.liferay.portal.kernel.exception.SystemException { 2057 return _journalArticleLocalService.getLatestVersion(groupId, articleId, 2058 status); 2059 } 2060 2061 /** 2062 * Returns the number of web content articles that are not recycled. 2063 * 2064 * @param groupId the primary key of the web content article's group 2065 * @param folderId the primary key of the web content article folder 2066 * @return the number of web content articles that are not recycled 2067 * @throws SystemException if a system exception occurred 2068 */ 2069 @Override 2070 public int getNotInTrashArticlesCount(long groupId, long folderId) 2071 throws com.liferay.portal.kernel.exception.SystemException { 2072 return _journalArticleLocalService.getNotInTrashArticlesCount(groupId, 2073 folderId); 2074 } 2075 2076 @Override 2077 public com.liferay.portlet.journal.model.JournalArticle getOldestArticle( 2078 long groupId, java.lang.String articleId) 2079 throws com.liferay.portal.kernel.exception.PortalException, 2080 com.liferay.portal.kernel.exception.SystemException { 2081 return _journalArticleLocalService.getOldestArticle(groupId, articleId); 2082 } 2083 2084 @Override 2085 public com.liferay.portlet.journal.model.JournalArticle getOldestArticle( 2086 long groupId, java.lang.String articleId, int status) 2087 throws com.liferay.portal.kernel.exception.PortalException, 2088 com.liferay.portal.kernel.exception.SystemException { 2089 return _journalArticleLocalService.getOldestArticle(groupId, articleId, 2090 status); 2091 } 2092 2093 /** 2094 * Returns the web content articles matching the group and DDM structure 2095 * key. 2096 * 2097 * @param groupId the primary key of the web content article's group 2098 * @param ddmStructureKey the primary key of the web content article's DDM 2099 structure 2100 * @return the matching web content articles 2101 * @throws SystemException if a system exception occurred 2102 */ 2103 @Override 2104 public java.util.List<com.liferay.portlet.journal.model.JournalArticle> getStructureArticles( 2105 long groupId, java.lang.String ddmStructureKey) 2106 throws com.liferay.portal.kernel.exception.SystemException { 2107 return _journalArticleLocalService.getStructureArticles(groupId, 2108 ddmStructureKey); 2109 } 2110 2111 /** 2112 * Returns an ordered range of all the web content articles matching the 2113 * group and DDM structure key. 2114 * 2115 * <p> 2116 * Useful when paginating results. Returns a maximum of <code>end - 2117 * start</code> instances. <code>start</code> and <code>end</code> are not 2118 * primary keys, they are indexes in the result set. Thus, <code>0</code> 2119 * refers to the first result in the set. Setting both <code>start</code> 2120 * and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full 2121 * result set. 2122 * </p> 2123 * 2124 * @param groupId the primary key of the web content article's group 2125 * @param ddmStructureKey the primary key of the web content article's DDM 2126 structure 2127 * @param start the lower bound of the range of web content articles to 2128 return 2129 * @param end the upper bound of the range of web content articles to 2130 return (not inclusive) 2131 * @param obc the comparator to order the web content articles 2132 * @return the range of matching web content articles ordered by the 2133 comparator 2134 * @throws SystemException if a system exception occurred 2135 */ 2136 @Override 2137 public java.util.List<com.liferay.portlet.journal.model.JournalArticle> getStructureArticles( 2138 long groupId, java.lang.String ddmStructureKey, int start, int end, 2139 com.liferay.portal.kernel.util.OrderByComparator obc) 2140 throws com.liferay.portal.kernel.exception.SystemException { 2141 return _journalArticleLocalService.getStructureArticles(groupId, 2142 ddmStructureKey, start, end, obc); 2143 } 2144 2145 @Override 2146 public java.util.List<com.liferay.portlet.journal.model.JournalArticle> getStructureArticles( 2147 java.lang.String[] ddmStructureKeys) 2148 throws com.liferay.portal.kernel.exception.SystemException { 2149 return _journalArticleLocalService.getStructureArticles(ddmStructureKeys); 2150 } 2151 2152 /** 2153 * Returns the number of web content articles matching the group and DDM 2154 * structure key. 2155 * 2156 * @param groupId the primary key of the web content article's group 2157 * @param ddmStructureKey the primary key of the web content article's DDM 2158 structure 2159 * @return the number of matching web content articles 2160 * @throws SystemException if a system exception occurred 2161 */ 2162 @Override 2163 public int getStructureArticlesCount(long groupId, 2164 java.lang.String ddmStructureKey) 2165 throws com.liferay.portal.kernel.exception.SystemException { 2166 return _journalArticleLocalService.getStructureArticlesCount(groupId, 2167 ddmStructureKey); 2168 } 2169 2170 /** 2171 * Returns the web content articles matching the group and DDM template key. 2172 * 2173 * @param groupId the primary key of the web content article's group 2174 * @param ddmTemplateKey the primary key of the web content article's DDM 2175 template (optionally <code>null</code>). If the article is 2176 related to a DDM structure, the template's structure must match 2177 it. 2178 * @return the matching web content articles 2179 * @throws SystemException if a system exception occurred 2180 */ 2181 @Override 2182 public java.util.List<com.liferay.portlet.journal.model.JournalArticle> getTemplateArticles( 2183 long groupId, java.lang.String ddmTemplateKey) 2184 throws com.liferay.portal.kernel.exception.SystemException { 2185 return _journalArticleLocalService.getTemplateArticles(groupId, 2186 ddmTemplateKey); 2187 } 2188 2189 /** 2190 * Returns an ordered range of all the web content articles matching the 2191 * group and DDM template key. 2192 * 2193 * <p> 2194 * Useful when paginating results. Returns a maximum of <code>end - 2195 * start</code> instances. <code>start</code> and <code>end</code> are not 2196 * primary keys, they are indexes in the result set. Thus, <code>0</code> 2197 * refers to the first result in the set. Setting both <code>start</code> 2198 * and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full 2199 * result set. 2200 * </p> 2201 * 2202 * @param groupId the primary key of the web content article's group 2203 * @param ddmTemplateKey the primary key of the web content article's DDM 2204 template (optionally <code>null</code>). If the article is 2205 related to a DDM structure, the template's structure must match 2206 it. 2207 * @param start the lower bound of the range of web content articles to 2208 return 2209 * @param end the upper bound of the range of web content articles to 2210 return (not inclusive) 2211 * @param obc the comparator to order the web content articles 2212 * @return the range of matching web content articles ordered by the 2213 comparator 2214 * @throws SystemException if a system exception occurred 2215 */ 2216 @Override 2217 public java.util.List<com.liferay.portlet.journal.model.JournalArticle> getTemplateArticles( 2218 long groupId, java.lang.String ddmTemplateKey, int start, int end, 2219 com.liferay.portal.kernel.util.OrderByComparator obc) 2220 throws com.liferay.portal.kernel.exception.SystemException { 2221 return _journalArticleLocalService.getTemplateArticles(groupId, 2222 ddmTemplateKey, start, end, obc); 2223 } 2224 2225 /** 2226 * Returns the number of web content articles matching the group and DDM 2227 * template key. 2228 * 2229 * @param groupId the primary key of the web content article's group 2230 * @param ddmTemplateKey the primary key of the web content article's DDM 2231 template (optionally <code>null</code>). If the article is 2232 related to a DDM structure, the template's structure must match 2233 it. 2234 * @return the number of matching web content articles 2235 * @throws SystemException if a system exception occurred 2236 */ 2237 @Override 2238 public int getTemplateArticlesCount(long groupId, 2239 java.lang.String ddmTemplateKey) 2240 throws com.liferay.portal.kernel.exception.SystemException { 2241 return _journalArticleLocalService.getTemplateArticlesCount(groupId, 2242 ddmTemplateKey); 2243 } 2244 2245 @Override 2246 public java.lang.String getUniqueUrlTitle(long groupId, 2247 java.lang.String articleId, java.lang.String urlTitle) 2248 throws com.liferay.portal.kernel.exception.PortalException, 2249 com.liferay.portal.kernel.exception.SystemException { 2250 return _journalArticleLocalService.getUniqueUrlTitle(groupId, 2251 articleId, urlTitle); 2252 } 2253 2254 /** 2255 * Returns <code>true</code> if the specified web content article exists. 2256 * 2257 * @param groupId the primary key of the group 2258 * @param articleId the primary key of the web content article 2259 * @return <code>true</code> if the specified web content article exists; 2260 <code>false</code> otherwise 2261 * @throws SystemException if a system exception occurred 2262 */ 2263 @Override 2264 public boolean hasArticle(long groupId, java.lang.String articleId) 2265 throws com.liferay.portal.kernel.exception.SystemException { 2266 return _journalArticleLocalService.hasArticle(groupId, articleId); 2267 } 2268 2269 /** 2270 * Returns <code>true</code> if the web content article, specified by group 2271 * and article ID, is the latest version. 2272 * 2273 * @param groupId the primary key of the web content article's group 2274 * @param articleId the primary key of the web content article 2275 * @param version the web content article's version 2276 * @return <code>true</code> if the specified web content article is the 2277 latest version; <code>false</code> otherwise 2278 * @throws PortalException if a matching web content article could not be 2279 found 2280 * @throws SystemException if a system exception occurred 2281 */ 2282 @Override 2283 public boolean isLatestVersion(long groupId, java.lang.String articleId, 2284 double version) 2285 throws com.liferay.portal.kernel.exception.PortalException, 2286 com.liferay.portal.kernel.exception.SystemException { 2287 return _journalArticleLocalService.isLatestVersion(groupId, articleId, 2288 version); 2289 } 2290 2291 /** 2292 * Returns <code>true</code> if the web content article, specified by group, 2293 * article ID, and workflow status, is the latest version. 2294 * 2295 * @param groupId the primary key of the web content article's group 2296 * @param articleId the primary key of the web content article 2297 * @param version the web content article's version 2298 * @param status the web content article's workflow status. For more 2299 information see {@link WorkflowConstants} for constants starting 2300 with the "STATUS_" prefix. 2301 * @return <code>true</code> if the specified web content article is the 2302 latest version; <code>false</code> otherwise 2303 * @throws PortalException if a matching web content article could not be 2304 found 2305 * @throws SystemException if a system exception occurred 2306 */ 2307 @Override 2308 public boolean isLatestVersion(long groupId, java.lang.String articleId, 2309 double version, int status) 2310 throws com.liferay.portal.kernel.exception.PortalException, 2311 com.liferay.portal.kernel.exception.SystemException { 2312 return _journalArticleLocalService.isLatestVersion(groupId, articleId, 2313 version, status); 2314 } 2315 2316 /** 2317 * Moves the web content article matching the group and article ID to a new 2318 * folder. 2319 * 2320 * @param groupId the primary key of the web content article's group 2321 * @param articleId the primary key of the web content article 2322 * @param newFolderId the primary key of the web content article's new 2323 folder 2324 * @return the updated web content article, which was moved to a new folder 2325 * @throws PortalException if a matching web content article could not be 2326 found 2327 * @throws SystemException if a system exception occurred 2328 */ 2329 @Override 2330 public com.liferay.portlet.journal.model.JournalArticle moveArticle( 2331 long groupId, java.lang.String articleId, long newFolderId) 2332 throws com.liferay.portal.kernel.exception.PortalException, 2333 com.liferay.portal.kernel.exception.SystemException { 2334 return _journalArticleLocalService.moveArticle(groupId, articleId, 2335 newFolderId); 2336 } 2337 2338 /** 2339 * Moves the web content article from the Recycle Bin to a new folder. 2340 * 2341 * @param userId the primary key of the user updating the web content 2342 article 2343 * @param groupId the primary key of the web content article's group 2344 * @param article the web content article 2345 * @param newFolderId the primary key of the web content article's new 2346 folder 2347 * @param serviceContext the service context to be applied. Can set the 2348 modification date, portlet preferences, and can set whether to 2349 add the default command update for the web content article. With 2350 respect to social activities, by setting the service context's 2351 command to {@link 2352 com.liferay.portal.kernel.util.Constants#UPDATE}, the invocation 2353 is considered a web content update activity; otherwise it is 2354 considered a web content add activity. 2355 * @return the updated web content article, which was moved from the Recycle 2356 Bin to a new folder 2357 * @throws PortalException if a trashed web content article with the primary 2358 key could not be found or if a portal exception occurred 2359 * @throws SystemException if a system exception occurred 2360 */ 2361 @Override 2362 public com.liferay.portlet.journal.model.JournalArticle moveArticleFromTrash( 2363 long userId, long groupId, 2364 com.liferay.portlet.journal.model.JournalArticle article, 2365 long newFolderId, 2366 com.liferay.portal.service.ServiceContext serviceContext) 2367 throws com.liferay.portal.kernel.exception.PortalException, 2368 com.liferay.portal.kernel.exception.SystemException { 2369 return _journalArticleLocalService.moveArticleFromTrash(userId, 2370 groupId, article, newFolderId, serviceContext); 2371 } 2372 2373 /** 2374 * Moves the latest version of the web content article matching the group 2375 * and article ID to the recycle bin. 2376 * 2377 * @param userId the primary key of the user updating the web content 2378 article 2379 * @param article the web content article 2380 * @return the updated web content article, which was moved to the Recycle 2381 Bin 2382 * @throws PortalException if the user did not have permission to move the 2383 article to the Recycle Bin or if a portal exception occurred 2384 * @throws SystemException if a system exception occurred 2385 */ 2386 @Override 2387 public com.liferay.portlet.journal.model.JournalArticle moveArticleToTrash( 2388 long userId, com.liferay.portlet.journal.model.JournalArticle article) 2389 throws com.liferay.portal.kernel.exception.PortalException, 2390 com.liferay.portal.kernel.exception.SystemException { 2391 return _journalArticleLocalService.moveArticleToTrash(userId, article); 2392 } 2393 2394 /** 2395 * Moves the latest version of the web content article matching the group 2396 * and article ID to the recycle bin. 2397 * 2398 * @param userId the primary key of the user updating the web content 2399 article 2400 * @param groupId the primary key of the web content article's group 2401 * @param articleId the primary key of the web content article 2402 * @return the moved web content article or <code>null</code> if no matching 2403 article was found 2404 * @throws PortalException if the user did not have permission to move the 2405 article to the Recycle Bin or if a portal exception occurred 2406 * @throws SystemException if a system exception occurred 2407 */ 2408 @Override 2409 public com.liferay.portlet.journal.model.JournalArticle moveArticleToTrash( 2410 long userId, long groupId, java.lang.String articleId) 2411 throws com.liferay.portal.kernel.exception.PortalException, 2412 com.liferay.portal.kernel.exception.SystemException { 2413 return _journalArticleLocalService.moveArticleToTrash(userId, groupId, 2414 articleId); 2415 } 2416 2417 @Override 2418 public void rebuildTree(long companyId) 2419 throws com.liferay.portal.kernel.exception.SystemException { 2420 _journalArticleLocalService.rebuildTree(companyId); 2421 } 2422 2423 /** 2424 * Removes the web content of the web content article matching the group, 2425 * article ID, and version, and language. 2426 * 2427 * @param groupId the primary key of the web content article's group 2428 * @param articleId the primary key of the web content article 2429 * @param version the web content article's version 2430 * @param languageId the primary key of the language locale to remove 2431 * @return the updated web content article with the locale removed 2432 * @throws PortalException if a matching web content article could not be 2433 found 2434 * @throws SystemException if a system exception occurred 2435 */ 2436 @Override 2437 public com.liferay.portlet.journal.model.JournalArticle removeArticleLocale( 2438 long groupId, java.lang.String articleId, double version, 2439 java.lang.String languageId) 2440 throws com.liferay.portal.kernel.exception.PortalException, 2441 com.liferay.portal.kernel.exception.SystemException { 2442 return _journalArticleLocalService.removeArticleLocale(groupId, 2443 articleId, version, languageId); 2444 } 2445 2446 /** 2447 * Restores the web content article from the Recycle Bin. 2448 * 2449 * @param userId the primary key of the user restoring the web content 2450 article 2451 * @param article the web content article 2452 * @throws PortalException if the web content article with the primary key 2453 could not be found in the Recycle Bin, if the user did not have 2454 permission to restore the article, or if a portal exception 2455 occurred 2456 * @throws SystemException if a system exception occurred 2457 */ 2458 @Override 2459 public com.liferay.portlet.journal.model.JournalArticle restoreArticleFromTrash( 2460 long userId, com.liferay.portlet.journal.model.JournalArticle article) 2461 throws com.liferay.portal.kernel.exception.PortalException, 2462 com.liferay.portal.kernel.exception.SystemException { 2463 return _journalArticleLocalService.restoreArticleFromTrash(userId, 2464 article); 2465 } 2466 2467 @Override 2468 public java.util.List<com.liferay.portlet.journal.model.JournalArticle> search( 2469 long groupId, java.util.List<java.lang.Long> folderIds, int status, 2470 int start, int end) 2471 throws com.liferay.portal.kernel.exception.SystemException { 2472 return _journalArticleLocalService.search(groupId, folderIds, status, 2473 start, end); 2474 } 2475 2476 @Override 2477 public java.util.List<com.liferay.portlet.journal.model.JournalArticle> search( 2478 long groupId, long folderId, int status, int start, int end) 2479 throws com.liferay.portal.kernel.exception.SystemException { 2480 return _journalArticleLocalService.search(groupId, folderId, status, 2481 start, end); 2482 } 2483 2484 /** 2485 * Returns an ordered range of all the web content articles matching the 2486 * parameters without using the indexer, including a keywords parameter for 2487 * matching with the article's ID, title, description, and content, a DDM 2488 * structure key parameter, and a DDM template key parameter. It is 2489 * preferable to use the indexed version {@link #search(long, long, List, 2490 * long, String, String, String, LinkedHashMap, int, int, Sort)} instead of 2491 * this method wherever possible for performance reasons. 2492 * 2493 * <p> 2494 * Useful when paginating results. Returns a maximum of <code>end - 2495 * start</code> instances. <code>start</code> and <code>end</code> are not 2496 * primary keys, they are indexes in the result set. Thus, <code>0</code> 2497 * refers to the first result in the set. Setting both <code>start</code> 2498 * and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full 2499 * result set. 2500 * </p> 2501 * 2502 * @param companyId the primary key of the web content article's company 2503 * @param groupId the primary key of the group (optionally <code>0</code>) 2504 * @param folderIds the primary keys of the web content article folders 2505 (optionally {@link java.util.Collections#EMPTY_LIST}) 2506 * @param classNameId the primary key of the DDMStructure class if the web 2507 content article is related to a DDM structure, the primary key of 2508 the class name associated with the article, or {@link 2509 JournalArticleConstants#CLASSNAME_ID_DEFAULT} otherwise 2510 * @param keywords the keywords (space separated), which may occur in the 2511 web content article ID, title, description, or content 2512 (optionally <code>null</code>). If the keywords value is not 2513 <code>null</code>, the search uses the OR operator in connecting 2514 query criteria; otherwise it uses the AND operator. 2515 * @param version the web content article's version (optionally 2516 <code>null</code>) 2517 * @param type the web content article's type (optionally 2518 <code>null</code>) 2519 * @param ddmStructureKey the primary key of the web content article's DDM 2520 structure, if the article is related to a DDM structure, or 2521 <code>null</code> otherwise 2522 * @param ddmTemplateKey the primary key of the web content article's DDM 2523 template (optionally <code>null</code>). If the article is 2524 related to a DDM structure, the template's structure must match 2525 it. 2526 * @param displayDateGT the date after which a matching web content 2527 article's display date must be after (optionally 2528 <code>null</code>) 2529 * @param displayDateLT the date before which a matching web content 2530 article's display date must be before (optionally 2531 <code>null</code>) 2532 * @param status the web content article's workflow status. For more 2533 information see {@link WorkflowConstants} for constants starting 2534 with the "STATUS_" prefix. 2535 * @param reviewDate the web content article's scheduled review date 2536 (optionally <code>null</code>) 2537 * @param start the lower bound of the range of web content articles to 2538 return 2539 * @param end the upper bound of the range of web content articles to 2540 return (not inclusive) 2541 * @param obc the comparator to order the web content articles 2542 * @return the range of matching web content articles ordered by the 2543 comparator 2544 * @throws SystemException if a system exception occurred 2545 */ 2546 @Override 2547 public java.util.List<com.liferay.portlet.journal.model.JournalArticle> search( 2548 long companyId, long groupId, java.util.List<java.lang.Long> folderIds, 2549 long classNameId, java.lang.String keywords, java.lang.Double version, 2550 java.lang.String type, java.lang.String ddmStructureKey, 2551 java.lang.String ddmTemplateKey, java.util.Date displayDateGT, 2552 java.util.Date displayDateLT, int status, java.util.Date reviewDate, 2553 int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc) 2554 throws com.liferay.portal.kernel.exception.SystemException { 2555 return _journalArticleLocalService.search(companyId, groupId, 2556 folderIds, classNameId, keywords, version, type, ddmStructureKey, 2557 ddmTemplateKey, displayDateGT, displayDateLT, status, reviewDate, 2558 start, end, obc); 2559 } 2560 2561 /** 2562 * Returns an ordered range of all the web content articles matching the 2563 * parameters without using the indexer, including keyword parameters for 2564 * article ID, title, description, and content, a DDM structure key 2565 * parameter, a DDM template key parameter, and an AND operator switch. It 2566 * is preferable to use the indexed version {@link #search(long, long, List, 2567 * long, String, String, String, String, String, String, String, String, 2568 * LinkedHashMap, boolean, int, int, Sort)} instead of this method wherever 2569 * possible for performance reasons. 2570 * 2571 * <p> 2572 * Useful when paginating results. Returns a maximum of <code>end - 2573 * start</code> instances. <code>start</code> and <code>end</code> are not 2574 * primary keys, they are indexes in the result set. Thus, <code>0</code> 2575 * refers to the first result in the set. Setting both <code>start</code> 2576 * and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full 2577 * result set. 2578 * </p> 2579 * 2580 * @param companyId the primary key of the web content article's company 2581 * @param groupId the primary key of the group (optionally <code>0</code>) 2582 * @param folderIds the primary keys of the web content article folders 2583 (optionally {@link java.util.Collections#EMPTY_LIST}) 2584 * @param classNameId the primary key of the DDMStructure class if the web 2585 content article is related to a DDM structure, the primary key of 2586 the class name associated with the article, or {@link 2587 JournalArticleConstants#CLASSNAME_ID_DEFAULT} otherwise 2588 * @param articleId the article ID keywords (space separated, optionally 2589 <code>null</code>) 2590 * @param version the web content article's version (optionally 2591 <code>null</code>) 2592 * @param title the title keywords (space separated, optionally 2593 <code>null</code>) 2594 * @param description the description keywords (space separated, optionally 2595 <code>null</code>) 2596 * @param content the content keywords (space separated, optionally 2597 <code>null</code>) 2598 * @param type the web content article's type (optionally 2599 <code>null</code>) 2600 * @param ddmStructureKey the primary key of the web content article's DDM 2601 structure, if the article is related to a DDM structure, or 2602 <code>null</code> otherwise 2603 * @param ddmTemplateKey the primary key of the web content article's DDM 2604 template (optionally <code>null</code>). If the article is 2605 related to a DDM structure, the template's structure must match 2606 it. 2607 * @param displayDateGT the date after which a matching web content 2608 article's display date must be after (optionally 2609 <code>null</code>) 2610 * @param displayDateLT the date before which a matching web content 2611 article's display date must be before (optionally 2612 <code>null</code>) 2613 * @param status the web content article's workflow status. For more 2614 information see {@link WorkflowConstants} for constants starting 2615 with the "STATUS_" prefix. 2616 * @param reviewDate the web content article's scheduled review date 2617 (optionally <code>null</code>) 2618 * @param andOperator whether every field must match its value or keywords, 2619 or just one field must match. Company, group, folder IDs, class 2620 name ID, and status must all match their values. 2621 * @param start the lower bound of the range of web content articles to 2622 return 2623 * @param end the upper bound of the range of web content articles to 2624 return (not inclusive) 2625 * @param obc the comparator to order the web content articles 2626 * @return the range of matching web content articles ordered by the 2627 comparator 2628 * @throws SystemException if a system exception occurred 2629 */ 2630 @Override 2631 public java.util.List<com.liferay.portlet.journal.model.JournalArticle> search( 2632 long companyId, long groupId, java.util.List<java.lang.Long> folderIds, 2633 long classNameId, java.lang.String articleId, java.lang.Double version, 2634 java.lang.String title, java.lang.String description, 2635 java.lang.String content, java.lang.String type, 2636 java.lang.String ddmStructureKey, java.lang.String ddmTemplateKey, 2637 java.util.Date displayDateGT, java.util.Date displayDateLT, int status, 2638 java.util.Date reviewDate, boolean andOperator, int start, int end, 2639 com.liferay.portal.kernel.util.OrderByComparator obc) 2640 throws com.liferay.portal.kernel.exception.SystemException { 2641 return _journalArticleLocalService.search(companyId, groupId, 2642 folderIds, classNameId, articleId, version, title, description, 2643 content, type, ddmStructureKey, ddmTemplateKey, displayDateGT, 2644 displayDateLT, status, reviewDate, andOperator, start, end, obc); 2645 } 2646 2647 /** 2648 * Returns an ordered range of all the web content articles matching the 2649 * parameters without using the indexer, including keyword parameters for 2650 * article ID, title, description, and content, a DDM structure keys 2651 * (plural) parameter, a DDM template keys (plural) parameter, and an AND 2652 * operator switch. 2653 * 2654 * <p> 2655 * Useful when paginating results. Returns a maximum of <code>end - 2656 * start</code> instances. <code>start</code> and <code>end</code> are not 2657 * primary keys, they are indexes in the result set. Thus, <code>0</code> 2658 * refers to the first result in the set. Setting both <code>start</code> 2659 * and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full 2660 * result set. 2661 * </p> 2662 * 2663 * @param companyId the primary key of the web content article's company 2664 * @param groupId the primary key of the group (optionally <code>0</code>) 2665 * @param folderIds the primary keys of the web content article folders 2666 (optionally {@link java.util.Collections#EMPTY_LIST}) 2667 * @param classNameId the primary key of the DDMStructure class if the web 2668 content article is related to a DDM structure, the primary key of 2669 the class name associated with the article, or {@link 2670 JournalArticleConstants#CLASSNAME_ID_DEFAULT} otherwise 2671 * @param articleId the article ID keywords (space separated, optionally 2672 <code>null</code>) 2673 * @param version the web content article's version (optionally 2674 <code>null</code>) 2675 * @param title the title keywords (space separated, optionally 2676 <code>null</code>) 2677 * @param description the description keywords (space separated, optionally 2678 <code>null</code>) 2679 * @param content the content keywords (space separated, optionally 2680 <code>null</code>) 2681 * @param type the web content article's type (optionally 2682 <code>null</code>) 2683 * @param ddmStructureKeys the primary keys of the web content article's 2684 DDM structures, if the article is related to a DDM structure, or 2685 <code>null</code> otherwise 2686 * @param ddmTemplateKeys the primary keys of the web content article's DDM 2687 templates (originally <code>null</code>). If the articles are 2688 related to a DDM structure, the template's structure must match 2689 it. 2690 * @param displayDateGT the date after which a matching web content 2691 article's display date must be after (optionally 2692 <code>null</code>) 2693 * @param displayDateLT the date before which a matching web content 2694 article's display date must be before (optionally 2695 <code>null</code>) 2696 * @param status the web content article's workflow status. For more 2697 information see {@link WorkflowConstants} for constants starting 2698 with the "STATUS_" prefix. 2699 * @param reviewDate the web content article's scheduled review date 2700 (optionally <code>null</code>) 2701 * @param andOperator whether every field must match its value or keywords, 2702 or just one field must match. Company, group, folder IDs, class 2703 name ID, and status must all match their values. 2704 * @param start the lower bound of the range of web content articles to 2705 return 2706 * @param end the upper bound of the range of web content articles to 2707 return (not inclusive) 2708 * @param obc the comparator to order the web content articles 2709 * @return the range of matching web content articles ordered by the 2710 comparator 2711 * @throws SystemException if a system exception occurred 2712 */ 2713 @Override 2714 public java.util.List<com.liferay.portlet.journal.model.JournalArticle> search( 2715 long companyId, long groupId, java.util.List<java.lang.Long> folderIds, 2716 long classNameId, java.lang.String articleId, java.lang.Double version, 2717 java.lang.String title, java.lang.String description, 2718 java.lang.String content, java.lang.String type, 2719 java.lang.String[] ddmStructureKeys, 2720 java.lang.String[] ddmTemplateKeys, java.util.Date displayDateGT, 2721 java.util.Date displayDateLT, int status, java.util.Date reviewDate, 2722 boolean andOperator, int start, int end, 2723 com.liferay.portal.kernel.util.OrderByComparator obc) 2724 throws com.liferay.portal.kernel.exception.SystemException { 2725 return _journalArticleLocalService.search(companyId, groupId, 2726 folderIds, classNameId, articleId, version, title, description, 2727 content, type, ddmStructureKeys, ddmTemplateKeys, displayDateGT, 2728 displayDateLT, status, reviewDate, andOperator, start, end, obc); 2729 } 2730 2731 /** 2732 * Returns an ordered range of all the web content articles matching the 2733 * parameters using the indexer, including a keywords parameter for matching 2734 * an article's ID, title, description, or content, a DDM structure key 2735 * parameter, a DDM template key parameter, and a finder hash map parameter. 2736 * It is preferable to use this method instead of the non-indexed version 2737 * whenever possible for performance reasons. 2738 * 2739 * <p> 2740 * Useful when paginating results. Returns a maximum of <code>end - 2741 * start</code> instances. <code>start</code> and <code>end</code> are not 2742 * primary keys, they are indexes in the result set. Thus, <code>0</code> 2743 * refers to the first result in the set. Setting both <code>start</code> 2744 * and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full 2745 * result set. 2746 * </p> 2747 * 2748 * @param companyId the primary key of the web content article's company 2749 * @param groupId the primary key of the group (optionally <code>0</code>) 2750 * @param folderIds the primary keys of the web content article folders 2751 (optionally {@link java.util.Collections#EMPTY_LIST}) 2752 * @param classNameId the primary key of the DDMStructure class if the web 2753 content article is related to a DDM structure, the primary key of 2754 the class name associated with the article, or {@link 2755 JournalArticleConstants#CLASSNAME_ID_DEFAULT} otherwise 2756 * @param ddmStructureKey the primary key of the web content article's DDM 2757 structure, if the article is related to a DDM structure, or 2758 <code>null</code> otherwise 2759 * @param ddmTemplateKey the primary key of the web content article's DDM 2760 template (optionally <code>null</code>). If the article is 2761 related to a DDM structure, the template's structure must match 2762 it. 2763 * @param keywords the keywords (space separated), which may occur in the 2764 web content article ID, title, description, or content 2765 (optionally <code>null</code>). If the keywords value is not 2766 <code>null</code>, the search uses the OR operator in connecting 2767 query criteria; otherwise it uses the AND operator. 2768 * @param params the finder parameters (optionally <code>null</code>) 2769 * @param start the lower bound of the range of web content articles to 2770 return 2771 * @param end the upper bound of the range of web content articles to 2772 return (not inclusive) 2773 * @param sort the field, type, and direction by which to sort (optionally 2774 <code>null</code>) 2775 * @return the matching web content articles ordered by <code>sort</code> 2776 * @throws SystemException if a system exception occurred 2777 */ 2778 @Override 2779 public com.liferay.portal.kernel.search.Hits search(long companyId, 2780 long groupId, java.util.List<java.lang.Long> folderIds, 2781 long classNameId, java.lang.String ddmStructureKey, 2782 java.lang.String ddmTemplateKey, java.lang.String keywords, 2783 java.util.LinkedHashMap<java.lang.String, java.lang.Object> params, 2784 int start, int end, com.liferay.portal.kernel.search.Sort sort) 2785 throws com.liferay.portal.kernel.exception.SystemException { 2786 return _journalArticleLocalService.search(companyId, groupId, 2787 folderIds, classNameId, ddmStructureKey, ddmTemplateKey, keywords, 2788 params, start, end, sort); 2789 } 2790 2791 /** 2792 * Returns an ordered range of all the web content articles matching the 2793 * parameters using the indexer, including a keywords parameter for matching 2794 * an article's ID, title, description, or content, a DDM structure key 2795 * parameter, a DDM template key parameter, an AND operator switch, and 2796 * parameters for type, status, a finder hash map. It is preferable to use 2797 * this method instead of the non-indexed version whenever possible for 2798 * performance reasons. 2799 * 2800 * <p> 2801 * Useful when paginating results. Returns a maximum of <code>end - 2802 * start</code> instances. <code>start</code> and <code>end</code> are not 2803 * primary keys, they are indexes in the result set. Thus, <code>0</code> 2804 * refers to the first result in the set. Setting both <code>start</code> 2805 * and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full 2806 * result set. 2807 * </p> 2808 * 2809 * @param companyId the primary key of the web content article's company 2810 * @param groupId the primary key of the group (optionally <code>0</code>) 2811 * @param folderIds the primary keys of the web content article folders 2812 (optionally {@link java.util.Collections#EMPTY_LIST}) 2813 * @param classNameId the primary key of the DDMStructure class if the web 2814 content article is related to a DDM structure, the primary key of 2815 the class name associated with the article, or {@link 2816 JournalArticleConstants#CLASSNAME_ID_DEFAULT} otherwise 2817 * @param articleId the article ID keywords (space separated, optionally 2818 <code>null</code>) 2819 * @param title the title keywords (space separated, optionally 2820 <code>null</code>) 2821 * @param description the description keywords (space separated, optionally 2822 <code>null</code>) 2823 * @param content the content keywords (space separated, optionally 2824 <code>null</code>) 2825 * @param type the web content article's type (optionally 2826 <code>null</code>) 2827 * @param status the web content article's workflow status. For more 2828 information see {@link WorkflowConstants} for constants starting 2829 with the "STATUS_" prefix. 2830 * @param ddmStructureKey the primary key of the web content article's DDM 2831 structure, if the article is related to a DDM structure, or 2832 <code>null</code> otherwise 2833 * @param ddmTemplateKey the primary key of the web content article's DDM 2834 template (optionally <code>null</code>). If the article is 2835 related to a DDM structure, the template's structure must match 2836 it. 2837 * @param params the finder parameters (optionally <code>null</code>). Can 2838 set parameter <code>"includeDiscussions"</code> to 2839 <code>true</code> to search for the keywords in the web content 2840 article discussions. 2841 * @param andSearch whether every field must match its value or keywords, 2842 or just one field must match 2843 * @param start the lower bound of the range of web content articles to 2844 return 2845 * @param end the upper bound of the range of web content articles to 2846 return (not inclusive) 2847 * @param sort the field, type, and direction by which to sort (optionally 2848 <code>null</code>) 2849 * @return the matching web content articles ordered by <code>sort</code> 2850 * @throws SystemException if a system exception occurred 2851 */ 2852 @Override 2853 public com.liferay.portal.kernel.search.Hits search(long companyId, 2854 long groupId, java.util.List<java.lang.Long> folderIds, 2855 long classNameId, java.lang.String articleId, java.lang.String title, 2856 java.lang.String description, java.lang.String content, 2857 java.lang.String type, java.lang.String status, 2858 java.lang.String ddmStructureKey, java.lang.String ddmTemplateKey, 2859 java.util.LinkedHashMap<java.lang.String, java.lang.Object> params, 2860 boolean andSearch, int start, int end, 2861 com.liferay.portal.kernel.search.Sort sort) 2862 throws com.liferay.portal.kernel.exception.SystemException { 2863 return _journalArticleLocalService.search(companyId, groupId, 2864 folderIds, classNameId, articleId, title, description, content, 2865 type, status, ddmStructureKey, ddmTemplateKey, params, andSearch, 2866 start, end, sort); 2867 } 2868 2869 @Override 2870 public com.liferay.portal.kernel.search.Hits search(long groupId, 2871 long userId, long creatorUserId, int status, int start, int end) 2872 throws com.liferay.portal.kernel.exception.PortalException, 2873 com.liferay.portal.kernel.exception.SystemException { 2874 return _journalArticleLocalService.search(groupId, userId, 2875 creatorUserId, status, start, end); 2876 } 2877 2878 @Override 2879 public int searchCount(long groupId, 2880 java.util.List<java.lang.Long> folderIds, int status) 2881 throws com.liferay.portal.kernel.exception.SystemException { 2882 return _journalArticleLocalService.searchCount(groupId, folderIds, 2883 status); 2884 } 2885 2886 @Override 2887 public int searchCount(long groupId, long folderId, int status) 2888 throws com.liferay.portal.kernel.exception.SystemException { 2889 return _journalArticleLocalService.searchCount(groupId, folderId, status); 2890 } 2891 2892 /** 2893 * Returns the number of web content articles matching the parameters, 2894 * including a keywords parameter for matching with the article's ID, title, 2895 * description, and content, a DDM structure key parameter, and a DDM 2896 * template key parameter. 2897 * 2898 * @param companyId the primary key of the web content article's company 2899 * @param groupId the primary key of the group (optionally <code>0</code>) 2900 * @param folderIds the primary keys of the web content article folders 2901 (optionally {@link java.util.Collections#EMPTY_LIST}) 2902 * @param classNameId the primary key of the DDMStructure class if the web 2903 content article is related to a DDM structure, the primary key of 2904 the class name associated with the article, or {@link 2905 JournalArticleConstants#CLASSNAME_ID_DEFAULT} otherwise 2906 * @param keywords the keywords (space separated), which may occur in the 2907 web content article ID, title, description, or content 2908 (optionally <code>null</code>). If the keywords value is not 2909 <code>null</code>, the search uses the OR operator in connecting 2910 query criteria; otherwise it uses the AND operator. 2911 * @param version the web content article's version (optionally 2912 <code>null</code>) 2913 * @param type the web content article's type (optionally 2914 <code>null</code>) 2915 * @param ddmStructureKey the primary key of the web content article's DDM 2916 structure, if the article is related to a DDM structure, or 2917 <code>null</code> otherwise 2918 * @param ddmTemplateKey the primary key of the web content article's DDM 2919 template (optionally <code>null</code>). If the article is 2920 related to a DDM structure, the template's structure must match 2921 it. 2922 * @param displayDateGT the date after which a matching web content 2923 article's display date must be after (optionally 2924 <code>null</code>) 2925 * @param displayDateLT the date before which a matching web content 2926 article's display date must be before (optionally 2927 <code>null</code>) 2928 * @param status the web content article's workflow status. For more 2929 information see {@link WorkflowConstants} for constants starting 2930 with the "STATUS_" prefix. 2931 * @param reviewDate the web content article's scheduled review date 2932 (optionally <code>null</code>) 2933 * @return the number of matching web content articles 2934 * @throws SystemException if a system exception occurred 2935 */ 2936 @Override 2937 public int searchCount(long companyId, long groupId, 2938 java.util.List<java.lang.Long> folderIds, long classNameId, 2939 java.lang.String keywords, java.lang.Double version, 2940 java.lang.String type, java.lang.String ddmStructureKey, 2941 java.lang.String ddmTemplateKey, java.util.Date displayDateGT, 2942 java.util.Date displayDateLT, int status, java.util.Date reviewDate) 2943 throws com.liferay.portal.kernel.exception.SystemException { 2944 return _journalArticleLocalService.searchCount(companyId, groupId, 2945 folderIds, classNameId, keywords, version, type, ddmStructureKey, 2946 ddmTemplateKey, displayDateGT, displayDateLT, status, reviewDate); 2947 } 2948 2949 /** 2950 * Returns the number of web content articles matching the parameters, 2951 * including keyword parameters for article ID, title, description, and 2952 * content, a DDM structure key parameter, a DDM template key parameter, and 2953 * an AND operator switch. 2954 * 2955 * @param companyId the primary key of the web content article's company 2956 * @param groupId the primary key of the group (optionally <code>0</code>) 2957 * @param folderIds the primary keys of the web content article folders 2958 (optionally {@link java.util.Collections#EMPTY_LIST}) 2959 * @param classNameId the primary key of the DDMStructure class if the web 2960 content article is related to a DDM structure, the primary key of 2961 the class name associated with the article, or {@link 2962 JournalArticleConstants#CLASSNAME_ID_DEFAULT} otherwise 2963 * @param articleId the article ID keywords (space separated, optionally 2964 <code>null</code>) 2965 * @param version the web content article's version (optionally 2966 <code>null</code>) 2967 * @param title the title keywords (space separated, optionally 2968 <code>null</code>) 2969 * @param description the description keywords (space separated, optionally 2970 <code>null</code>) 2971 * @param content the content keywords (space separated, optionally 2972 <code>null</code>) 2973 * @param type the web content article's type (optionally 2974 <code>null</code>) 2975 * @param ddmStructureKey the primary key of the web content article's DDM 2976 structure, if the article is related to a DDM structure, or 2977 <code>null</code> otherwise 2978 * @param ddmTemplateKey the primary key of the web content article's DDM 2979 template (optionally <code>null</code>). If the article is 2980 related to a DDM structure, the template's structure must match 2981 it. 2982 * @param displayDateGT the date after which a matching web content 2983 article's display date must be after (optionally 2984 <code>null</code>) 2985 * @param displayDateLT the date before which a matching web content 2986 article's display date must be before (optionally 2987 <code>null</code>) 2988 * @param status the web content article's workflow status. For more 2989 information see {@link WorkflowConstants} for constants starting 2990 with the "STATUS_" prefix. 2991 * @param reviewDate the web content article's scheduled review date 2992 (optionally <code>null</code>) 2993 * @param andOperator whether every field must match its value or keywords, 2994 or just one field must match. Group, folder IDs, class name ID, 2995 and status must all match their values. 2996 * @return the number of matching web content articles 2997 * @throws SystemException if a system exception occurred 2998 */ 2999 @Override 3000 public int searchCount(long companyId, long groupId, 3001 java.util.List<java.lang.Long> folderIds, long classNameId, 3002 java.lang.String articleId, java.lang.Double version, 3003 java.lang.String title, java.lang.String description, 3004 java.lang.String content, java.lang.String type, 3005 java.lang.String ddmStructureKey, java.lang.String ddmTemplateKey, 3006 java.util.Date displayDateGT, java.util.Date displayDateLT, int status, 3007 java.util.Date reviewDate, boolean andOperator) 3008 throws com.liferay.portal.kernel.exception.SystemException { 3009 return _journalArticleLocalService.searchCount(companyId, groupId, 3010 folderIds, classNameId, articleId, version, title, description, 3011 content, type, ddmStructureKey, ddmTemplateKey, displayDateGT, 3012 displayDateLT, status, reviewDate, andOperator); 3013 } 3014 3015 /** 3016 * Returns the number of web content articles matching the parameters, 3017 * including keyword parameters for article ID, title, description, and 3018 * content, a DDM structure keys (plural) parameter, a DDM template keys 3019 * (plural) parameter, and an AND operator switch. 3020 * 3021 * @param companyId the primary key of the web content article's company 3022 * @param groupId the primary key of the group (optionally <code>0</code>) 3023 * @param folderIds the primary keys of the web content article folders 3024 (optionally {@link java.util.Collections#EMPTY_LIST}) 3025 * @param classNameId the primary key of the DDMStructure class if the web 3026 content article is related to a DDM structure, the primary key of 3027 the class name associated with the article, or {@link 3028 JournalArticleConstants#CLASSNAME_ID_DEFAULT} otherwise 3029 * @param articleId the article ID keywords (space separated, optionally 3030 <code>null</code>) 3031 * @param version the web content article's version (optionally 3032 <code>null</code>) 3033 * @param title the title keywords (space separated, optionally 3034 <code>null</code>) 3035 * @param description the description keywords (space separated, optionally 3036 <code>null</code>) 3037 * @param content the content keywords (space separated, optionally 3038 <code>null</code>) 3039 * @param type the web content article's type (optionally 3040 <code>null</code>) 3041 * @param ddmStructureKeys the primary keys of the web content article's 3042 DDM structures, if the article is related to a DDM structure, or 3043 <code>null</code> otherwise 3044 * @param ddmTemplateKeys the primary keys of the web content article's DDM 3045 templates (originally <code>null</code>). If the articles are 3046 related to a DDM structure, the template's structure must match 3047 it. 3048 * @param displayDateGT the date after which a matching web content 3049 article's display date must be after (optionally 3050 <code>null</code>) 3051 * @param displayDateLT the date before which a matching web content 3052 article's display date must be before (optionally 3053 <code>null</code>) 3054 * @param status the web content article's workflow status. For more 3055 information see {@link WorkflowConstants} for constants starting 3056 with the "STATUS_" prefix. 3057 * @param reviewDate the web content article's scheduled review date 3058 (optionally <code>null</code>) 3059 * @param andOperator whether every field must match its value or keywords, 3060 or just one field must match. Group, folder IDs, class name ID, 3061 and status must all match their values. 3062 * @return the number of matching web content articles 3063 * @throws SystemException if a system exception occurred 3064 */ 3065 @Override 3066 public int searchCount(long companyId, long groupId, 3067 java.util.List<java.lang.Long> folderIds, long classNameId, 3068 java.lang.String articleId, java.lang.Double version, 3069 java.lang.String title, java.lang.String description, 3070 java.lang.String content, java.lang.String type, 3071 java.lang.String[] ddmStructureKeys, 3072 java.lang.String[] ddmTemplateKeys, java.util.Date displayDateGT, 3073 java.util.Date displayDateLT, int status, java.util.Date reviewDate, 3074 boolean andOperator) 3075 throws com.liferay.portal.kernel.exception.SystemException { 3076 return _journalArticleLocalService.searchCount(companyId, groupId, 3077 folderIds, classNameId, articleId, version, title, description, 3078 content, type, ddmStructureKeys, ddmTemplateKeys, displayDateGT, 3079 displayDateLT, status, reviewDate, andOperator); 3080 } 3081 3082 /** 3083 * Subscribes the user to notifications for the web content article matching 3084 * the group, notifying him the instant versions of the article are created, 3085 * deleted, or modified. 3086 * 3087 * @param userId the primary key of the user to subscribe 3088 * @param groupId the primary key of the group 3089 * @throws PortalException if a matching user or group could not be found 3090 * @throws SystemException if a system exception occurred 3091 */ 3092 @Override 3093 public void subscribe(long userId, long groupId) 3094 throws com.liferay.portal.kernel.exception.PortalException, 3095 com.liferay.portal.kernel.exception.SystemException { 3096 _journalArticleLocalService.subscribe(userId, groupId); 3097 } 3098 3099 /** 3100 * Unsubscribes the user from notifications for the web content article 3101 * matching the group. 3102 * 3103 * @param userId the primary key of the user to unsubscribe 3104 * @param groupId the primary key of the group 3105 * @throws PortalException if a matching user or subscription could not be 3106 found 3107 * @throws SystemException if a system exception occurred 3108 */ 3109 @Override 3110 public void unsubscribe(long userId, long groupId) 3111 throws com.liferay.portal.kernel.exception.PortalException, 3112 com.liferay.portal.kernel.exception.SystemException { 3113 _journalArticleLocalService.unsubscribe(userId, groupId); 3114 } 3115 3116 /** 3117 * Updates the web content article matching the version, replacing its 3118 * folder, title, description, content, and layout UUID. 3119 * 3120 * @param userId the primary key of the user updating the web content 3121 article 3122 * @param groupId the primary key of the web content article's group 3123 * @param folderId the primary key of the web content article folder 3124 * @param articleId the primary key of the web content article 3125 * @param version the web content article's version 3126 * @param titleMap the web content article's locales and localized titles 3127 * @param descriptionMap the web content article's locales and localized 3128 descriptions 3129 * @param content the HTML content wrapped in XML. For more information, 3130 see the content example in the class description for {@link 3131 JournalArticleLocalServiceImpl}. 3132 * @param layoutUuid the unique string identifying the web content 3133 article's display page 3134 * @param serviceContext the service context to be applied. Can set the 3135 modification date, expando bridge attributes, asset category IDs, 3136 asset tag names, asset link entry IDs, workflow actions, the 3137 "defaultLanguageId" and "urlTitle" attributes, and can set 3138 whether to add the default command update for the web content 3139 article. With respect to social activities, by setting the 3140 service context's command to {@link 3141 com.liferay.portal.kernel.util.Constants#UPDATE}, the invocation 3142 is considered a web content update activity; otherwise it is 3143 considered a web content add activity. 3144 * @return the updated web content article 3145 * @throws PortalException if a user with the primary key or a matching web 3146 content article could not be found, or if a portal exception 3147 occurred 3148 * @throws SystemException if a system exception occurred 3149 */ 3150 @Override 3151 public com.liferay.portlet.journal.model.JournalArticle updateArticle( 3152 long userId, long groupId, long folderId, java.lang.String articleId, 3153 double version, 3154 java.util.Map<java.util.Locale, java.lang.String> titleMap, 3155 java.util.Map<java.util.Locale, java.lang.String> descriptionMap, 3156 java.lang.String content, java.lang.String layoutUuid, 3157 com.liferay.portal.service.ServiceContext serviceContext) 3158 throws com.liferay.portal.kernel.exception.PortalException, 3159 com.liferay.portal.kernel.exception.SystemException { 3160 return _journalArticleLocalService.updateArticle(userId, groupId, 3161 folderId, articleId, version, titleMap, descriptionMap, content, 3162 layoutUuid, serviceContext); 3163 } 3164 3165 /** 3166 * Updates the web content article with additional parameters. 3167 * 3168 * @param userId the primary key of the user updating the web content 3169 article 3170 * @param groupId the primary key of the web content article's group 3171 * @param folderId the primary key of the web content article folder 3172 * @param articleId the primary key of the web content article 3173 * @param version the web content article's version 3174 * @param titleMap the web content article's locales and localized titles 3175 * @param descriptionMap the web content article's locales and localized 3176 descriptions 3177 * @param content the HTML content wrapped in XML. For more information, 3178 see the content example in the class description for {@link 3179 JournalArticleLocalServiceImpl}. 3180 * @param type the structure's type, if the web content article is related 3181 to a DDM structure. For more information, see {@link 3182 com.liferay.portlet.dynamicdatamapping.model.DDMStructureConstants}. 3183 * @param ddmStructureKey the primary key of the web content article's DDM 3184 structure, if the article is related to a DDM structure, or 3185 <code>null</code> otherwise 3186 * @param ddmTemplateKey the primary key of the web content article's DDM 3187 template (optionally <code>null</code>). If the article is 3188 related to a DDM structure, the template's structure must match 3189 it. 3190 * @param layoutUuid the unique string identifying the web content 3191 article's display page 3192 * @param displayDateMonth the month the web content article is set to 3193 display 3194 * @param displayDateDay the calendar day the web content article is set to 3195 display 3196 * @param displayDateYear the year the web content article is set to 3197 display 3198 * @param displayDateHour the hour the web content article is set to 3199 display 3200 * @param displayDateMinute the minute the web content article is set to 3201 display 3202 * @param expirationDateMonth the month the web content article is set to 3203 expire 3204 * @param expirationDateDay the calendar day the web content article is set 3205 to expire 3206 * @param expirationDateYear the year the web content article is set to 3207 expire 3208 * @param expirationDateHour the hour the web content article is set to 3209 expire 3210 * @param expirationDateMinute the minute the web content article is set to 3211 expire 3212 * @param neverExpire whether the web content article is not set to auto 3213 expire 3214 * @param reviewDateMonth the month the web content article is set for 3215 review 3216 * @param reviewDateDay the calendar day the web content article is set for 3217 review 3218 * @param reviewDateYear the year the web content article is set for review 3219 * @param reviewDateHour the hour the web content article is set for review 3220 * @param reviewDateMinute the minute the web content article is set for 3221 review 3222 * @param neverReview whether the web content article is not set for review 3223 * @param indexable whether the web content is searchable 3224 * @param smallImage whether to update web content article's a small image. 3225 A file must be passed in as <code>smallImageFile</code> value, 3226 otherwise the current small image is deleted. 3227 * @param smallImageURL the web content article's small image URL 3228 (optionally <code>null</code>) 3229 * @param smallImageFile the web content article's new small image file 3230 (optionally <code>null</code>). Must pass in 3231 <code>smallImage</code> value of <code>true</code> to replace the 3232 article's small image file. 3233 * @param images the web content's images (optionally <code>null</code>) 3234 * @param articleURL the web content article's accessible URL (optionally 3235 <code>null</code>) 3236 * @param serviceContext the service context to be applied. Can set the 3237 modification date, expando bridge attributes, asset category IDs, 3238 asset tag names, asset link entry IDs, workflow actions, the 3239 "defaultLanguageId" and "urlTitle" attributes, and can set 3240 whether to add the default command update for the web content 3241 article. With respect to social activities, by setting the 3242 service context's command to {@link 3243 com.liferay.portal.kernel.util.Constants#UPDATE}, the invocation 3244 is considered a web content update activity; otherwise it is 3245 considered a web content add activity. 3246 * @return the updated web content article 3247 * @throws PortalException if a user with the primary key or a matching web 3248 content article could not be found, or if a portal exception 3249 occurred 3250 * @throws SystemException if a system exception occurred 3251 */ 3252 @Override 3253 public com.liferay.portlet.journal.model.JournalArticle updateArticle( 3254 long userId, long groupId, long folderId, java.lang.String articleId, 3255 double version, 3256 java.util.Map<java.util.Locale, java.lang.String> titleMap, 3257 java.util.Map<java.util.Locale, java.lang.String> descriptionMap, 3258 java.lang.String content, java.lang.String type, 3259 java.lang.String ddmStructureKey, java.lang.String ddmTemplateKey, 3260 java.lang.String layoutUuid, int displayDateMonth, int displayDateDay, 3261 int displayDateYear, int displayDateHour, int displayDateMinute, 3262 int expirationDateMonth, int expirationDateDay, int expirationDateYear, 3263 int expirationDateHour, int expirationDateMinute, boolean neverExpire, 3264 int reviewDateMonth, int reviewDateDay, int reviewDateYear, 3265 int reviewDateHour, int reviewDateMinute, boolean neverReview, 3266 boolean indexable, boolean smallImage, java.lang.String smallImageURL, 3267 java.io.File smallImageFile, 3268 java.util.Map<java.lang.String, byte[]> images, 3269 java.lang.String articleURL, 3270 com.liferay.portal.service.ServiceContext serviceContext) 3271 throws com.liferay.portal.kernel.exception.PortalException, 3272 com.liferay.portal.kernel.exception.SystemException { 3273 return _journalArticleLocalService.updateArticle(userId, groupId, 3274 folderId, articleId, version, titleMap, descriptionMap, content, 3275 type, ddmStructureKey, ddmTemplateKey, layoutUuid, 3276 displayDateMonth, displayDateDay, displayDateYear, displayDateHour, 3277 displayDateMinute, expirationDateMonth, expirationDateDay, 3278 expirationDateYear, expirationDateHour, expirationDateMinute, 3279 neverExpire, reviewDateMonth, reviewDateDay, reviewDateYear, 3280 reviewDateHour, reviewDateMinute, neverReview, indexable, 3281 smallImage, smallImageURL, smallImageFile, images, articleURL, 3282 serviceContext); 3283 } 3284 3285 /** 3286 * Updates the web content article matching the version, replacing its 3287 * folder and content. 3288 * 3289 * @param userId the primary key of the user updating the web content 3290 article 3291 * @param groupId the primary key of the web content article's group 3292 * @param folderId the primary key of the web content article folder 3293 * @param articleId the primary key of the web content article 3294 * @param version the web content article's version 3295 * @param content the HTML content wrapped in XML. For more information, 3296 see the content example in the class description for {@link 3297 JournalArticleLocalServiceImpl}. 3298 * @param serviceContext the service context to be applied. Can set the 3299 modification date, expando bridge attributes, asset category IDs, 3300 asset tag names, asset link entry IDs, workflow actions, the 3301 "defaultLanguageId" and "urlTitle" attributes, and can set 3302 whether to add the default command update for the web content 3303 article. With respect to social activities, by setting the 3304 service context's command to {@link 3305 com.liferay.portal.kernel.util.Constants#UPDATE}, the invocation 3306 is considered a web content update activity; otherwise it is 3307 considered a web content add activity. 3308 * @return the updated web content article 3309 * @throws PortalException if a user with the primary key or a matching web 3310 content article could not be found, or if a portal exception 3311 occurred 3312 * @throws SystemException if a system exception occurred 3313 */ 3314 @Override 3315 public com.liferay.portlet.journal.model.JournalArticle updateArticle( 3316 long userId, long groupId, long folderId, java.lang.String articleId, 3317 double version, java.lang.String content, 3318 com.liferay.portal.service.ServiceContext serviceContext) 3319 throws com.liferay.portal.kernel.exception.PortalException, 3320 com.liferay.portal.kernel.exception.SystemException { 3321 return _journalArticleLocalService.updateArticle(userId, groupId, 3322 folderId, articleId, version, content, serviceContext); 3323 } 3324 3325 /** 3326 * @deprecated As of 6.2.0, replaced by {@link 3327 #updateArticleTranslation(long, String, double, Locale, 3328 String, String, String, Map, ServiceContext)} 3329 */ 3330 @Override 3331 public com.liferay.portlet.journal.model.JournalArticle updateArticleTranslation( 3332 long groupId, java.lang.String articleId, double version, 3333 java.util.Locale locale, java.lang.String title, 3334 java.lang.String description, java.lang.String content, 3335 java.util.Map<java.lang.String, byte[]> images) 3336 throws com.liferay.portal.kernel.exception.PortalException, 3337 com.liferay.portal.kernel.exception.SystemException { 3338 return _journalArticleLocalService.updateArticleTranslation(groupId, 3339 articleId, version, locale, title, description, content, images); 3340 } 3341 3342 /** 3343 * Updates the translation of the web content article. 3344 * 3345 * @param groupId the primary key of the web content article's group 3346 * @param articleId the primary key of the web content article 3347 * @param version the web content article's version 3348 * @param locale the locale of the web content article's display template 3349 * @param title the translated web content article title 3350 * @param description the translated web content article description 3351 * @param content the HTML content wrapped in XML. For more information, 3352 see the content example in the class description for {@link 3353 JournalArticleLocalServiceImpl}. 3354 * @param images the web content's images 3355 * @param serviceContext the service context to be applied. Can set the 3356 modification date and "urlTitle" attribute for the web content 3357 article. 3358 * @return the updated web content article 3359 * @throws PortalException if a user with the primary key or a matching web 3360 content article could not be found, or if a portal exception 3361 occurred 3362 * @throws SystemException if a system exception occurred 3363 */ 3364 @Override 3365 public com.liferay.portlet.journal.model.JournalArticle updateArticleTranslation( 3366 long groupId, java.lang.String articleId, double version, 3367 java.util.Locale locale, java.lang.String title, 3368 java.lang.String description, java.lang.String content, 3369 java.util.Map<java.lang.String, byte[]> images, 3370 com.liferay.portal.service.ServiceContext serviceContext) 3371 throws com.liferay.portal.kernel.exception.PortalException, 3372 com.liferay.portal.kernel.exception.SystemException { 3373 return _journalArticleLocalService.updateArticleTranslation(groupId, 3374 articleId, version, locale, title, description, content, images, 3375 serviceContext); 3376 } 3377 3378 /** 3379 * Updates the web content article's asset with the new asset categories, 3380 * tag names, and link entries, removing and adding them as necessary. 3381 * 3382 * @param userId the primary key of the user updating the web content 3383 article's asset 3384 * @param article the web content article 3385 * @param assetCategoryIds the primary keys of the new asset categories 3386 * @param assetTagNames the new asset tag names 3387 * @param assetLinkEntryIds the primary keys of the new asset link entries 3388 * @throws PortalException if a portal exception occurred 3389 * @throws SystemException if a system exception occurred 3390 */ 3391 @Override 3392 public void updateAsset(long userId, 3393 com.liferay.portlet.journal.model.JournalArticle article, 3394 long[] assetCategoryIds, java.lang.String[] assetTagNames, 3395 long[] assetLinkEntryIds) 3396 throws com.liferay.portal.kernel.exception.PortalException, 3397 com.liferay.portal.kernel.exception.SystemException { 3398 _journalArticleLocalService.updateAsset(userId, article, 3399 assetCategoryIds, assetTagNames, assetLinkEntryIds); 3400 } 3401 3402 /** 3403 * Updates the web content article matching the group, article ID, and 3404 * version, replacing its content. 3405 * 3406 * @param groupId the primary key of the web content article's group 3407 * @param articleId the primary key of the web content article 3408 * @param version the web content article's version 3409 * @param content the HTML content wrapped in XML. For more information, 3410 see the content example in the class description for {@link 3411 JournalArticleLocalServiceImpl}. 3412 * @return the updated web content article 3413 * @throws PortalException if a matching web content article could not be 3414 found 3415 * @throws SystemException if a system exception occurred 3416 */ 3417 @Override 3418 public com.liferay.portlet.journal.model.JournalArticle updateContent( 3419 long groupId, java.lang.String articleId, double version, 3420 java.lang.String content) 3421 throws com.liferay.portal.kernel.exception.PortalException, 3422 com.liferay.portal.kernel.exception.SystemException { 3423 return _journalArticleLocalService.updateContent(groupId, articleId, 3424 version, content); 3425 } 3426 3427 /** 3428 * Updates the workflow status of the web content article. 3429 * 3430 * @param userId the primary key of the user updating the web content 3431 article's status 3432 * @param article the web content article 3433 * @param status the web content article's workflow status. For more 3434 information see {@link WorkflowConstants} for constants starting 3435 with the "STATUS_" prefix. 3436 * @param articleURL the web content article's accessible URL 3437 * @param workflowContext the web content article's configured workflow 3438 context 3439 * @param serviceContext the service context to be applied. Can set the 3440 modification date, status date, and portlet preferences. With 3441 respect to social activities, by setting the service context's 3442 command to {@link 3443 com.liferay.portal.kernel.util.Constants#UPDATE}, the invocation 3444 is considered a web content update activity; otherwise it is 3445 considered a web content add activity. 3446 * @return the updated web content article 3447 * @throws PortalException if a portal exception occurred 3448 * @throws SystemException if a system exception occurred 3449 */ 3450 @Override 3451 public com.liferay.portlet.journal.model.JournalArticle updateStatus( 3452 long userId, com.liferay.portlet.journal.model.JournalArticle article, 3453 int status, java.lang.String articleURL, 3454 java.util.Map<java.lang.String, java.io.Serializable> workflowContext, 3455 com.liferay.portal.service.ServiceContext serviceContext) 3456 throws com.liferay.portal.kernel.exception.PortalException, 3457 com.liferay.portal.kernel.exception.SystemException { 3458 return _journalArticleLocalService.updateStatus(userId, article, 3459 status, articleURL, workflowContext, serviceContext); 3460 } 3461 3462 /** 3463 * Updates the workflow status of the web content article matching the class 3464 * PK. 3465 * 3466 * @param userId the primary key of the user updating the web content 3467 article's status 3468 * @param classPK the primary key of the DDM structure, if the web content 3469 article is related to a DDM structure, the primary key of the 3470 class associated with the article, or <code>0</code> otherwise 3471 * @param status the web content article's workflow status. For more 3472 information see {@link WorkflowConstants} for constants starting 3473 with the "STATUS_" prefix. 3474 * @param workflowContext the web content article's configured workflow 3475 * @param serviceContext the service context to be applied. Can set the 3476 modification date, portlet preferences, and can set whether to 3477 add the default command update for the web content article. 3478 * @return the updated web content article 3479 * @throws PortalException if a matching web content article could not be 3480 found or if a portal exception occurred 3481 * @throws SystemException if a system exception occurred 3482 */ 3483 @Override 3484 public com.liferay.portlet.journal.model.JournalArticle updateStatus( 3485 long userId, long classPK, int status, 3486 java.util.Map<java.lang.String, java.io.Serializable> workflowContext, 3487 com.liferay.portal.service.ServiceContext serviceContext) 3488 throws com.liferay.portal.kernel.exception.PortalException, 3489 com.liferay.portal.kernel.exception.SystemException { 3490 return _journalArticleLocalService.updateStatus(userId, classPK, 3491 status, workflowContext, serviceContext); 3492 } 3493 3494 /** 3495 * Updates the workflow status of the web content article matching the 3496 * group, article ID, and version. 3497 * 3498 * @param userId the primary key of the user updating the web content 3499 article's status 3500 * @param groupId the primary key of the web content article's group 3501 * @param articleId the primary key of the web content article 3502 * @param version the web content article's version 3503 * @param status the web content article's workflow status. For more 3504 information see {@link WorkflowConstants} for constants starting 3505 with the "STATUS_" prefix. 3506 * @param articleURL the web content article's accessible URL 3507 * @param workflowContext the web content article's configured workflow 3508 * @param serviceContext the service context to be applied. Can set the 3509 modification date, portlet preferences, and can set whether to 3510 add the default command update for the web content article. 3511 * @return the updated web content article 3512 * @throws PortalException if a matching web content article could not be 3513 found or if a portal exception occurred 3514 * @throws SystemException if a system exception occurred 3515 */ 3516 @Override 3517 public com.liferay.portlet.journal.model.JournalArticle updateStatus( 3518 long userId, long groupId, java.lang.String articleId, double version, 3519 int status, java.lang.String articleURL, 3520 java.util.Map<java.lang.String, java.io.Serializable> workflowContext, 3521 com.liferay.portal.service.ServiceContext serviceContext) 3522 throws com.liferay.portal.kernel.exception.PortalException, 3523 com.liferay.portal.kernel.exception.SystemException { 3524 return _journalArticleLocalService.updateStatus(userId, groupId, 3525 articleId, version, status, articleURL, workflowContext, 3526 serviceContext); 3527 } 3528 3529 /** 3530 * Updates the web content articles matching the group, class name ID, and 3531 * DDM template key, replacing the DDM template key with a new one. 3532 * 3533 * @param groupId the primary key of the web content article's group 3534 * @param classNameId the primary key of the DDMStructure class if the web 3535 content article is related to a DDM structure, the primary key of 3536 the class name associated with the article, or {@link 3537 JournalArticleConstants#CLASSNAME_ID_DEFAULT} otherwise 3538 * @param oldDDMTemplateKey the primary key of the web content article's 3539 old DDM template 3540 * @param newDDMTemplateKey the primary key of the web content article's 3541 new DDM template 3542 * @throws SystemException if a system exception occurred 3543 */ 3544 @Override 3545 public void updateTemplateId(long groupId, long classNameId, 3546 java.lang.String oldDDMTemplateKey, java.lang.String newDDMTemplateKey) 3547 throws com.liferay.portal.kernel.exception.SystemException { 3548 _journalArticleLocalService.updateTemplateId(groupId, classNameId, 3549 oldDDMTemplateKey, newDDMTemplateKey); 3550 } 3551 3552 /** 3553 * @deprecated As of 6.1.0, replaced by {@link #getWrappedService} 3554 */ 3555 public JournalArticleLocalService getWrappedJournalArticleLocalService() { 3556 return _journalArticleLocalService; 3557 } 3558 3559 /** 3560 * @deprecated As of 6.1.0, replaced by {@link #setWrappedService} 3561 */ 3562 public void setWrappedJournalArticleLocalService( 3563 JournalArticleLocalService journalArticleLocalService) { 3564 _journalArticleLocalService = journalArticleLocalService; 3565 } 3566 3567 @Override 3568 public JournalArticleLocalService getWrappedService() { 3569 return _journalArticleLocalService; 3570 } 3571 3572 @Override 3573 public void setWrappedService( 3574 JournalArticleLocalService journalArticleLocalService) { 3575 _journalArticleLocalService = journalArticleLocalService; 3576 } 3577 3578 private JournalArticleLocalService _journalArticleLocalService; 3579 }