1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * The contents of this file are subject to the terms of the Liferay Enterprise
5    * Subscription License ("License"). You may not use this file except in
6    * compliance with the License. You can obtain a copy of the License by
7    * contacting Liferay, Inc. See the License for the specific language governing
8    * permissions and limitations under the License, including but not limited to
9    * distribution rights of the Software.
10   *
11   *
12   *
13   */
14  
15  package com.liferay.portal.service;
16  
17  /**
18   * <a href="PhoneLocalServiceUtil.java.html"><b><i>View Source</i></b></a>
19   *
20   * <p>
21   * ServiceBuilder generated this class. Modifications in this class will be
22   * overwritten the next time is generated.
23   * </p>
24   *
25   * <p>
26   * This class is a wrapper for {@link PhoneLocalService}.
27   * </p>
28   *
29   * @author    Brian Wing Shun Chan
30   * @see       PhoneLocalService
31   * @generated
32   */
33  public class PhoneLocalServiceWrapper implements PhoneLocalService {
34      public PhoneLocalServiceWrapper(PhoneLocalService phoneLocalService) {
35          _phoneLocalService = phoneLocalService;
36      }
37  
38      public com.liferay.portal.model.Phone addPhone(
39          com.liferay.portal.model.Phone phone)
40          throws com.liferay.portal.SystemException {
41          return _phoneLocalService.addPhone(phone);
42      }
43  
44      public com.liferay.portal.model.Phone createPhone(long phoneId) {
45          return _phoneLocalService.createPhone(phoneId);
46      }
47  
48      public void deletePhone(long phoneId)
49          throws com.liferay.portal.PortalException,
50              com.liferay.portal.SystemException {
51          _phoneLocalService.deletePhone(phoneId);
52      }
53  
54      public void deletePhone(com.liferay.portal.model.Phone phone)
55          throws com.liferay.portal.SystemException {
56          _phoneLocalService.deletePhone(phone);
57      }
58  
59      @SuppressWarnings("rawtypes")
60      public java.util.List dynamicQuery(
61          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
62          throws com.liferay.portal.SystemException {
63          return _phoneLocalService.dynamicQuery(dynamicQuery);
64      }
65  
66      @SuppressWarnings("rawtypes")
67      public java.util.List dynamicQuery(
68          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
69          int end) throws com.liferay.portal.SystemException {
70          return _phoneLocalService.dynamicQuery(dynamicQuery, start, end);
71      }
72  
73      @SuppressWarnings("rawtypes")
74      public java.util.List dynamicQuery(
75          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
76          int end,
77          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
78          throws com.liferay.portal.SystemException {
79          return _phoneLocalService.dynamicQuery(dynamicQuery, start, end,
80              orderByComparator);
81      }
82  
83      public int dynamicQueryCount(
84          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
85          throws com.liferay.portal.SystemException {
86          return _phoneLocalService.dynamicQueryCount(dynamicQuery);
87      }
88  
89      public com.liferay.portal.model.Phone getPhone(long phoneId)
90          throws com.liferay.portal.PortalException,
91              com.liferay.portal.SystemException {
92          return _phoneLocalService.getPhone(phoneId);
93      }
94  
95      public java.util.List<com.liferay.portal.model.Phone> getPhones(int start,
96          int end) throws com.liferay.portal.SystemException {
97          return _phoneLocalService.getPhones(start, end);
98      }
99  
100     public int getPhonesCount() throws com.liferay.portal.SystemException {
101         return _phoneLocalService.getPhonesCount();
102     }
103 
104     public com.liferay.portal.model.Phone updatePhone(
105         com.liferay.portal.model.Phone phone)
106         throws com.liferay.portal.SystemException {
107         return _phoneLocalService.updatePhone(phone);
108     }
109 
110     public com.liferay.portal.model.Phone updatePhone(
111         com.liferay.portal.model.Phone phone, boolean merge)
112         throws com.liferay.portal.SystemException {
113         return _phoneLocalService.updatePhone(phone, merge);
114     }
115 
116     public com.liferay.portal.model.Phone addPhone(long userId,
117         java.lang.String className, long classPK, java.lang.String number,
118         java.lang.String extension, int typeId, boolean primary)
119         throws com.liferay.portal.PortalException,
120             com.liferay.portal.SystemException {
121         return _phoneLocalService.addPhone(userId, className, classPK, number,
122             extension, typeId, primary);
123     }
124 
125     public void deletePhones(long companyId, java.lang.String className,
126         long classPK) throws com.liferay.portal.SystemException {
127         _phoneLocalService.deletePhones(companyId, className, classPK);
128     }
129 
130     public java.util.List<com.liferay.portal.model.Phone> getPhones()
131         throws com.liferay.portal.SystemException {
132         return _phoneLocalService.getPhones();
133     }
134 
135     public java.util.List<com.liferay.portal.model.Phone> getPhones(
136         long companyId, java.lang.String className, long classPK)
137         throws com.liferay.portal.SystemException {
138         return _phoneLocalService.getPhones(companyId, className, classPK);
139     }
140 
141     public com.liferay.portal.model.Phone updatePhone(long phoneId,
142         java.lang.String number, java.lang.String extension, int typeId,
143         boolean primary)
144         throws com.liferay.portal.PortalException,
145             com.liferay.portal.SystemException {
146         return _phoneLocalService.updatePhone(phoneId, number, extension,
147             typeId, primary);
148     }
149 
150     public PhoneLocalService getWrappedPhoneLocalService() {
151         return _phoneLocalService;
152     }
153 
154     private PhoneLocalService _phoneLocalService;
155 }