001    /**
002     * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portal.service.persistence;
016    
017    import com.liferay.portal.model.Organization;
018    
019    /**
020     * @author    Brian Wing Shun Chan
021     * @see       OrganizationPersistenceImpl
022     * @see       OrganizationUtil
023     * @generated
024     */
025    public interface OrganizationPersistence extends BasePersistence<Organization> {
026            public void cacheResult(com.liferay.portal.model.Organization organization);
027    
028            public void cacheResult(
029                    java.util.List<com.liferay.portal.model.Organization> organizations);
030    
031            public com.liferay.portal.model.Organization create(long organizationId);
032    
033            public com.liferay.portal.model.Organization remove(long organizationId)
034                    throws com.liferay.portal.NoSuchOrganizationException,
035                            com.liferay.portal.kernel.exception.SystemException;
036    
037            public com.liferay.portal.model.Organization updateImpl(
038                    com.liferay.portal.model.Organization organization, boolean merge)
039                    throws com.liferay.portal.kernel.exception.SystemException;
040    
041            public com.liferay.portal.model.Organization findByPrimaryKey(
042                    long organizationId)
043                    throws com.liferay.portal.NoSuchOrganizationException,
044                            com.liferay.portal.kernel.exception.SystemException;
045    
046            public com.liferay.portal.model.Organization fetchByPrimaryKey(
047                    long organizationId)
048                    throws com.liferay.portal.kernel.exception.SystemException;
049    
050            public java.util.List<com.liferay.portal.model.Organization> findByCompanyId(
051                    long companyId)
052                    throws com.liferay.portal.kernel.exception.SystemException;
053    
054            public java.util.List<com.liferay.portal.model.Organization> findByCompanyId(
055                    long companyId, int start, int end)
056                    throws com.liferay.portal.kernel.exception.SystemException;
057    
058            public java.util.List<com.liferay.portal.model.Organization> findByCompanyId(
059                    long companyId, int start, int end,
060                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
061                    throws com.liferay.portal.kernel.exception.SystemException;
062    
063            public com.liferay.portal.model.Organization findByCompanyId_First(
064                    long companyId,
065                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
066                    throws com.liferay.portal.NoSuchOrganizationException,
067                            com.liferay.portal.kernel.exception.SystemException;
068    
069            public com.liferay.portal.model.Organization findByCompanyId_Last(
070                    long companyId,
071                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
072                    throws com.liferay.portal.NoSuchOrganizationException,
073                            com.liferay.portal.kernel.exception.SystemException;
074    
075            public com.liferay.portal.model.Organization[] findByCompanyId_PrevAndNext(
076                    long organizationId, long companyId,
077                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
078                    throws com.liferay.portal.NoSuchOrganizationException,
079                            com.liferay.portal.kernel.exception.SystemException;
080    
081            public java.util.List<com.liferay.portal.model.Organization> findByLocations(
082                    long companyId)
083                    throws com.liferay.portal.kernel.exception.SystemException;
084    
085            public java.util.List<com.liferay.portal.model.Organization> findByLocations(
086                    long companyId, int start, int end)
087                    throws com.liferay.portal.kernel.exception.SystemException;
088    
089            public java.util.List<com.liferay.portal.model.Organization> findByLocations(
090                    long companyId, int start, int end,
091                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
092                    throws com.liferay.portal.kernel.exception.SystemException;
093    
094            public com.liferay.portal.model.Organization findByLocations_First(
095                    long companyId,
096                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
097                    throws com.liferay.portal.NoSuchOrganizationException,
098                            com.liferay.portal.kernel.exception.SystemException;
099    
100            public com.liferay.portal.model.Organization findByLocations_Last(
101                    long companyId,
102                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
103                    throws com.liferay.portal.NoSuchOrganizationException,
104                            com.liferay.portal.kernel.exception.SystemException;
105    
106            public com.liferay.portal.model.Organization[] findByLocations_PrevAndNext(
107                    long organizationId, long companyId,
108                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
109                    throws com.liferay.portal.NoSuchOrganizationException,
110                            com.liferay.portal.kernel.exception.SystemException;
111    
112            public java.util.List<com.liferay.portal.model.Organization> findByC_P(
113                    long companyId, long parentOrganizationId)
114                    throws com.liferay.portal.kernel.exception.SystemException;
115    
116            public java.util.List<com.liferay.portal.model.Organization> findByC_P(
117                    long companyId, long parentOrganizationId, int start, int end)
118                    throws com.liferay.portal.kernel.exception.SystemException;
119    
120            public java.util.List<com.liferay.portal.model.Organization> findByC_P(
121                    long companyId, long parentOrganizationId, int start, int end,
122                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
123                    throws com.liferay.portal.kernel.exception.SystemException;
124    
125            public com.liferay.portal.model.Organization findByC_P_First(
126                    long companyId, long parentOrganizationId,
127                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
128                    throws com.liferay.portal.NoSuchOrganizationException,
129                            com.liferay.portal.kernel.exception.SystemException;
130    
131            public com.liferay.portal.model.Organization findByC_P_Last(
132                    long companyId, long parentOrganizationId,
133                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
134                    throws com.liferay.portal.NoSuchOrganizationException,
135                            com.liferay.portal.kernel.exception.SystemException;
136    
137            public com.liferay.portal.model.Organization[] findByC_P_PrevAndNext(
138                    long organizationId, long companyId, long parentOrganizationId,
139                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
140                    throws com.liferay.portal.NoSuchOrganizationException,
141                            com.liferay.portal.kernel.exception.SystemException;
142    
143            public com.liferay.portal.model.Organization findByC_N(long companyId,
144                    java.lang.String name)
145                    throws com.liferay.portal.NoSuchOrganizationException,
146                            com.liferay.portal.kernel.exception.SystemException;
147    
148            public com.liferay.portal.model.Organization fetchByC_N(long companyId,
149                    java.lang.String name)
150                    throws com.liferay.portal.kernel.exception.SystemException;
151    
152            public com.liferay.portal.model.Organization fetchByC_N(long companyId,
153                    java.lang.String name, boolean retrieveFromCache)
154                    throws com.liferay.portal.kernel.exception.SystemException;
155    
156            public java.util.List<com.liferay.portal.model.Organization> findAll()
157                    throws com.liferay.portal.kernel.exception.SystemException;
158    
159            public java.util.List<com.liferay.portal.model.Organization> findAll(
160                    int start, int end)
161                    throws com.liferay.portal.kernel.exception.SystemException;
162    
163            public java.util.List<com.liferay.portal.model.Organization> findAll(
164                    int start, int end,
165                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
166                    throws com.liferay.portal.kernel.exception.SystemException;
167    
168            public void removeByCompanyId(long companyId)
169                    throws com.liferay.portal.kernel.exception.SystemException;
170    
171            public void removeByLocations(long companyId)
172                    throws com.liferay.portal.kernel.exception.SystemException;
173    
174            public void removeByC_P(long companyId, long parentOrganizationId)
175                    throws com.liferay.portal.kernel.exception.SystemException;
176    
177            public void removeByC_N(long companyId, java.lang.String name)
178                    throws com.liferay.portal.NoSuchOrganizationException,
179                            com.liferay.portal.kernel.exception.SystemException;
180    
181            public void removeAll()
182                    throws com.liferay.portal.kernel.exception.SystemException;
183    
184            public int countByCompanyId(long companyId)
185                    throws com.liferay.portal.kernel.exception.SystemException;
186    
187            public int countByLocations(long companyId)
188                    throws com.liferay.portal.kernel.exception.SystemException;
189    
190            public int countByC_P(long companyId, long parentOrganizationId)
191                    throws com.liferay.portal.kernel.exception.SystemException;
192    
193            public int countByC_N(long companyId, java.lang.String name)
194                    throws com.liferay.portal.kernel.exception.SystemException;
195    
196            public int countAll()
197                    throws com.liferay.portal.kernel.exception.SystemException;
198    
199            public java.util.List<com.liferay.portal.model.Group> getGroups(long pk)
200                    throws com.liferay.portal.kernel.exception.SystemException;
201    
202            public java.util.List<com.liferay.portal.model.Group> getGroups(long pk,
203                    int start, int end)
204                    throws com.liferay.portal.kernel.exception.SystemException;
205    
206            public java.util.List<com.liferay.portal.model.Group> getGroups(long pk,
207                    int start, int end,
208                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
209                    throws com.liferay.portal.kernel.exception.SystemException;
210    
211            public int getGroupsSize(long pk)
212                    throws com.liferay.portal.kernel.exception.SystemException;
213    
214            public boolean containsGroup(long pk, long groupPK)
215                    throws com.liferay.portal.kernel.exception.SystemException;
216    
217            public boolean containsGroups(long pk)
218                    throws com.liferay.portal.kernel.exception.SystemException;
219    
220            public void addGroup(long pk, long groupPK)
221                    throws com.liferay.portal.kernel.exception.SystemException;
222    
223            public void addGroup(long pk, com.liferay.portal.model.Group group)
224                    throws com.liferay.portal.kernel.exception.SystemException;
225    
226            public void addGroups(long pk, long[] groupPKs)
227                    throws com.liferay.portal.kernel.exception.SystemException;
228    
229            public void addGroups(long pk,
230                    java.util.List<com.liferay.portal.model.Group> groups)
231                    throws com.liferay.portal.kernel.exception.SystemException;
232    
233            public void clearGroups(long pk)
234                    throws com.liferay.portal.kernel.exception.SystemException;
235    
236            public void removeGroup(long pk, long groupPK)
237                    throws com.liferay.portal.kernel.exception.SystemException;
238    
239            public void removeGroup(long pk, com.liferay.portal.model.Group group)
240                    throws com.liferay.portal.kernel.exception.SystemException;
241    
242            public void removeGroups(long pk, long[] groupPKs)
243                    throws com.liferay.portal.kernel.exception.SystemException;
244    
245            public void removeGroups(long pk,
246                    java.util.List<com.liferay.portal.model.Group> groups)
247                    throws com.liferay.portal.kernel.exception.SystemException;
248    
249            public void setGroups(long pk, long[] groupPKs)
250                    throws com.liferay.portal.kernel.exception.SystemException;
251    
252            public void setGroups(long pk,
253                    java.util.List<com.liferay.portal.model.Group> groups)
254                    throws com.liferay.portal.kernel.exception.SystemException;
255    
256            public java.util.List<com.liferay.portal.model.User> getUsers(long pk)
257                    throws com.liferay.portal.kernel.exception.SystemException;
258    
259            public java.util.List<com.liferay.portal.model.User> getUsers(long pk,
260                    int start, int end)
261                    throws com.liferay.portal.kernel.exception.SystemException;
262    
263            public java.util.List<com.liferay.portal.model.User> getUsers(long pk,
264                    int start, int end,
265                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
266                    throws com.liferay.portal.kernel.exception.SystemException;
267    
268            public int getUsersSize(long pk)
269                    throws com.liferay.portal.kernel.exception.SystemException;
270    
271            public boolean containsUser(long pk, long userPK)
272                    throws com.liferay.portal.kernel.exception.SystemException;
273    
274            public boolean containsUsers(long pk)
275                    throws com.liferay.portal.kernel.exception.SystemException;
276    
277            public void addUser(long pk, long userPK)
278                    throws com.liferay.portal.kernel.exception.SystemException;
279    
280            public void addUser(long pk, com.liferay.portal.model.User user)
281                    throws com.liferay.portal.kernel.exception.SystemException;
282    
283            public void addUsers(long pk, long[] userPKs)
284                    throws com.liferay.portal.kernel.exception.SystemException;
285    
286            public void addUsers(long pk,
287                    java.util.List<com.liferay.portal.model.User> users)
288                    throws com.liferay.portal.kernel.exception.SystemException;
289    
290            public void clearUsers(long pk)
291                    throws com.liferay.portal.kernel.exception.SystemException;
292    
293            public void removeUser(long pk, long userPK)
294                    throws com.liferay.portal.kernel.exception.SystemException;
295    
296            public void removeUser(long pk, com.liferay.portal.model.User user)
297                    throws com.liferay.portal.kernel.exception.SystemException;
298    
299            public void removeUsers(long pk, long[] userPKs)
300                    throws com.liferay.portal.kernel.exception.SystemException;
301    
302            public void removeUsers(long pk,
303                    java.util.List<com.liferay.portal.model.User> users)
304                    throws com.liferay.portal.kernel.exception.SystemException;
305    
306            public void setUsers(long pk, long[] userPKs)
307                    throws com.liferay.portal.kernel.exception.SystemException;
308    
309            public void setUsers(long pk,
310                    java.util.List<com.liferay.portal.model.User> users)
311                    throws com.liferay.portal.kernel.exception.SystemException;
312    
313            public void rebuildTree(long companyId, boolean force)
314                    throws com.liferay.portal.kernel.exception.SystemException;
315    }