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