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.dynamicdatamapping.service; 016 017 import aQute.bnd.annotation.ProviderType; 018 019 import com.liferay.portal.service.ServiceWrapper; 020 021 /** 022 * Provides a wrapper for {@link DDMTemplateLocalService}. 023 * 024 * @author Brian Wing Shun Chan 025 * @see DDMTemplateLocalService 026 * @generated 027 */ 028 @ProviderType 029 public class DDMTemplateLocalServiceWrapper implements DDMTemplateLocalService, 030 ServiceWrapper<DDMTemplateLocalService> { 031 public DDMTemplateLocalServiceWrapper( 032 DDMTemplateLocalService ddmTemplateLocalService) { 033 _ddmTemplateLocalService = ddmTemplateLocalService; 034 } 035 036 /** 037 * Adds the d d m template to the database. Also notifies the appropriate model listeners. 038 * 039 * @param ddmTemplate the d d m template 040 * @return the d d m template that was added 041 * @throws SystemException if a system exception occurred 042 */ 043 @Override 044 public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate addDDMTemplate( 045 com.liferay.portlet.dynamicdatamapping.model.DDMTemplate ddmTemplate) 046 throws com.liferay.portal.kernel.exception.SystemException { 047 return _ddmTemplateLocalService.addDDMTemplate(ddmTemplate); 048 } 049 050 /** 051 * Creates a new d d m template with the primary key. Does not add the d d m template to the database. 052 * 053 * @param templateId the primary key for the new d d m template 054 * @return the new d d m template 055 */ 056 @Override 057 public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate createDDMTemplate( 058 long templateId) { 059 return _ddmTemplateLocalService.createDDMTemplate(templateId); 060 } 061 062 /** 063 * Deletes the d d m template with the primary key from the database. Also notifies the appropriate model listeners. 064 * 065 * @param templateId the primary key of the d d m template 066 * @return the d d m template that was removed 067 * @throws PortalException if a d d m template with the primary key could not be found 068 * @throws SystemException if a system exception occurred 069 */ 070 @Override 071 public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate deleteDDMTemplate( 072 long templateId) 073 throws com.liferay.portal.kernel.exception.PortalException, 074 com.liferay.portal.kernel.exception.SystemException { 075 return _ddmTemplateLocalService.deleteDDMTemplate(templateId); 076 } 077 078 /** 079 * Deletes the d d m template from the database. Also notifies the appropriate model listeners. 080 * 081 * @param ddmTemplate the d d m template 082 * @return the d d m template that was removed 083 * @throws SystemException if a system exception occurred 084 */ 085 @Override 086 public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate deleteDDMTemplate( 087 com.liferay.portlet.dynamicdatamapping.model.DDMTemplate ddmTemplate) 088 throws com.liferay.portal.kernel.exception.SystemException { 089 return _ddmTemplateLocalService.deleteDDMTemplate(ddmTemplate); 090 } 091 092 @Override 093 public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() { 094 return _ddmTemplateLocalService.dynamicQuery(); 095 } 096 097 /** 098 * Performs a dynamic query on the database and returns the matching rows. 099 * 100 * @param dynamicQuery the dynamic query 101 * @return the matching rows 102 * @throws SystemException if a system exception occurred 103 */ 104 @Override 105 @SuppressWarnings("rawtypes") 106 public java.util.List dynamicQuery( 107 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) 108 throws com.liferay.portal.kernel.exception.SystemException { 109 return _ddmTemplateLocalService.dynamicQuery(dynamicQuery); 110 } 111 112 /** 113 * Performs a dynamic query on the database and returns a range of the matching rows. 114 * 115 * <p> 116 * 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.dynamicdatamapping.model.impl.DDMTemplateModelImpl}. 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. 117 * </p> 118 * 119 * @param dynamicQuery the dynamic query 120 * @param start the lower bound of the range of model instances 121 * @param end the upper bound of the range of model instances (not inclusive) 122 * @return the range of matching rows 123 * @throws SystemException if a system exception occurred 124 */ 125 @Override 126 @SuppressWarnings("rawtypes") 127 public java.util.List dynamicQuery( 128 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, 129 int end) throws com.liferay.portal.kernel.exception.SystemException { 130 return _ddmTemplateLocalService.dynamicQuery(dynamicQuery, start, end); 131 } 132 133 /** 134 * Performs a dynamic query on the database and returns an ordered range of the matching rows. 135 * 136 * <p> 137 * 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.dynamicdatamapping.model.impl.DDMTemplateModelImpl}. 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. 138 * </p> 139 * 140 * @param dynamicQuery the dynamic query 141 * @param start the lower bound of the range of model instances 142 * @param end the upper bound of the range of model instances (not inclusive) 143 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 144 * @return the ordered range of matching rows 145 * @throws SystemException if a system exception occurred 146 */ 147 @Override 148 @SuppressWarnings("rawtypes") 149 public 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 _ddmTemplateLocalService.dynamicQuery(dynamicQuery, start, end, 155 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 @Override 166 public long dynamicQueryCount( 167 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) 168 throws com.liferay.portal.kernel.exception.SystemException { 169 return _ddmTemplateLocalService.dynamicQueryCount(dynamicQuery); 170 } 171 172 /** 173 * Returns the number of rows that match the dynamic query. 174 * 175 * @param dynamicQuery the dynamic query 176 * @param projection the projection to apply to the query 177 * @return the number of rows that match the dynamic query 178 * @throws SystemException if a system exception occurred 179 */ 180 @Override 181 public long dynamicQueryCount( 182 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, 183 com.liferay.portal.kernel.dao.orm.Projection projection) 184 throws com.liferay.portal.kernel.exception.SystemException { 185 return _ddmTemplateLocalService.dynamicQueryCount(dynamicQuery, 186 projection); 187 } 188 189 @Override 190 public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate fetchDDMTemplate( 191 long templateId) 192 throws com.liferay.portal.kernel.exception.SystemException { 193 return _ddmTemplateLocalService.fetchDDMTemplate(templateId); 194 } 195 196 /** 197 * Returns the d d m template with the matching UUID and company. 198 * 199 * @param uuid the d d m template's UUID 200 * @param companyId the primary key of the company 201 * @return the matching d d m template, or <code>null</code> if a matching d d m template could not be found 202 * @throws SystemException if a system exception occurred 203 */ 204 @Override 205 public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate fetchDDMTemplateByUuidAndCompanyId( 206 java.lang.String uuid, long companyId) 207 throws com.liferay.portal.kernel.exception.SystemException { 208 return _ddmTemplateLocalService.fetchDDMTemplateByUuidAndCompanyId(uuid, 209 companyId); 210 } 211 212 /** 213 * Returns the d d m template matching the UUID and group. 214 * 215 * @param uuid the d d m template's UUID 216 * @param groupId the primary key of the group 217 * @return the matching d d m template, or <code>null</code> if a matching d d m template could not be found 218 * @throws SystemException if a system exception occurred 219 */ 220 @Override 221 public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate fetchDDMTemplateByUuidAndGroupId( 222 java.lang.String uuid, long groupId) 223 throws com.liferay.portal.kernel.exception.SystemException { 224 return _ddmTemplateLocalService.fetchDDMTemplateByUuidAndGroupId(uuid, 225 groupId); 226 } 227 228 /** 229 * Returns the d d m template with the primary key. 230 * 231 * @param templateId the primary key of the d d m template 232 * @return the d d m template 233 * @throws PortalException if a d d m template with the primary key could not be found 234 * @throws SystemException if a system exception occurred 235 */ 236 @Override 237 public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate getDDMTemplate( 238 long templateId) 239 throws com.liferay.portal.kernel.exception.PortalException, 240 com.liferay.portal.kernel.exception.SystemException { 241 return _ddmTemplateLocalService.getDDMTemplate(templateId); 242 } 243 244 @Override 245 public com.liferay.portal.model.PersistedModel getPersistedModel( 246 java.io.Serializable primaryKeyObj) 247 throws com.liferay.portal.kernel.exception.PortalException, 248 com.liferay.portal.kernel.exception.SystemException { 249 return _ddmTemplateLocalService.getPersistedModel(primaryKeyObj); 250 } 251 252 /** 253 * Returns the d d m template with the matching UUID and company. 254 * 255 * @param uuid the d d m template's UUID 256 * @param companyId the primary key of the company 257 * @return the matching d d m template 258 * @throws PortalException if a matching d d m template could not be found 259 * @throws SystemException if a system exception occurred 260 */ 261 @Override 262 public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate getDDMTemplateByUuidAndCompanyId( 263 java.lang.String uuid, long companyId) 264 throws com.liferay.portal.kernel.exception.PortalException, 265 com.liferay.portal.kernel.exception.SystemException { 266 return _ddmTemplateLocalService.getDDMTemplateByUuidAndCompanyId(uuid, 267 companyId); 268 } 269 270 /** 271 * Returns the d d m template matching the UUID and group. 272 * 273 * @param uuid the d d m template's UUID 274 * @param groupId the primary key of the group 275 * @return the matching d d m template 276 * @throws PortalException if a matching d d m template could not be found 277 * @throws SystemException if a system exception occurred 278 */ 279 @Override 280 public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate getDDMTemplateByUuidAndGroupId( 281 java.lang.String uuid, long groupId) 282 throws com.liferay.portal.kernel.exception.PortalException, 283 com.liferay.portal.kernel.exception.SystemException { 284 return _ddmTemplateLocalService.getDDMTemplateByUuidAndGroupId(uuid, 285 groupId); 286 } 287 288 /** 289 * Returns a range of all the d d m templates. 290 * 291 * <p> 292 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.dynamicdatamapping.model.impl.DDMTemplateModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 293 * </p> 294 * 295 * @param start the lower bound of the range of d d m templates 296 * @param end the upper bound of the range of d d m templates (not inclusive) 297 * @return the range of d d m templates 298 * @throws SystemException if a system exception occurred 299 */ 300 @Override 301 public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> getDDMTemplates( 302 int start, int end) 303 throws com.liferay.portal.kernel.exception.SystemException { 304 return _ddmTemplateLocalService.getDDMTemplates(start, end); 305 } 306 307 /** 308 * Returns the number of d d m templates. 309 * 310 * @return the number of d d m templates 311 * @throws SystemException if a system exception occurred 312 */ 313 @Override 314 public int getDDMTemplatesCount() 315 throws com.liferay.portal.kernel.exception.SystemException { 316 return _ddmTemplateLocalService.getDDMTemplatesCount(); 317 } 318 319 /** 320 * Updates the d d m template in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners. 321 * 322 * @param ddmTemplate the d d m template 323 * @return the d d m template that was updated 324 * @throws SystemException if a system exception occurred 325 */ 326 @Override 327 public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate updateDDMTemplate( 328 com.liferay.portlet.dynamicdatamapping.model.DDMTemplate ddmTemplate) 329 throws com.liferay.portal.kernel.exception.SystemException { 330 return _ddmTemplateLocalService.updateDDMTemplate(ddmTemplate); 331 } 332 333 /** 334 * Returns the Spring bean ID for this bean. 335 * 336 * @return the Spring bean ID for this bean 337 */ 338 @Override 339 public java.lang.String getBeanIdentifier() { 340 return _ddmTemplateLocalService.getBeanIdentifier(); 341 } 342 343 /** 344 * Sets the Spring bean ID for this bean. 345 * 346 * @param beanIdentifier the Spring bean ID for this bean 347 */ 348 @Override 349 public void setBeanIdentifier(java.lang.String beanIdentifier) { 350 _ddmTemplateLocalService.setBeanIdentifier(beanIdentifier); 351 } 352 353 /** 354 * Adds a template. 355 * 356 * @param userId the primary key of the template's creator/owner 357 * @param groupId the primary key of the group 358 * @param classNameId the primary key of the class name for the template's 359 related model 360 * @param classPK the primary key of the template's related entity 361 * @param nameMap the template's locales and localized names 362 * @param descriptionMap the template's locales and localized descriptions 363 * @param type the template's type. For more information, see {@link 364 com.liferay.portlet.dynamicdatamapping.model.DDMTemplateConstants}. 365 * @param mode the template's mode. For more information, see {@link 366 com.liferay.portlet.dynamicdatamapping.model.DDMTemplateConstants}. 367 * @param language the template's script language. For more information, 368 see {@link 369 com.liferay.portlet.dynamicdatamapping.model.DDMTemplateConstants}. 370 * @param script the template's script 371 * @param serviceContext the service context to be applied. Can set the 372 UUID, creation date, modification date, guest permissions, and 373 group permissions for the template. 374 * @return the template 375 * @throws PortalException if a portal exception occurred 376 * @throws SystemException if a system exception occurred 377 */ 378 @Override 379 public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate addTemplate( 380 long userId, long groupId, long classNameId, long classPK, 381 java.util.Map<java.util.Locale, java.lang.String> nameMap, 382 java.util.Map<java.util.Locale, java.lang.String> descriptionMap, 383 java.lang.String type, java.lang.String mode, 384 java.lang.String language, java.lang.String script, 385 com.liferay.portal.service.ServiceContext serviceContext) 386 throws com.liferay.portal.kernel.exception.PortalException, 387 com.liferay.portal.kernel.exception.SystemException { 388 return _ddmTemplateLocalService.addTemplate(userId, groupId, 389 classNameId, classPK, nameMap, descriptionMap, type, mode, 390 language, script, serviceContext); 391 } 392 393 /** 394 * Adds a template with additional parameters. 395 * 396 * @param userId the primary key of the template's creator/owner 397 * @param groupId the primary key of the group 398 * @param classNameId the primary key of the class name for the template's 399 related model 400 * @param classPK the primary key of the template's related entity 401 * @param templateKey the unique string identifying the template 402 (optionally <code>null</code>) 403 * @param nameMap the template's locales and localized names 404 * @param descriptionMap the template's locales and localized descriptions 405 * @param type the template's type. For more information, see {@link 406 com.liferay.portlet.dynamicdatamapping.model.DDMTemplateConstants}. 407 * @param mode the template's mode. For more information, see {@link 408 com.liferay.portlet.dynamicdatamapping.model.DDMTemplateConstants}. 409 * @param language the template's script language. For more information, 410 see {@link 411 com.liferay.portlet.dynamicdatamapping.model.DDMTemplateConstants}. 412 * @param script the template's script 413 * @param cacheable whether the template is cacheable 414 * @param smallImage whether the template has a small image 415 * @param smallImageURL the template's small image URL (optionally 416 <code>null</code>) 417 * @param smallImageFile the template's small image file (optionally 418 <code>null</code>) 419 * @param serviceContext the service context to be applied. Can set the 420 UUID, creation date, modification date, guest permissions, and 421 group permissions for the template. 422 * @return the template 423 * @throws PortalException if a portal exception occurred 424 * @throws SystemException if a system exception occurred 425 */ 426 @Override 427 public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate addTemplate( 428 long userId, long groupId, long classNameId, long classPK, 429 java.lang.String templateKey, 430 java.util.Map<java.util.Locale, java.lang.String> nameMap, 431 java.util.Map<java.util.Locale, java.lang.String> descriptionMap, 432 java.lang.String type, java.lang.String mode, 433 java.lang.String language, java.lang.String script, boolean cacheable, 434 boolean smallImage, java.lang.String smallImageURL, 435 java.io.File smallImageFile, 436 com.liferay.portal.service.ServiceContext serviceContext) 437 throws com.liferay.portal.kernel.exception.PortalException, 438 com.liferay.portal.kernel.exception.SystemException { 439 return _ddmTemplateLocalService.addTemplate(userId, groupId, 440 classNameId, classPK, templateKey, nameMap, descriptionMap, type, 441 mode, language, script, cacheable, smallImage, smallImageURL, 442 smallImageFile, serviceContext); 443 } 444 445 /** 446 * Adds the resources to the template. 447 * 448 * @param template the template to add resources to 449 * @param addGroupPermissions whether to add group permissions 450 * @param addGuestPermissions whether to add guest permissions 451 * @throws PortalException if a portal exception occurred 452 * @throws SystemException if a system exception occurred 453 */ 454 @Override 455 public void addTemplateResources( 456 com.liferay.portlet.dynamicdatamapping.model.DDMTemplate template, 457 boolean addGroupPermissions, boolean addGuestPermissions) 458 throws com.liferay.portal.kernel.exception.PortalException, 459 com.liferay.portal.kernel.exception.SystemException { 460 _ddmTemplateLocalService.addTemplateResources(template, 461 addGroupPermissions, addGuestPermissions); 462 } 463 464 /** 465 * Adds the model resources with the permissions to the template. 466 * 467 * @param template the template to add resources to 468 * @param groupPermissions the group permissions to be added 469 * @param guestPermissions the guest permissions to be added 470 * @throws PortalException if a portal exception occurred 471 * @throws SystemException if a system exception occurred 472 */ 473 @Override 474 public void addTemplateResources( 475 com.liferay.portlet.dynamicdatamapping.model.DDMTemplate template, 476 java.lang.String[] groupPermissions, java.lang.String[] guestPermissions) 477 throws com.liferay.portal.kernel.exception.PortalException, 478 com.liferay.portal.kernel.exception.SystemException { 479 _ddmTemplateLocalService.addTemplateResources(template, 480 groupPermissions, guestPermissions); 481 } 482 483 /** 484 * Copies the template, creating a new template with all the values 485 * extracted from the original one. This method supports defining a new name 486 * and description. 487 * 488 * @param userId the primary key of the template's creator/owner 489 * @param templateId the primary key of the template to be copied 490 * @param nameMap the new template's locales and localized names 491 * @param descriptionMap the new template's locales and localized 492 descriptions 493 * @param serviceContext the service context to be applied. Can set the 494 UUID, creation date, modification date, guest permissions, and 495 group permissions for the template. 496 * @return the new template 497 * @throws PortalException if a portal exception occurred 498 * @throws SystemException if a system exception occurred 499 */ 500 @Override 501 public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate copyTemplate( 502 long userId, long templateId, 503 java.util.Map<java.util.Locale, java.lang.String> nameMap, 504 java.util.Map<java.util.Locale, java.lang.String> descriptionMap, 505 com.liferay.portal.service.ServiceContext serviceContext) 506 throws com.liferay.portal.kernel.exception.PortalException, 507 com.liferay.portal.kernel.exception.SystemException { 508 return _ddmTemplateLocalService.copyTemplate(userId, templateId, 509 nameMap, descriptionMap, serviceContext); 510 } 511 512 @Override 513 public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate copyTemplate( 514 long userId, long templateId, 515 com.liferay.portal.service.ServiceContext serviceContext) 516 throws com.liferay.portal.kernel.exception.PortalException, 517 com.liferay.portal.kernel.exception.SystemException { 518 return _ddmTemplateLocalService.copyTemplate(userId, templateId, 519 serviceContext); 520 } 521 522 /** 523 * Copies all the templates matching the class name ID, class PK, and type. 524 * This method creates new templates, extracting all the values from the old 525 * ones and updating their class PKs. 526 * 527 * @param userId the primary key of the template's creator/owner 528 * @param classNameId the primary key of the class name for the template's 529 related model 530 * @param oldClassPK the primary key of the old template's related entity 531 * @param newClassPK the primary key of the new template's related entity 532 * @param type the template's type. For more information, see {@link 533 com.liferay.portlet.dynamicdatamapping.model.DDMTemplateConstants}. 534 * @param serviceContext the service context to be applied. Can set the 535 creation date, modification date, guest permissions, and group 536 permissions for the new templates. 537 * @return the new templates 538 * @throws PortalException if a portal exception occurred 539 * @throws SystemException if a system exception occurred 540 */ 541 @Override 542 public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> copyTemplates( 543 long userId, long classNameId, long oldClassPK, long newClassPK, 544 java.lang.String type, 545 com.liferay.portal.service.ServiceContext serviceContext) 546 throws com.liferay.portal.kernel.exception.PortalException, 547 com.liferay.portal.kernel.exception.SystemException { 548 return _ddmTemplateLocalService.copyTemplates(userId, classNameId, 549 oldClassPK, newClassPK, type, serviceContext); 550 } 551 552 /** 553 * Deletes the template and its resources. 554 * 555 * @param template the template to be deleted 556 * @throws PortalException if a portal exception occurred 557 * @throws SystemException if a system exception occurred 558 */ 559 @Override 560 public void deleteTemplate( 561 com.liferay.portlet.dynamicdatamapping.model.DDMTemplate template) 562 throws com.liferay.portal.kernel.exception.PortalException, 563 com.liferay.portal.kernel.exception.SystemException { 564 _ddmTemplateLocalService.deleteTemplate(template); 565 } 566 567 /** 568 * Deletes the template and its resources. 569 * 570 * @param templateId the primary key of the template to be deleted 571 * @throws PortalException if a portal exception occurred 572 * @throws SystemException if a system exception occurred 573 */ 574 @Override 575 public void deleteTemplate(long templateId) 576 throws com.liferay.portal.kernel.exception.PortalException, 577 com.liferay.portal.kernel.exception.SystemException { 578 _ddmTemplateLocalService.deleteTemplate(templateId); 579 } 580 581 /** 582 * Deletes all the templates of the group. 583 * 584 * @param groupId the primary key of the group 585 * @throws PortalException if a portal exception occurred 586 * @throws SystemException if a system exception occurred 587 */ 588 @Override 589 public void deleteTemplates(long groupId) 590 throws com.liferay.portal.kernel.exception.PortalException, 591 com.liferay.portal.kernel.exception.SystemException { 592 _ddmTemplateLocalService.deleteTemplates(groupId); 593 } 594 595 @Override 596 public void deleteTemplates(long groupId, long classNameId) 597 throws com.liferay.portal.kernel.exception.PortalException, 598 com.liferay.portal.kernel.exception.SystemException { 599 _ddmTemplateLocalService.deleteTemplates(groupId, classNameId); 600 } 601 602 /** 603 * Returns the template matching the group and template key. 604 * 605 * @param groupId the primary key of the group 606 * @param classNameId the primary key of the class name for the template's 607 related model 608 * @param templateKey the unique string identifying the template 609 * @return the matching template, or <code>null</code> if a matching 610 template could not be found 611 * @throws SystemException if a system exception occurred 612 */ 613 @Override 614 public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate fetchTemplate( 615 long groupId, long classNameId, java.lang.String templateKey) 616 throws com.liferay.portal.kernel.exception.SystemException { 617 return _ddmTemplateLocalService.fetchTemplate(groupId, classNameId, 618 templateKey); 619 } 620 621 /** 622 * Returns the template matching the group and template key, optionally in 623 * the global scope. 624 * 625 * <p> 626 * This method first searches in the given group. If the template is still 627 * not found and <code>includeGlobalTemplates</code> is set to 628 * <code>true</code>, this method searches the global group. 629 * </p> 630 * 631 * @param groupId the primary key of the group 632 * @param classNameId the primary key of the class name for the template's 633 related model 634 * @param templateKey the unique string identifying the template 635 * @param includeGlobalTemplates whether to include the global scope in the 636 search 637 * @return the matching template, or <code>null</code> if a matching 638 template could not be found 639 * @throws PortalException if a portal exception occurred 640 * @throws SystemException if a system exception occurred 641 */ 642 @Override 643 public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate fetchTemplate( 644 long groupId, long classNameId, java.lang.String templateKey, 645 boolean includeGlobalTemplates) 646 throws com.liferay.portal.kernel.exception.PortalException, 647 com.liferay.portal.kernel.exception.SystemException { 648 return _ddmTemplateLocalService.fetchTemplate(groupId, classNameId, 649 templateKey, includeGlobalTemplates); 650 } 651 652 /** 653 * Returns the template with the ID. 654 * 655 * @param templateId the primary key of the template 656 * @return the template with the ID 657 * @throws PortalException if a matching template could not be found 658 * @throws SystemException if a system exception occurred 659 */ 660 @Override 661 public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate getTemplate( 662 long templateId) 663 throws com.liferay.portal.kernel.exception.PortalException, 664 com.liferay.portal.kernel.exception.SystemException { 665 return _ddmTemplateLocalService.getTemplate(templateId); 666 } 667 668 /** 669 * Returns the template matching the group and template key. 670 * 671 * @param groupId the primary key of the group 672 * @param classNameId the primary key of the class name for the template's 673 related model 674 * @param templateKey the unique string identifying the template 675 * @return the matching template 676 * @throws PortalException if a matching template could not be found 677 * @throws SystemException if a system exception occurred 678 */ 679 @Override 680 public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate getTemplate( 681 long groupId, long classNameId, java.lang.String templateKey) 682 throws com.liferay.portal.kernel.exception.PortalException, 683 com.liferay.portal.kernel.exception.SystemException { 684 return _ddmTemplateLocalService.getTemplate(groupId, classNameId, 685 templateKey); 686 } 687 688 /** 689 * Returns the template matching the group and template key, optionally in 690 * the global scope. 691 * 692 * <p> 693 * This method first searches in the group. If the template is still not 694 * found and <code>includeGlobalTemplates</code> is set to 695 * <code>true</code>, this method searches the global group. 696 * </p> 697 * 698 * @param groupId the primary key of the group 699 * @param classNameId the primary key of the class name for the template's 700 related model 701 * @param templateKey the unique string identifying the template 702 * @param includeGlobalTemplates whether to include the global scope in the 703 search 704 * @return the matching template 705 * @throws PortalException if a matching template could not be found 706 * @throws SystemException if a system exception occurred 707 */ 708 @Override 709 public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate getTemplate( 710 long groupId, long classNameId, java.lang.String templateKey, 711 boolean includeGlobalTemplates) 712 throws com.liferay.portal.kernel.exception.PortalException, 713 com.liferay.portal.kernel.exception.SystemException { 714 return _ddmTemplateLocalService.getTemplate(groupId, classNameId, 715 templateKey, includeGlobalTemplates); 716 } 717 718 @Override 719 public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate getTemplateBySmallImageId( 720 long smallImageId) 721 throws com.liferay.portal.kernel.exception.PortalException, 722 com.liferay.portal.kernel.exception.SystemException { 723 return _ddmTemplateLocalService.getTemplateBySmallImageId(smallImageId); 724 } 725 726 /** 727 * Returns all the templates with the class PK. 728 * 729 * @param classPK the primary key of the template's related entity 730 * @return the templates with the class PK 731 * @throws SystemException if a system exception occurred 732 */ 733 @Override 734 public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> getTemplates( 735 long classPK) 736 throws com.liferay.portal.kernel.exception.SystemException { 737 return _ddmTemplateLocalService.getTemplates(classPK); 738 } 739 740 /** 741 * Returns all the templates matching the group and class name ID. 742 * 743 * @param groupId the primary key of the group 744 * @param classNameId the primary key of the class name for the template's 745 related model 746 * @return the matching templates 747 * @throws SystemException if a system exception occurred 748 */ 749 @Override 750 public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> getTemplates( 751 long groupId, long classNameId) 752 throws com.liferay.portal.kernel.exception.SystemException { 753 return _ddmTemplateLocalService.getTemplates(groupId, classNameId); 754 } 755 756 /** 757 * Returns all the templates matching the group, class name ID, and class 758 * PK. 759 * 760 * @param groupId the primary key of the group 761 * @param classNameId the primary key of the class name for the template's 762 related model 763 * @param classPK the primary key of the template's related entity 764 * @return the matching templates 765 * @throws SystemException if a system exception occurred 766 */ 767 @Override 768 public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> getTemplates( 769 long groupId, long classNameId, long classPK) 770 throws com.liferay.portal.kernel.exception.SystemException { 771 return _ddmTemplateLocalService.getTemplates(groupId, classNameId, 772 classPK); 773 } 774 775 /** 776 * Returns all the templates matching the group, class name ID, class PK, 777 * and type. 778 * 779 * @param groupId the primary key of the group 780 * @param classNameId the primary key of the class name for the template's 781 related model 782 * @param classPK the primary key of the template's related entity 783 * @param type the template's type. For more information, see {@link 784 com.liferay.portlet.dynamicdatamapping.model.DDMTemplateConstants}. 785 * @return the matching templates 786 * @throws SystemException if a system exception occurred 787 */ 788 @Override 789 public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> getTemplates( 790 long groupId, long classNameId, long classPK, java.lang.String type) 791 throws com.liferay.portal.kernel.exception.SystemException { 792 return _ddmTemplateLocalService.getTemplates(groupId, classNameId, 793 classPK, type); 794 } 795 796 /** 797 * Returns all the templates matching the group, class name ID, class PK, 798 * type, and mode. 799 * 800 * @param groupId the primary key of the group 801 * @param classNameId the primary key of the class name for the template's 802 related model 803 * @param classPK the primary key of the template's related entity 804 * @param type the template's type. For more information, see {@link 805 com.liferay.portlet.dynamicdatamapping.model.DDMTemplateConstants}. 806 * @param mode the template's mode. For more information, see {@link 807 com.liferay.portlet.dynamicdatamapping.model.DDMTemplateConstants}. 808 * @return the matching templates 809 * @throws SystemException if a system exception occurred 810 */ 811 @Override 812 public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> getTemplates( 813 long groupId, long classNameId, long classPK, java.lang.String type, 814 java.lang.String mode) 815 throws com.liferay.portal.kernel.exception.SystemException { 816 return _ddmTemplateLocalService.getTemplates(groupId, classNameId, 817 classPK, type, mode); 818 } 819 820 @Override 821 public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> getTemplatesByClassPK( 822 long groupId, long classPK) 823 throws com.liferay.portal.kernel.exception.SystemException { 824 return _ddmTemplateLocalService.getTemplatesByClassPK(groupId, classPK); 825 } 826 827 @Override 828 public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> getTemplatesByClassPK( 829 long groupId, long classPK, int start, int end) 830 throws com.liferay.portal.kernel.exception.SystemException { 831 return _ddmTemplateLocalService.getTemplatesByClassPK(groupId, classPK, 832 start, end); 833 } 834 835 @Override 836 public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> getTemplatesByClassPK( 837 long[] groupIds, long classPK) 838 throws com.liferay.portal.kernel.exception.SystemException { 839 return _ddmTemplateLocalService.getTemplatesByClassPK(groupIds, classPK); 840 } 841 842 /** 843 * Returns the number of templates matching the group and class PK. 844 * 845 * @param groupId the primary key of the group 846 * @param classPK the primary key of the template's related entity 847 * @return the number of templates belonging to the group and class PK 848 * @throws SystemException if a system exception occurred 849 */ 850 @Override 851 public int getTemplatesByClassPKCount(long groupId, long classPK) 852 throws com.liferay.portal.kernel.exception.SystemException { 853 return _ddmTemplateLocalService.getTemplatesByClassPKCount(groupId, 854 classPK); 855 } 856 857 /** 858 * Returns an ordered range of all the templates matching the group and 859 * structure class name ID. 860 * 861 * <p> 862 * Useful when paginating results. Returns a maximum of <code>end - 863 * start</code> instances. <code>start</code> and <code>end</code> are not 864 * primary keys, they are indexes in the result set. Thus, <code>0</code> 865 * refers to the first result in the set. Setting both <code>start</code> 866 * and <code>end</code> to {@link 867 * com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full 868 * result set. 869 * </p> 870 * 871 * @param groupId the primary key of the group 872 * @param structureClassNameId the primary key of the class name for the 873 template's related structure 874 * @param start the lower bound of the range of templates to return 875 * @param end the upper bound of the range of templates to return (not 876 inclusive) 877 * @param orderByComparator the comparator to order the templates 878 (optionally <code>null</code>) 879 * @return the range of matching templates ordered by the comparator 880 * @throws SystemException if a system exception occurred 881 */ 882 @Override 883 public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> getTemplatesByStructureClassNameId( 884 long groupId, long structureClassNameId, int start, int end, 885 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 886 throws com.liferay.portal.kernel.exception.SystemException { 887 return _ddmTemplateLocalService.getTemplatesByStructureClassNameId(groupId, 888 structureClassNameId, start, end, orderByComparator); 889 } 890 891 /** 892 * Returns the number of templates matching the group and structure class 893 * name ID, including Generic Templates. 894 * 895 * @param groupId the primary key of the group 896 * @param structureClassNameId the primary key of the class name for the 897 template's related structure 898 * @return the number of matching templates 899 * @throws SystemException if a system exception occurred 900 */ 901 @Override 902 public int getTemplatesByStructureClassNameIdCount(long groupId, 903 long structureClassNameId) 904 throws com.liferay.portal.kernel.exception.SystemException { 905 return _ddmTemplateLocalService.getTemplatesByStructureClassNameIdCount(groupId, 906 structureClassNameId); 907 } 908 909 /** 910 * Returns the number of templates belonging to the group. 911 * 912 * @param groupId the primary key of the group 913 * @return the number of templates belonging to the group 914 * @throws SystemException if a system exception occurred 915 */ 916 @Override 917 public int getTemplatesCount(long groupId) 918 throws com.liferay.portal.kernel.exception.SystemException { 919 return _ddmTemplateLocalService.getTemplatesCount(groupId); 920 } 921 922 /** 923 * Returns the number of templates matching the group and class name ID. 924 * 925 * @param groupId the primary key of the group 926 * @param classNameId the primary key of the class name for the template's 927 related model 928 * @return the number of matching templates 929 * @throws SystemException if a system exception occurred 930 */ 931 @Override 932 public int getTemplatesCount(long groupId, long classNameId) 933 throws com.liferay.portal.kernel.exception.SystemException { 934 return _ddmTemplateLocalService.getTemplatesCount(groupId, classNameId); 935 } 936 937 /** 938 * Returns the number of templates matching the group, class name ID, and 939 * class PK. 940 * 941 * @param groupId the primary key of the group 942 * @param classNameId the primary key of the class name for the template's 943 related model 944 * @param classPK the primary key of the template's related entity 945 * @return the number of matching templates 946 * @throws SystemException if a system exception occurred 947 */ 948 @Override 949 public int getTemplatesCount(long groupId, long classNameId, long classPK) 950 throws com.liferay.portal.kernel.exception.SystemException { 951 return _ddmTemplateLocalService.getTemplatesCount(groupId, classNameId, 952 classPK); 953 } 954 955 /** 956 * Returns an ordered range of all the templates matching the group, class 957 * name ID, class PK, type, and mode, and matching the keywords in the 958 * template names and descriptions. 959 * 960 * <p> 961 * Useful when paginating results. Returns a maximum of <code>end - 962 * start</code> instances. <code>start</code> and <code>end</code> are not 963 * primary keys, they are indexes in the result set. Thus, <code>0</code> 964 * refers to the first result in the set. Setting both <code>start</code> 965 * and <code>end</code> to {@link 966 * com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full 967 * result set. 968 * </p> 969 * 970 * @param companyId the primary key of the template's company 971 * @param groupId the primary key of the group 972 * @param classNameId the primary key of the class name for the template's 973 related model 974 * @param classPK the primary key of the template's related entity 975 * @param keywords the keywords (space separated), which may occur in the 976 template's name or description (optionally <code>null</code>) 977 * @param type the template's type (optionally <code>null</code>). For more 978 information, see {@link 979 com.liferay.portlet.dynamicdatamapping.model.DDMTemplateConstants}. 980 * @param mode the template's mode (optionally <code>null</code>). For more 981 information, see {@link 982 com.liferay.portlet.dynamicdatamapping.model.DDMTemplateConstants}. 983 * @param start the lower bound of the range of templates to return 984 * @param end the upper bound of the range of templates to return (not 985 inclusive) 986 * @param orderByComparator the comparator to order the templates 987 (optionally <code>null</code>) 988 * @return the range of matching templates ordered by the comparator 989 * @throws SystemException if a system exception occurred 990 */ 991 @Override 992 public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> search( 993 long companyId, long groupId, long classNameId, long classPK, 994 java.lang.String keywords, java.lang.String type, 995 java.lang.String mode, int start, int end, 996 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 997 throws com.liferay.portal.kernel.exception.SystemException { 998 return _ddmTemplateLocalService.search(companyId, groupId, classNameId, 999 classPK, keywords, type, mode, start, end, orderByComparator); 1000 } 1001 1002 /** 1003 * Returns an ordered range of all the templates matching the group, class 1004 * name ID, class PK, name keyword, description keyword, type, mode, and 1005 * language. 1006 * 1007 * <p> 1008 * Useful when paginating results. Returns a maximum of <code>end - 1009 * start</code> instances. <code>start</code> and <code>end</code> are not 1010 * primary keys, they are indexes in the result set. Thus, <code>0</code> 1011 * refers to the first result in the set. Setting both <code>start</code> 1012 * and <code>end</code> to {@link 1013 * com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full 1014 * result set. 1015 * </p> 1016 * 1017 * @param companyId the primary key of the template's company 1018 * @param groupId the primary key of the group 1019 * @param classNameId the primary key of the class name for the template's 1020 related model 1021 * @param classPK the primary key of the template's related entity 1022 * @param name the name keywords (optionally <code>null</code>) 1023 * @param description the description keywords (optionally 1024 <code>null</code>) 1025 * @param type the template's type (optionally <code>null</code>). For more 1026 information, see {@link 1027 com.liferay.portlet.dynamicdatamapping.model.DDMTemplateConstants}. 1028 * @param mode the template's mode (optionally <code>null</code>). For more 1029 information, see {@link 1030 com.liferay.portlet.dynamicdatamapping.model.DDMTemplateConstants}. 1031 * @param language the template's script language (optionally 1032 <code>null</code>). For more information, see {@link 1033 com.liferay.portlet.dynamicdatamapping.model.DDMTemplateConstants}. 1034 * @param andOperator whether every field must match its keywords, or just 1035 one field 1036 * @param start the lower bound of the range of templates to return 1037 * @param end the upper bound of the range of templates to return (not 1038 inclusive) 1039 * @param orderByComparator the comparator to order the templates 1040 (optionally <code>null</code>) 1041 * @return the range of matching templates ordered by the comparator 1042 * @throws SystemException if a system exception occurred 1043 */ 1044 @Override 1045 public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> search( 1046 long companyId, long groupId, long classNameId, long classPK, 1047 java.lang.String name, java.lang.String description, 1048 java.lang.String type, java.lang.String mode, 1049 java.lang.String language, boolean andOperator, int start, int end, 1050 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1051 throws com.liferay.portal.kernel.exception.SystemException { 1052 return _ddmTemplateLocalService.search(companyId, groupId, classNameId, 1053 classPK, name, description, type, mode, language, andOperator, 1054 start, end, orderByComparator); 1055 } 1056 1057 /** 1058 * Returns an ordered range of all the templates matching the group IDs, 1059 * class Name IDs, class PK, type, and mode, and include the keywords on its 1060 * names and descriptions. 1061 * 1062 * <p> 1063 * Useful when paginating results. Returns a maximum of <code>end - 1064 * start</code> instances. <code>start</code> and <code>end</code> are not 1065 * primary keys, they are indexes in the result set. Thus, <code>0</code> 1066 * refers to the first result in the set. Setting both <code>start</code> 1067 * and <code>end</code> to {@link 1068 * com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full 1069 * result set. 1070 * </p> 1071 * 1072 * @param companyId the primary key of the template's company 1073 * @param groupIds the primary keys of the groups 1074 * @param classNameIds the primary keys of the entity's instances the 1075 templates are related to 1076 * @param classPKs the primary keys of the template's related entities 1077 * @param keywords the keywords (space separated), which may occur in the 1078 template's name or description (optionally <code>null</code>) 1079 * @param type the template's type (optionally <code>null</code>). For more 1080 information, see {@link 1081 com.liferay.portlet.dynamicdatamapping.model.DDMTemplateConstants}. 1082 * @param mode the template's mode (optionally <code>null</code>). For more 1083 information, see {@link 1084 com.liferay.portlet.dynamicdatamapping.model.DDMTemplateConstants}. 1085 * @param start the lower bound of the range of templates to return 1086 * @param end the upper bound of the range of templates to return (not 1087 inclusive) 1088 * @param orderByComparator the comparator to order the templates 1089 (optionally <code>null</code>) 1090 * @return the range of matching templates ordered by the comparator 1091 * @throws SystemException if a system exception occurred 1092 */ 1093 @Override 1094 public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> search( 1095 long companyId, long[] groupIds, long[] classNameIds, long[] classPKs, 1096 java.lang.String keywords, java.lang.String type, 1097 java.lang.String mode, int start, int end, 1098 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1099 throws com.liferay.portal.kernel.exception.SystemException { 1100 return _ddmTemplateLocalService.search(companyId, groupIds, 1101 classNameIds, classPKs, keywords, type, mode, start, end, 1102 orderByComparator); 1103 } 1104 1105 /** 1106 * Returns an ordered range of all the templates matching the group IDs, 1107 * class name IDs, class PK, name keyword, description keyword, type, mode, 1108 * and language. 1109 * 1110 * <p> 1111 * Useful when paginating results. Returns a maximum of <code>end - 1112 * start</code> instances. <code>start</code> and <code>end</code> are not 1113 * primary keys, they are indexes in the result set. Thus, <code>0</code> 1114 * refers to the first result in the set. Setting both <code>start</code> 1115 * and <code>end</code> to {@link 1116 * com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full 1117 * result set. 1118 * </p> 1119 * 1120 * @param companyId the primary key of the template's company 1121 * @param groupIds the primary keys of the groups 1122 * @param classNameIds the primary keys of the entity's instances the 1123 templates are related to 1124 * @param classPKs the primary keys of the template's related entities 1125 * @param name the name keywords (optionally <code>null</code>) 1126 * @param description the description keywords (optionally 1127 <code>null</code>) 1128 * @param type the template's type (optionally <code>null</code>). For more 1129 information, see {@link 1130 com.liferay.portlet.dynamicdatamapping.model.DDMTemplateConstants}. 1131 * @param mode the template's mode (optionally <code>null</code>). For more 1132 information, see {@link 1133 com.liferay.portlet.dynamicdatamapping.model.DDMTemplateConstants}. 1134 * @param language the template's script language (optionally 1135 <code>null</code>). For more information, see {@link 1136 com.liferay.portlet.dynamicdatamapping.model.DDMTemplateConstants}. 1137 * @param andOperator whether every field must match its keywords, or just 1138 one field. 1139 * @param start the lower bound of the range of templates to return 1140 * @param end the upper bound of the range of templates to return (not 1141 inclusive) 1142 * @param orderByComparator the comparator to order the templates 1143 (optionally <code>null</code>) 1144 * @return the range of matching templates ordered by the comparator 1145 * @throws SystemException if a system exception occurred 1146 */ 1147 @Override 1148 public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> search( 1149 long companyId, long[] groupIds, long[] classNameIds, long[] classPKs, 1150 java.lang.String name, java.lang.String description, 1151 java.lang.String type, java.lang.String mode, 1152 java.lang.String language, boolean andOperator, int start, int end, 1153 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1154 throws com.liferay.portal.kernel.exception.SystemException { 1155 return _ddmTemplateLocalService.search(companyId, groupIds, 1156 classNameIds, classPKs, name, description, type, mode, language, 1157 andOperator, start, end, orderByComparator); 1158 } 1159 1160 /** 1161 * Returns the number of templates matching the group, class name ID, class 1162 * PK, type, and matching the keywords in the template names and 1163 * descriptions. 1164 * 1165 * @param companyId the primary key of the template's company 1166 * @param groupId the primary key of the group 1167 * @param classNameId the primary key of the class name for the template's 1168 related model 1169 * @param classPK the primary key of the template's related entity 1170 * @param keywords the keywords (space separated), which may occur in the 1171 template's name or description (optionally <code>null</code>) 1172 * @param type the template's type (optionally <code>null</code>). For more 1173 information, see {@link 1174 com.liferay.portlet.dynamicdatamapping.model.DDMTemplateConstants}. 1175 * @param mode the template's mode (optionally <code>null</code>). For more 1176 information, see {@link 1177 com.liferay.portlet.dynamicdatamapping.model.DDMTemplateConstants}. 1178 * @return the number of matching templates 1179 * @throws SystemException if a system exception occurred 1180 */ 1181 @Override 1182 public int searchCount(long companyId, long groupId, long classNameId, 1183 long classPK, java.lang.String keywords, java.lang.String type, 1184 java.lang.String mode) 1185 throws com.liferay.portal.kernel.exception.SystemException { 1186 return _ddmTemplateLocalService.searchCount(companyId, groupId, 1187 classNameId, classPK, keywords, type, mode); 1188 } 1189 1190 /** 1191 * Returns the number of templates matching the group, class name ID, class 1192 * PK, name keyword, description keyword, type, mode, and language. 1193 * 1194 * @param companyId the primary key of the template's company 1195 * @param groupId the primary key of the group 1196 * @param classNameId the primary key of the class name for the template's 1197 related model 1198 * @param classPK the primary key of the template's related entity 1199 * @param name the name keywords (optionally <code>null</code>) 1200 * @param description the description keywords (optionally 1201 <code>null</code>) 1202 * @param type the template's type (optionally <code>null</code>). For more 1203 information, see {@link 1204 com.liferay.portlet.dynamicdatamapping.model.DDMTemplateConstants}. 1205 * @param mode the template's mode (optionally <code>null</code>). For more 1206 information, see {@link 1207 com.liferay.portlet.dynamicdatamapping.model.DDMTemplateConstants}. 1208 * @param language the template's script language (optionally 1209 <code>null</code>). For more information, see {@link 1210 com.liferay.portlet.dynamicdatamapping.model.DDMTemplateConstants}. 1211 * @param andOperator whether every field must match its keywords, or just 1212 one field. 1213 * @return the number of matching templates 1214 * @throws SystemException if a system exception occurred 1215 */ 1216 @Override 1217 public int searchCount(long companyId, long groupId, long classNameId, 1218 long classPK, java.lang.String name, java.lang.String description, 1219 java.lang.String type, java.lang.String mode, 1220 java.lang.String language, boolean andOperator) 1221 throws com.liferay.portal.kernel.exception.SystemException { 1222 return _ddmTemplateLocalService.searchCount(companyId, groupId, 1223 classNameId, classPK, name, description, type, mode, language, 1224 andOperator); 1225 } 1226 1227 /** 1228 * Returns the number of templates matching the group IDs, class name IDs, 1229 * class PK, type, and mode, and matching the keywords in the template names 1230 * and descriptions. 1231 * 1232 * @param companyId the primary key of the template's company 1233 * @param groupIds the primary keys of the groups 1234 * @param classNameIds the primary keys of the entity's instance the 1235 templates are related to 1236 * @param classPKs the primary keys of the template's related entities 1237 * @param keywords the keywords (space separated), which may occur in the 1238 template's name or description (optionally <code>null</code>) 1239 * @param type the template's type (optionally <code>null</code>). For more 1240 information, see {@link 1241 com.liferay.portlet.dynamicdatamapping.model.DDMTemplateConstants}. 1242 * @param mode the template's mode (optionally <code>null</code>). For more 1243 information, see {@link 1244 com.liferay.portlet.dynamicdatamapping.model.DDMTemplateConstants}. 1245 * @return the number of matching templates 1246 * @throws SystemException if a system exception occurred 1247 */ 1248 @Override 1249 public int searchCount(long companyId, long[] groupIds, 1250 long[] classNameIds, long[] classPKs, java.lang.String keywords, 1251 java.lang.String type, java.lang.String mode) 1252 throws com.liferay.portal.kernel.exception.SystemException { 1253 return _ddmTemplateLocalService.searchCount(companyId, groupIds, 1254 classNameIds, classPKs, keywords, type, mode); 1255 } 1256 1257 /** 1258 * Returns the number of templates matching the group IDs, class name IDs, 1259 * class PKs, name keyword, description keyword, type, mode, and language. 1260 * 1261 * @param companyId the primary key of the templates company 1262 * @param groupIds the primary keys of the groups 1263 * @param classNameIds the primary keys of the entity's instance the 1264 templates are related to 1265 * @param classPKs the primary keys of the template's related entities 1266 * @param name the name keywords (optionally <code>null</code>) 1267 * @param description the description keywords (optionally 1268 <code>null</code>) 1269 * @param type the template's type (optionally <code>null</code>). For more 1270 information, see {@link 1271 com.liferay.portlet.dynamicdatamapping.model.DDMTemplateConstants}. 1272 * @param mode the template's mode (optionally <code>null</code>). For more 1273 information, see {@link 1274 com.liferay.portlet.dynamicdatamapping.model.DDMTemplateConstants}. 1275 * @param language the template's script language (optionally 1276 <code>null</code>). For more information, see {@link 1277 com.liferay.portlet.dynamicdatamapping.model.DDMTemplateConstants}. 1278 * @param andOperator whether every field must match its keywords, or just 1279 one field. 1280 * @return the number of matching templates 1281 * @throws SystemException if a system exception occurred 1282 */ 1283 @Override 1284 public int searchCount(long companyId, long[] groupIds, 1285 long[] classNameIds, long[] classPKs, java.lang.String name, 1286 java.lang.String description, java.lang.String type, 1287 java.lang.String mode, java.lang.String language, boolean andOperator) 1288 throws com.liferay.portal.kernel.exception.SystemException { 1289 return _ddmTemplateLocalService.searchCount(companyId, groupIds, 1290 classNameIds, classPKs, name, description, type, mode, language, 1291 andOperator); 1292 } 1293 1294 /** 1295 * Updates the template matching the ID. 1296 * 1297 * @param templateId the primary key of the template 1298 * @param classPK the primary key of the template's related entity 1299 * @param nameMap the template's new locales and localized names 1300 * @param descriptionMap the template's new locales and localized 1301 description 1302 * @param type the template's type. For more information, see {@link 1303 com.liferay.portlet.dynamicdatamapping.model.DDMTemplateConstants}. 1304 * @param mode the template's mode. For more information, see {@link 1305 com.liferay.portlet.dynamicdatamapping.model.DDMTemplateConstants}. 1306 * @param language the template's script language. For more information, 1307 see {@link 1308 com.liferay.portlet.dynamicdatamapping.model.DDMTemplateConstants}. 1309 * @param script the template's script 1310 * @param cacheable whether the template is cacheable 1311 * @param smallImage whether the template has a small image 1312 * @param smallImageURL the template's small image URL (optionally 1313 <code>null</code>) 1314 * @param smallImageFile the template's small image file (optionally 1315 <code>null</code>) 1316 * @param serviceContext the service context to be applied. Can set the 1317 modification date. 1318 * @return the updated template 1319 * @throws PortalException if a portal exception occurred 1320 * @throws SystemException if a system exception occurred 1321 */ 1322 @Override 1323 public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate updateTemplate( 1324 long templateId, long classPK, 1325 java.util.Map<java.util.Locale, java.lang.String> nameMap, 1326 java.util.Map<java.util.Locale, java.lang.String> descriptionMap, 1327 java.lang.String type, java.lang.String mode, 1328 java.lang.String language, java.lang.String script, boolean cacheable, 1329 boolean smallImage, java.lang.String smallImageURL, 1330 java.io.File smallImageFile, 1331 com.liferay.portal.service.ServiceContext serviceContext) 1332 throws com.liferay.portal.kernel.exception.PortalException, 1333 com.liferay.portal.kernel.exception.SystemException { 1334 return _ddmTemplateLocalService.updateTemplate(templateId, classPK, 1335 nameMap, descriptionMap, type, mode, language, script, cacheable, 1336 smallImage, smallImageURL, smallImageFile, serviceContext); 1337 } 1338 1339 /** 1340 * @deprecated As of 6.1.0, replaced by {@link #getWrappedService} 1341 */ 1342 public DDMTemplateLocalService getWrappedDDMTemplateLocalService() { 1343 return _ddmTemplateLocalService; 1344 } 1345 1346 /** 1347 * @deprecated As of 6.1.0, replaced by {@link #setWrappedService} 1348 */ 1349 public void setWrappedDDMTemplateLocalService( 1350 DDMTemplateLocalService ddmTemplateLocalService) { 1351 _ddmTemplateLocalService = ddmTemplateLocalService; 1352 } 1353 1354 @Override 1355 public DDMTemplateLocalService getWrappedService() { 1356 return _ddmTemplateLocalService; 1357 } 1358 1359 @Override 1360 public void setWrappedService( 1361 DDMTemplateLocalService ddmTemplateLocalService) { 1362 _ddmTemplateLocalService = ddmTemplateLocalService; 1363 } 1364 1365 private DDMTemplateLocalService _ddmTemplateLocalService; 1366 }