1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * This library is free software; you can redistribute it and/or modify it under
5    * the terms of the GNU Lesser General Public License as published by the Free
6    * Software Foundation; either version 2.1 of the License, or (at your option)
7    * any later version.
8    *
9    * This library is distributed in the hope that it will be useful, but WITHOUT
10   * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11   * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
12   * details.
13   */
14  
15  package com.liferay.portal.service;
16  
17  
18  /**
19   * <a href="PhoneLocalServiceUtil.java.html"><b><i>View Source</i></b></a>
20   *
21   * <p>
22   * ServiceBuilder generated this class. Modifications in this class will be
23   * overwritten the next time is generated.
24   * </p>
25   *
26   * <p>
27   * This class is a wrapper for {@link PhoneLocalService}.
28   * </p>
29   *
30   * @author    Brian Wing Shun Chan
31   * @see       PhoneLocalService
32   * @generated
33   */
34  public class PhoneLocalServiceWrapper implements PhoneLocalService {
35      public PhoneLocalServiceWrapper(PhoneLocalService phoneLocalService) {
36          _phoneLocalService = phoneLocalService;
37      }
38  
39      public com.liferay.portal.model.Phone addPhone(
40          com.liferay.portal.model.Phone phone)
41          throws com.liferay.portal.kernel.exception.SystemException {
42          return _phoneLocalService.addPhone(phone);
43      }
44  
45      public com.liferay.portal.model.Phone createPhone(long phoneId) {
46          return _phoneLocalService.createPhone(phoneId);
47      }
48  
49      public void deletePhone(long phoneId)
50          throws com.liferay.portal.kernel.exception.PortalException,
51              com.liferay.portal.kernel.exception.SystemException {
52          _phoneLocalService.deletePhone(phoneId);
53      }
54  
55      public void deletePhone(com.liferay.portal.model.Phone phone)
56          throws com.liferay.portal.kernel.exception.SystemException {
57          _phoneLocalService.deletePhone(phone);
58      }
59  
60      public java.util.List<Object> dynamicQuery(
61          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
62          throws com.liferay.portal.kernel.exception.SystemException {
63          return _phoneLocalService.dynamicQuery(dynamicQuery);
64      }
65  
66      public java.util.List<Object> dynamicQuery(
67          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
68          int end) throws com.liferay.portal.kernel.exception.SystemException {
69          return _phoneLocalService.dynamicQuery(dynamicQuery, start, end);
70      }
71  
72      public com.liferay.portal.model.Phone getPhone(long phoneId)
73          throws com.liferay.portal.kernel.exception.PortalException,
74              com.liferay.portal.kernel.exception.SystemException {
75          return _phoneLocalService.getPhone(phoneId);
76      }
77  
78      public java.util.List<com.liferay.portal.model.Phone> getPhones(int start,
79          int end) throws com.liferay.portal.kernel.exception.SystemException {
80          return _phoneLocalService.getPhones(start, end);
81      }
82  
83      public int getPhonesCount()
84          throws com.liferay.portal.kernel.exception.SystemException {
85          return _phoneLocalService.getPhonesCount();
86      }
87  
88      public com.liferay.portal.model.Phone updatePhone(
89          com.liferay.portal.model.Phone phone)
90          throws com.liferay.portal.kernel.exception.SystemException {
91          return _phoneLocalService.updatePhone(phone);
92      }
93  
94      public com.liferay.portal.model.Phone updatePhone(
95          com.liferay.portal.model.Phone phone, boolean merge)
96          throws com.liferay.portal.kernel.exception.SystemException {
97          return _phoneLocalService.updatePhone(phone, merge);
98      }
99  
100     public com.liferay.portal.model.Phone addPhone(long userId,
101         java.lang.String className, long classPK, java.lang.String number,
102         java.lang.String extension, int typeId, boolean primary)
103         throws com.liferay.portal.kernel.exception.PortalException,
104             com.liferay.portal.kernel.exception.SystemException {
105         return _phoneLocalService.addPhone(userId, className, classPK, number,
106             extension, typeId, primary);
107     }
108 
109     public void deletePhones(long companyId, java.lang.String className,
110         long classPK)
111         throws com.liferay.portal.kernel.exception.SystemException {
112         _phoneLocalService.deletePhones(companyId, className, classPK);
113     }
114 
115     public java.util.List<com.liferay.portal.model.Phone> getPhones()
116         throws com.liferay.portal.kernel.exception.SystemException {
117         return _phoneLocalService.getPhones();
118     }
119 
120     public java.util.List<com.liferay.portal.model.Phone> getPhones(
121         long companyId, java.lang.String className, long classPK)
122         throws com.liferay.portal.kernel.exception.SystemException {
123         return _phoneLocalService.getPhones(companyId, className, classPK);
124     }
125 
126     public com.liferay.portal.model.Phone updatePhone(long phoneId,
127         java.lang.String number, java.lang.String extension, int typeId,
128         boolean primary)
129         throws com.liferay.portal.kernel.exception.PortalException,
130             com.liferay.portal.kernel.exception.SystemException {
131         return _phoneLocalService.updatePhone(phoneId, number, extension,
132             typeId, primary);
133     }
134 
135     public PhoneLocalService getWrappedPhoneLocalService() {
136         return _phoneLocalService;
137     }
138 
139     private PhoneLocalService _phoneLocalService;
140 }