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