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="OrganizationServiceUtil.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 OrganizationService}.
28   * </p>
29   *
30   * @author    Brian Wing Shun Chan
31   * @see       OrganizationService
32   * @generated
33   */
34  public class OrganizationServiceWrapper implements OrganizationService {
35      public OrganizationServiceWrapper(OrganizationService organizationService) {
36          _organizationService = organizationService;
37      }
38  
39      public void addGroupOrganizations(long groupId, long[] organizationIds)
40          throws com.liferay.portal.PortalException,
41              com.liferay.portal.SystemException, java.rmi.RemoteException {
42          _organizationService.addGroupOrganizations(groupId, organizationIds);
43      }
44  
45      public void addPasswordPolicyOrganizations(long passwordPolicyId,
46          long[] organizationIds)
47          throws com.liferay.portal.PortalException,
48              com.liferay.portal.SystemException, java.rmi.RemoteException {
49          _organizationService.addPasswordPolicyOrganizations(passwordPolicyId,
50              organizationIds);
51      }
52  
53      public com.liferay.portal.model.Organization addOrganization(
54          long parentOrganizationId, java.lang.String name, int type,
55          boolean recursable, long regionId, long countryId, int statusId,
56          java.lang.String comments)
57          throws com.liferay.portal.PortalException,
58              com.liferay.portal.SystemException, java.rmi.RemoteException {
59          return _organizationService.addOrganization(parentOrganizationId, name,
60              type, recursable, regionId, countryId, statusId, comments);
61      }
62  
63      public void deleteOrganization(long organizationId)
64          throws com.liferay.portal.PortalException,
65              com.liferay.portal.SystemException, java.rmi.RemoteException {
66          _organizationService.deleteOrganization(organizationId);
67      }
68  
69      public com.liferay.portal.model.Organization getOrganization(
70          long organizationId)
71          throws com.liferay.portal.PortalException,
72              com.liferay.portal.SystemException, java.rmi.RemoteException {
73          return _organizationService.getOrganization(organizationId);
74      }
75  
76      public long getOrganizationId(long companyId, java.lang.String name)
77          throws com.liferay.portal.SystemException, java.rmi.RemoteException {
78          return _organizationService.getOrganizationId(companyId, name);
79      }
80  
81      public java.util.List<com.liferay.portal.model.Organization> getUserOrganizations(
82          long userId)
83          throws com.liferay.portal.PortalException,
84              com.liferay.portal.SystemException, java.rmi.RemoteException {
85          return _organizationService.getUserOrganizations(userId);
86      }
87  
88      public java.util.List<com.liferay.portal.model.Organization> getUserOrganizations(
89          long userId, boolean inheritUserGroups)
90          throws com.liferay.portal.PortalException,
91              com.liferay.portal.SystemException, java.rmi.RemoteException {
92          return _organizationService.getUserOrganizations(userId,
93              inheritUserGroups);
94      }
95  
96      public void setGroupOrganizations(long groupId, long[] organizationIds)
97          throws com.liferay.portal.PortalException,
98              com.liferay.portal.SystemException, java.rmi.RemoteException {
99          _organizationService.setGroupOrganizations(groupId, organizationIds);
100     }
101 
102     public void unsetGroupOrganizations(long groupId, long[] organizationIds)
103         throws com.liferay.portal.PortalException,
104             com.liferay.portal.SystemException, java.rmi.RemoteException {
105         _organizationService.unsetGroupOrganizations(groupId, organizationIds);
106     }
107 
108     public void unsetPasswordPolicyOrganizations(long passwordPolicyId,
109         long[] organizationIds)
110         throws com.liferay.portal.PortalException,
111             com.liferay.portal.SystemException, java.rmi.RemoteException {
112         _organizationService.unsetPasswordPolicyOrganizations(passwordPolicyId,
113             organizationIds);
114     }
115 
116     public com.liferay.portal.model.Organization updateOrganization(
117         long organizationId, long parentOrganizationId, java.lang.String name,
118         int type, boolean recursable, long regionId, long countryId,
119         int statusId, java.lang.String comments)
120         throws com.liferay.portal.PortalException,
121             com.liferay.portal.SystemException, java.rmi.RemoteException {
122         return _organizationService.updateOrganization(organizationId,
123             parentOrganizationId, name, type, recursable, regionId, countryId,
124             statusId, comments);
125     }
126 
127     public OrganizationService getWrappedOrganizationService() {
128         return _organizationService;
129     }
130 
131     private OrganizationService _organizationService;
132 }