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="OrganizationServiceUtil.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 OrganizationService}.
27   * </p>
28   *
29   * @author    Brian Wing Shun Chan
30   * @see       OrganizationService
31   * @generated
32   */
33  public class OrganizationServiceWrapper implements OrganizationService {
34      public OrganizationServiceWrapper(OrganizationService organizationService) {
35          _organizationService = organizationService;
36      }
37  
38      public void addGroupOrganizations(long groupId, long[] organizationIds)
39          throws com.liferay.portal.PortalException,
40              com.liferay.portal.SystemException {
41          _organizationService.addGroupOrganizations(groupId, organizationIds);
42      }
43  
44      public void addPasswordPolicyOrganizations(long passwordPolicyId,
45          long[] organizationIds)
46          throws com.liferay.portal.PortalException,
47              com.liferay.portal.SystemException {
48          _organizationService.addPasswordPolicyOrganizations(passwordPolicyId,
49              organizationIds);
50      }
51  
52      public com.liferay.portal.model.Organization addOrganization(
53          long parentOrganizationId, java.lang.String name,
54          java.lang.String type, boolean recursable, long regionId,
55          long countryId, int statusId, java.lang.String comments,
56          com.liferay.portal.service.ServiceContext serviceContext)
57          throws com.liferay.portal.PortalException,
58              com.liferay.portal.SystemException {
59          return _organizationService.addOrganization(parentOrganizationId, name,
60              type, recursable, regionId, countryId, statusId, comments,
61              serviceContext);
62      }
63  
64      public com.liferay.portal.model.Organization addOrganization(
65          long parentOrganizationId, java.lang.String name,
66          java.lang.String type, boolean recursable, long regionId,
67          long countryId, int statusId, java.lang.String comments,
68          java.util.List<com.liferay.portal.model.Address> addresses,
69          java.util.List<com.liferay.portal.model.EmailAddress> emailAddresses,
70          java.util.List<com.liferay.portal.model.OrgLabor> orgLabors,
71          java.util.List<com.liferay.portal.model.Phone> phones,
72          java.util.List<com.liferay.portal.model.Website> websites,
73          com.liferay.portal.service.ServiceContext serviceContext)
74          throws com.liferay.portal.PortalException,
75              com.liferay.portal.SystemException {
76          return _organizationService.addOrganization(parentOrganizationId, name,
77              type, recursable, regionId, countryId, statusId, comments,
78              addresses, emailAddresses, orgLabors, phones, websites,
79              serviceContext);
80      }
81  
82      public void deleteLogo(long organizationId)
83          throws com.liferay.portal.PortalException,
84              com.liferay.portal.SystemException {
85          _organizationService.deleteLogo(organizationId);
86      }
87  
88      public void deleteOrganization(long organizationId)
89          throws com.liferay.portal.PortalException,
90              com.liferay.portal.SystemException {
91          _organizationService.deleteOrganization(organizationId);
92      }
93  
94      public java.util.List<com.liferay.portal.model.Organization> getManageableOrganizations(
95          java.lang.String actionId, int max)
96          throws com.liferay.portal.PortalException,
97              com.liferay.portal.SystemException {
98          return _organizationService.getManageableOrganizations(actionId, max);
99      }
100 
101     public com.liferay.portal.model.Organization getOrganization(
102         long organizationId)
103         throws com.liferay.portal.PortalException,
104             com.liferay.portal.SystemException {
105         return _organizationService.getOrganization(organizationId);
106     }
107 
108     public long getOrganizationId(long companyId, java.lang.String name)
109         throws com.liferay.portal.SystemException {
110         return _organizationService.getOrganizationId(companyId, name);
111     }
112 
113     public java.util.List<com.liferay.portal.model.Organization> getUserOrganizations(
114         long userId)
115         throws com.liferay.portal.PortalException,
116             com.liferay.portal.SystemException {
117         return _organizationService.getUserOrganizations(userId);
118     }
119 
120     public java.util.List<com.liferay.portal.model.Organization> getUserOrganizations(
121         long userId, boolean inheritUserGroups)
122         throws com.liferay.portal.PortalException,
123             com.liferay.portal.SystemException {
124         return _organizationService.getUserOrganizations(userId,
125             inheritUserGroups);
126     }
127 
128     public void setGroupOrganizations(long groupId, long[] organizationIds)
129         throws com.liferay.portal.PortalException,
130             com.liferay.portal.SystemException {
131         _organizationService.setGroupOrganizations(groupId, organizationIds);
132     }
133 
134     public void unsetGroupOrganizations(long groupId, long[] organizationIds)
135         throws com.liferay.portal.PortalException,
136             com.liferay.portal.SystemException {
137         _organizationService.unsetGroupOrganizations(groupId, organizationIds);
138     }
139 
140     public void unsetPasswordPolicyOrganizations(long passwordPolicyId,
141         long[] organizationIds)
142         throws com.liferay.portal.PortalException,
143             com.liferay.portal.SystemException {
144         _organizationService.unsetPasswordPolicyOrganizations(passwordPolicyId,
145             organizationIds);
146     }
147 
148     public com.liferay.portal.model.Organization updateOrganization(
149         long organizationId, long parentOrganizationId, java.lang.String name,
150         java.lang.String type, boolean recursable, long regionId,
151         long countryId, int statusId, java.lang.String comments,
152         com.liferay.portal.service.ServiceContext serviceContext)
153         throws com.liferay.portal.PortalException,
154             com.liferay.portal.SystemException {
155         return _organizationService.updateOrganization(organizationId,
156             parentOrganizationId, name, type, recursable, regionId, countryId,
157             statusId, comments, serviceContext);
158     }
159 
160     public com.liferay.portal.model.Organization updateOrganization(
161         long organizationId, long parentOrganizationId, java.lang.String name,
162         java.lang.String type, boolean recursable, long regionId,
163         long countryId, int statusId, java.lang.String comments,
164         java.util.List<com.liferay.portal.model.Address> addresses,
165         java.util.List<com.liferay.portal.model.EmailAddress> emailAddresses,
166         java.util.List<com.liferay.portal.model.OrgLabor> orgLabors,
167         java.util.List<com.liferay.portal.model.Phone> phones,
168         java.util.List<com.liferay.portal.model.Website> websites,
169         com.liferay.portal.service.ServiceContext serviceContext)
170         throws com.liferay.portal.PortalException,
171             com.liferay.portal.SystemException {
172         return _organizationService.updateOrganization(organizationId,
173             parentOrganizationId, name, type, recursable, regionId, countryId,
174             statusId, comments, addresses, emailAddresses, orgLabors, phones,
175             websites, serviceContext);
176     }
177 
178     public OrganizationService getWrappedOrganizationService() {
179         return _organizationService;
180     }
181 
182     private OrganizationService _organizationService;
183 }