1   /**
2    * Copyright (c) 2000-2008 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="OrganizationLocalService.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 interface defines the service. The default implementation is
36   * <code>com.liferay.portal.service.impl.OrganizationLocalServiceImpl</code>.
37   * Modify methods in that class and rerun ServiceBuilder to populate this class
38   * and all other generated classes.
39   * </p>
40   *
41   * <p>
42   * This is a local service. Methods of this service will not have security checks based on the propagated JAAS credentials because this service can only be accessed from within the same VM.
43   * </p>
44   *
45   * @author Brian Wing Shun Chan
46   *
47   * @see com.liferay.portal.service.OrganizationLocalServiceFactory
48   * @see com.liferay.portal.service.OrganizationLocalServiceUtil
49   *
50   */
51  public interface OrganizationLocalService {
52      public com.liferay.portal.model.Organization addOrganization(
53          com.liferay.portal.model.Organization organization)
54          throws com.liferay.portal.SystemException;
55  
56      public void deleteOrganization(long organizationId)
57          throws com.liferay.portal.SystemException,
58              com.liferay.portal.PortalException;
59  
60      public void deleteOrganization(
61          com.liferay.portal.model.Organization organization)
62          throws com.liferay.portal.SystemException,
63              com.liferay.portal.PortalException;
64  
65      public java.util.List<com.liferay.portal.model.Organization> dynamicQuery(
66          com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
67          throws com.liferay.portal.SystemException;
68  
69      public java.util.List<com.liferay.portal.model.Organization> dynamicQuery(
70          com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
71          int begin, int end) throws com.liferay.portal.SystemException;
72  
73      public com.liferay.portal.model.Organization updateOrganization(
74          com.liferay.portal.model.Organization organization)
75          throws com.liferay.portal.SystemException;
76  
77      public void addGroupOrganizations(long groupId, long[] organizationIds)
78          throws com.liferay.portal.SystemException,
79              com.liferay.portal.PortalException;
80  
81      public com.liferay.portal.model.Organization addOrganization(long userId,
82          long parentOrganizationId, java.lang.String name, int type,
83          boolean recursable, long regionId, long countryId, int statusId,
84          java.lang.String comments)
85          throws com.liferay.portal.SystemException,
86              com.liferay.portal.PortalException;
87  
88      public void addOrganizationResources(long userId,
89          com.liferay.portal.model.Organization organization)
90          throws com.liferay.portal.SystemException,
91              com.liferay.portal.PortalException;
92  
93      public void addPasswordPolicyOrganizations(long passwordPolicyId,
94          long[] organizationIds)
95          throws com.liferay.portal.SystemException,
96              com.liferay.portal.PortalException;
97  
98      public java.util.List<com.liferay.portal.model.Organization> getGroupOrganizations(
99          long groupId)
100         throws com.liferay.portal.SystemException,
101             com.liferay.portal.PortalException;
102 
103     public java.util.List<com.liferay.portal.model.Organization> getManageableOrganizations(
104         long userId)
105         throws com.liferay.portal.SystemException,
106             com.liferay.portal.PortalException;
107 
108     public com.liferay.portal.model.Organization getOrganization(
109         long organizationId)
110         throws com.liferay.portal.SystemException,
111             com.liferay.portal.PortalException;
112 
113     public com.liferay.portal.model.Organization getOrganization(
114         long companyId, java.lang.String name)
115         throws com.liferay.portal.SystemException,
116             com.liferay.portal.PortalException;
117 
118     public long getOrganizationId(long companyId, java.lang.String name)
119         throws com.liferay.portal.SystemException,
120             com.liferay.portal.PortalException;
121 
122     public java.util.List<com.liferay.portal.model.Organization> getOrganizations(
123         long[] organizationIds)
124         throws com.liferay.portal.SystemException,
125             com.liferay.portal.PortalException;
126 
127     public java.util.List<com.liferay.portal.model.Organization> getParentOrganizations(
128         long organizationId)
129         throws com.liferay.portal.SystemException,
130             com.liferay.portal.PortalException;
131 
132     public java.util.List<com.liferay.portal.model.Organization> getSuborganizations(
133         java.util.List<com.liferay.portal.model.Organization> organizations)
134         throws com.liferay.portal.SystemException;
135 
136     public java.util.List<com.liferay.portal.model.Organization> getSubsetOrganizations(
137         java.util.List<com.liferay.portal.model.Organization> allOrganizations,
138         java.util.List<com.liferay.portal.model.Organization> availableOrganizations)
139         throws com.liferay.portal.SystemException,
140             com.liferay.portal.PortalException;
141 
142     public java.util.List<com.liferay.portal.model.Organization> getUserOrganizations(
143         long userId)
144         throws com.liferay.portal.SystemException,
145             com.liferay.portal.PortalException;
146 
147     public int getUserOrganizationsCount(long userId)
148         throws com.liferay.portal.SystemException,
149             com.liferay.portal.PortalException;
150 
151     public boolean hasGroupOrganization(long groupId, long organizationId)
152         throws com.liferay.portal.SystemException,
153             com.liferay.portal.PortalException;
154 
155     public boolean hasUserOrganization(long userId, long organizationId)
156         throws com.liferay.portal.SystemException,
157             com.liferay.portal.PortalException;
158 
159     public boolean hasPasswordPolicyOrganization(long passwordPolicyId,
160         long organizationId)
161         throws com.liferay.portal.SystemException,
162             com.liferay.portal.PortalException;
163 
164     public java.util.List<com.liferay.portal.model.Organization> search(
165         long companyId, long parentOrganizationId, java.lang.String keywords,
166         int type, java.lang.Long regionId, java.lang.Long countryId,
167         java.util.LinkedHashMap<String, Object> params, int begin, int end)
168         throws com.liferay.portal.SystemException,
169             com.liferay.portal.PortalException;
170 
171     public java.util.List<com.liferay.portal.model.Organization> search(
172         long companyId, long parentOrganizationId, java.lang.String keywords,
173         int type, java.lang.Long regionId, java.lang.Long countryId,
174         java.util.LinkedHashMap<String, Object> params, int begin, int end,
175         com.liferay.portal.kernel.util.OrderByComparator obc)
176         throws com.liferay.portal.SystemException,
177             com.liferay.portal.PortalException;
178 
179     public java.util.List<com.liferay.portal.model.Organization> search(
180         long companyId, long parentOrganizationId, java.lang.String name,
181         int type, java.lang.String street, java.lang.String city,
182         java.lang.String zip, java.lang.Long regionId,
183         java.lang.Long countryId,
184         java.util.LinkedHashMap<String, Object> params, boolean andOperator,
185         int begin, int end)
186         throws com.liferay.portal.SystemException,
187             com.liferay.portal.PortalException;
188 
189     public java.util.List<com.liferay.portal.model.Organization> search(
190         long companyId, long parentOrganizationId, java.lang.String name,
191         int type, java.lang.String street, java.lang.String city,
192         java.lang.String zip, java.lang.Long regionId,
193         java.lang.Long countryId,
194         java.util.LinkedHashMap<String, Object> params, boolean andOperator,
195         int begin, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
196         throws com.liferay.portal.SystemException,
197             com.liferay.portal.PortalException;
198 
199     public int searchCount(long companyId, long parentOrganizationId,
200         java.lang.String keywords, int type, java.lang.Long regionId,
201         java.lang.Long countryId, java.util.LinkedHashMap<String, Object> params)
202         throws com.liferay.portal.SystemException,
203             com.liferay.portal.PortalException;
204 
205     public int searchCount(long companyId, long parentOrganizationId,
206         java.lang.String name, int type, java.lang.String street,
207         java.lang.String city, java.lang.String zip, java.lang.Long regionId,
208         java.lang.Long countryId,
209         java.util.LinkedHashMap<String, Object> params, boolean andOperator)
210         throws com.liferay.portal.SystemException,
211             com.liferay.portal.PortalException;
212 
213     public void setGroupOrganizations(long groupId, long[] organizationIds)
214         throws com.liferay.portal.SystemException,
215             com.liferay.portal.PortalException;
216 
217     public void unsetGroupOrganizations(long groupId, long[] organizationIds)
218         throws com.liferay.portal.SystemException,
219             com.liferay.portal.PortalException;
220 
221     public void unsetPasswordPolicyOrganizations(long passwordPolicyId,
222         long[] organizationIds)
223         throws com.liferay.portal.SystemException,
224             com.liferay.portal.PortalException;
225 
226     public com.liferay.portal.model.Organization updateOrganization(
227         long companyId, long organizationId, long parentOrganizationId,
228         java.lang.String name, int type, boolean recursable, long regionId,
229         long countryId, int statusId, java.lang.String comments)
230         throws com.liferay.portal.SystemException,
231             com.liferay.portal.PortalException;
232 }