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