1   /**
2    * Copyright (c) 2000-2009 Liferay, Inc. All rights reserved.
3    *
4    * Permission is hereby granted, free of charge, to any person obtaining a copy
5    * of this software and associated documentation files (the "Software"), to deal
6    * in the Software without restriction, including without limitation the rights
7    * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8    * copies of the Software, and to permit persons to whom the Software is
9    * furnished to do so, subject to the following conditions:
10   *
11   * The above copyright notice and this permission notice shall be included in
12   * all copies or substantial portions of the Software.
13   *
14   * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15   * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16   * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17   * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18   * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19   * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20   * SOFTWARE.
21   */
22  
23  package com.liferay.portal.service;
24  
25  
26  /**
27   * <a href="OrganizationServiceUtil.java.html"><b><i>View Source</i></b></a>
28   *
29   * <p>
30   * ServiceBuilder generated this class. Modifications in this class will be
31   * overwritten the next time is generated.
32   * </p>
33   *
34   * <p>
35   * This class is a wrapper for {@link OrganizationService}.
36   * </p>
37   *
38   * @author    Brian Wing Shun Chan
39   * @see       OrganizationService
40   * @generated
41   */
42  public class OrganizationServiceWrapper implements OrganizationService {
43      public OrganizationServiceWrapper(OrganizationService organizationService) {
44          _organizationService = organizationService;
45      }
46  
47      public void addGroupOrganizations(long groupId, long[] organizationIds)
48          throws com.liferay.portal.PortalException,
49              com.liferay.portal.SystemException {
50          _organizationService.addGroupOrganizations(groupId, organizationIds);
51      }
52  
53      public void addPasswordPolicyOrganizations(long passwordPolicyId,
54          long[] organizationIds)
55          throws com.liferay.portal.PortalException,
56              com.liferay.portal.SystemException {
57          _organizationService.addPasswordPolicyOrganizations(passwordPolicyId,
58              organizationIds);
59      }
60  
61      public com.liferay.portal.model.Organization addOrganization(
62          long parentOrganizationId, java.lang.String name,
63          java.lang.String type, boolean recursable, long regionId,
64          long countryId, int statusId, java.lang.String comments,
65          com.liferay.portal.service.ServiceContext serviceContext)
66          throws com.liferay.portal.PortalException,
67              com.liferay.portal.SystemException {
68          return _organizationService.addOrganization(parentOrganizationId, name,
69              type, recursable, regionId, countryId, statusId, comments,
70              serviceContext);
71      }
72  
73      public com.liferay.portal.model.Organization addOrganization(
74          long parentOrganizationId, java.lang.String name,
75          java.lang.String type, boolean recursable, long regionId,
76          long countryId, int statusId, java.lang.String comments,
77          java.util.List<com.liferay.portal.model.Address> addresses,
78          java.util.List<com.liferay.portal.model.EmailAddress> emailAddresses,
79          java.util.List<com.liferay.portal.model.OrgLabor> orgLabors,
80          java.util.List<com.liferay.portal.model.Phone> phones,
81          java.util.List<com.liferay.portal.model.Website> websites,
82          com.liferay.portal.service.ServiceContext serviceContext)
83          throws com.liferay.portal.PortalException,
84              com.liferay.portal.SystemException {
85          return _organizationService.addOrganization(parentOrganizationId, name,
86              type, recursable, regionId, countryId, statusId, comments,
87              addresses, emailAddresses, orgLabors, phones, websites,
88              serviceContext);
89      }
90  
91      public void deleteLogo(long organizationId)
92          throws com.liferay.portal.PortalException,
93              com.liferay.portal.SystemException {
94          _organizationService.deleteLogo(organizationId);
95      }
96  
97      public void deleteOrganization(long organizationId)
98          throws com.liferay.portal.PortalException,
99              com.liferay.portal.SystemException {
100         _organizationService.deleteOrganization(organizationId);
101     }
102 
103     public java.util.List<com.liferay.portal.model.Organization> getManageableOrganizations(
104         java.lang.String actionId, int max)
105         throws com.liferay.portal.PortalException,
106             com.liferay.portal.SystemException {
107         return _organizationService.getManageableOrganizations(actionId, max);
108     }
109 
110     public com.liferay.portal.model.Organization getOrganization(
111         long organizationId)
112         throws com.liferay.portal.PortalException,
113             com.liferay.portal.SystemException {
114         return _organizationService.getOrganization(organizationId);
115     }
116 
117     public long getOrganizationId(long companyId, java.lang.String name)
118         throws com.liferay.portal.SystemException {
119         return _organizationService.getOrganizationId(companyId, name);
120     }
121 
122     public java.util.List<com.liferay.portal.model.Organization> getUserOrganizations(
123         long userId)
124         throws com.liferay.portal.PortalException,
125             com.liferay.portal.SystemException {
126         return _organizationService.getUserOrganizations(userId);
127     }
128 
129     public java.util.List<com.liferay.portal.model.Organization> getUserOrganizations(
130         long userId, boolean inheritUserGroups)
131         throws com.liferay.portal.PortalException,
132             com.liferay.portal.SystemException {
133         return _organizationService.getUserOrganizations(userId,
134             inheritUserGroups);
135     }
136 
137     public void setGroupOrganizations(long groupId, long[] organizationIds)
138         throws com.liferay.portal.PortalException,
139             com.liferay.portal.SystemException {
140         _organizationService.setGroupOrganizations(groupId, organizationIds);
141     }
142 
143     public void unsetGroupOrganizations(long groupId, long[] organizationIds)
144         throws com.liferay.portal.PortalException,
145             com.liferay.portal.SystemException {
146         _organizationService.unsetGroupOrganizations(groupId, organizationIds);
147     }
148 
149     public void unsetPasswordPolicyOrganizations(long passwordPolicyId,
150         long[] organizationIds)
151         throws com.liferay.portal.PortalException,
152             com.liferay.portal.SystemException {
153         _organizationService.unsetPasswordPolicyOrganizations(passwordPolicyId,
154             organizationIds);
155     }
156 
157     public com.liferay.portal.model.Organization updateOrganization(
158         long organizationId, long parentOrganizationId, java.lang.String name,
159         java.lang.String type, boolean recursable, long regionId,
160         long countryId, int statusId, java.lang.String comments,
161         com.liferay.portal.service.ServiceContext serviceContext)
162         throws com.liferay.portal.PortalException,
163             com.liferay.portal.SystemException {
164         return _organizationService.updateOrganization(organizationId,
165             parentOrganizationId, name, type, recursable, regionId, countryId,
166             statusId, comments, serviceContext);
167     }
168 
169     public com.liferay.portal.model.Organization updateOrganization(
170         long organizationId, long parentOrganizationId, java.lang.String name,
171         java.lang.String type, boolean recursable, long regionId,
172         long countryId, int statusId, java.lang.String comments,
173         java.util.List<com.liferay.portal.model.Address> addresses,
174         java.util.List<com.liferay.portal.model.EmailAddress> emailAddresses,
175         java.util.List<com.liferay.portal.model.OrgLabor> orgLabors,
176         java.util.List<com.liferay.portal.model.Phone> phones,
177         java.util.List<com.liferay.portal.model.Website> websites,
178         com.liferay.portal.service.ServiceContext serviceContext)
179         throws com.liferay.portal.PortalException,
180             com.liferay.portal.SystemException {
181         return _organizationService.updateOrganization(organizationId,
182             parentOrganizationId, name, type, recursable, regionId, countryId,
183             statusId, comments, addresses, emailAddresses, orgLabors, phones,
184             websites, serviceContext);
185     }
186 
187     public OrganizationService getWrappedOrganizationService() {
188         return _organizationService;
189     }
190 
191     private OrganizationService _organizationService;
192 }