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