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