1
22
23 package com.liferay.portal.service.persistence;
24
25
31 public interface OrganizationPersistence {
32 public com.liferay.portal.model.Organization create(long organizationId);
33
34 public com.liferay.portal.model.Organization remove(long organizationId)
35 throws com.liferay.portal.SystemException,
36 com.liferay.portal.NoSuchOrganizationException;
37
38 public com.liferay.portal.model.Organization remove(
39 com.liferay.portal.model.Organization organization)
40 throws com.liferay.portal.SystemException;
41
42 public com.liferay.portal.model.Organization update(
43 com.liferay.portal.model.Organization organization)
44 throws com.liferay.portal.SystemException;
45
46 public com.liferay.portal.model.Organization update(
47 com.liferay.portal.model.Organization organization, boolean merge)
48 throws com.liferay.portal.SystemException;
49
50 public com.liferay.portal.model.Organization findByPrimaryKey(
51 long organizationId)
52 throws com.liferay.portal.SystemException,
53 com.liferay.portal.NoSuchOrganizationException;
54
55 public com.liferay.portal.model.Organization fetchByPrimaryKey(
56 long organizationId) throws com.liferay.portal.SystemException;
57
58 public java.util.List findByCompanyId(long companyId)
59 throws com.liferay.portal.SystemException;
60
61 public java.util.List findByCompanyId(long companyId, int begin, int end)
62 throws com.liferay.portal.SystemException;
63
64 public java.util.List findByCompanyId(long companyId, int begin, int end,
65 com.liferay.portal.kernel.util.OrderByComparator obc)
66 throws com.liferay.portal.SystemException;
67
68 public com.liferay.portal.model.Organization findByCompanyId_First(
69 long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
70 throws com.liferay.portal.SystemException,
71 com.liferay.portal.NoSuchOrganizationException;
72
73 public com.liferay.portal.model.Organization findByCompanyId_Last(
74 long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
75 throws com.liferay.portal.SystemException,
76 com.liferay.portal.NoSuchOrganizationException;
77
78 public com.liferay.portal.model.Organization[] findByCompanyId_PrevAndNext(
79 long organizationId, long companyId,
80 com.liferay.portal.kernel.util.OrderByComparator obc)
81 throws com.liferay.portal.SystemException,
82 com.liferay.portal.NoSuchOrganizationException;
83
84 public java.util.List findByLocations(long companyId)
85 throws com.liferay.portal.SystemException;
86
87 public java.util.List findByLocations(long companyId, int begin, int end)
88 throws com.liferay.portal.SystemException;
89
90 public java.util.List findByLocations(long companyId, int begin, int end,
91 com.liferay.portal.kernel.util.OrderByComparator obc)
92 throws com.liferay.portal.SystemException;
93
94 public com.liferay.portal.model.Organization findByLocations_First(
95 long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
96 throws com.liferay.portal.SystemException,
97 com.liferay.portal.NoSuchOrganizationException;
98
99 public com.liferay.portal.model.Organization findByLocations_Last(
100 long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
101 throws com.liferay.portal.SystemException,
102 com.liferay.portal.NoSuchOrganizationException;
103
104 public com.liferay.portal.model.Organization[] findByLocations_PrevAndNext(
105 long organizationId, long companyId,
106 com.liferay.portal.kernel.util.OrderByComparator obc)
107 throws com.liferay.portal.SystemException,
108 com.liferay.portal.NoSuchOrganizationException;
109
110 public java.util.List findByC_P(long companyId, long parentOrganizationId)
111 throws com.liferay.portal.SystemException;
112
113 public java.util.List findByC_P(long companyId, long parentOrganizationId,
114 int begin, int end) throws com.liferay.portal.SystemException;
115
116 public java.util.List findByC_P(long companyId, long parentOrganizationId,
117 int begin, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
118 throws com.liferay.portal.SystemException;
119
120 public com.liferay.portal.model.Organization findByC_P_First(
121 long companyId, long parentOrganizationId,
122 com.liferay.portal.kernel.util.OrderByComparator obc)
123 throws com.liferay.portal.SystemException,
124 com.liferay.portal.NoSuchOrganizationException;
125
126 public com.liferay.portal.model.Organization findByC_P_Last(
127 long companyId, long parentOrganizationId,
128 com.liferay.portal.kernel.util.OrderByComparator obc)
129 throws com.liferay.portal.SystemException,
130 com.liferay.portal.NoSuchOrganizationException;
131
132 public com.liferay.portal.model.Organization[] findByC_P_PrevAndNext(
133 long organizationId, long companyId, long parentOrganizationId,
134 com.liferay.portal.kernel.util.OrderByComparator obc)
135 throws com.liferay.portal.SystemException,
136 com.liferay.portal.NoSuchOrganizationException;
137
138 public com.liferay.portal.model.Organization findByC_N(long companyId,
139 java.lang.String name)
140 throws com.liferay.portal.SystemException,
141 com.liferay.portal.NoSuchOrganizationException;
142
143 public com.liferay.portal.model.Organization fetchByC_N(long companyId,
144 java.lang.String name) throws com.liferay.portal.SystemException;
145
146 public java.util.List findWithDynamicQuery(
147 com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
148 throws com.liferay.portal.SystemException;
149
150 public java.util.List findWithDynamicQuery(
151 com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
152 int begin, int end) throws com.liferay.portal.SystemException;
153
154 public java.util.List findAll() throws com.liferay.portal.SystemException;
155
156 public java.util.List findAll(int begin, int end)
157 throws com.liferay.portal.SystemException;
158
159 public java.util.List findAll(int begin, int end,
160 com.liferay.portal.kernel.util.OrderByComparator obc)
161 throws com.liferay.portal.SystemException;
162
163 public void removeByCompanyId(long companyId)
164 throws com.liferay.portal.SystemException;
165
166 public void removeByLocations(long companyId)
167 throws com.liferay.portal.SystemException;
168
169 public void removeByC_P(long companyId, long parentOrganizationId)
170 throws com.liferay.portal.SystemException;
171
172 public void removeByC_N(long companyId, java.lang.String name)
173 throws com.liferay.portal.SystemException,
174 com.liferay.portal.NoSuchOrganizationException;
175
176 public void removeAll() throws com.liferay.portal.SystemException;
177
178 public int countByCompanyId(long companyId)
179 throws com.liferay.portal.SystemException;
180
181 public int countByLocations(long companyId)
182 throws com.liferay.portal.SystemException;
183
184 public int countByC_P(long companyId, long parentOrganizationId)
185 throws com.liferay.portal.SystemException;
186
187 public int countByC_N(long companyId, java.lang.String name)
188 throws com.liferay.portal.SystemException;
189
190 public int countAll() throws com.liferay.portal.SystemException;
191
192 public java.util.List getGroups(long pk)
193 throws com.liferay.portal.SystemException,
194 com.liferay.portal.NoSuchOrganizationException;
195
196 public java.util.List getGroups(long pk, int begin, int end)
197 throws com.liferay.portal.SystemException,
198 com.liferay.portal.NoSuchOrganizationException;
199
200 public java.util.List getGroups(long pk, int begin, int end,
201 com.liferay.portal.kernel.util.OrderByComparator obc)
202 throws com.liferay.portal.SystemException,
203 com.liferay.portal.NoSuchOrganizationException;
204
205 public int getGroupsSize(long pk) throws com.liferay.portal.SystemException;
206
207 public boolean containsGroup(long pk, long groupPK)
208 throws com.liferay.portal.SystemException;
209
210 public boolean containsGroups(long pk)
211 throws com.liferay.portal.SystemException;
212
213 public void addGroup(long pk, long groupPK)
214 throws com.liferay.portal.SystemException,
215 com.liferay.portal.NoSuchGroupException,
216 com.liferay.portal.NoSuchOrganizationException;
217
218 public void addGroup(long pk, com.liferay.portal.model.Group group)
219 throws com.liferay.portal.SystemException,
220 com.liferay.portal.NoSuchGroupException,
221 com.liferay.portal.NoSuchOrganizationException;
222
223 public void addGroups(long pk, long[] groupPKs)
224 throws com.liferay.portal.SystemException,
225 com.liferay.portal.NoSuchGroupException,
226 com.liferay.portal.NoSuchOrganizationException;
227
228 public void addGroups(long pk, java.util.List groups)
229 throws com.liferay.portal.SystemException,
230 com.liferay.portal.NoSuchGroupException,
231 com.liferay.portal.NoSuchOrganizationException;
232
233 public void clearGroups(long pk)
234 throws com.liferay.portal.SystemException,
235 com.liferay.portal.NoSuchOrganizationException;
236
237 public void removeGroup(long pk, long groupPK)
238 throws com.liferay.portal.SystemException,
239 com.liferay.portal.NoSuchGroupException,
240 com.liferay.portal.NoSuchOrganizationException;
241
242 public void removeGroup(long pk, com.liferay.portal.model.Group group)
243 throws com.liferay.portal.SystemException,
244 com.liferay.portal.NoSuchGroupException,
245 com.liferay.portal.NoSuchOrganizationException;
246
247 public void removeGroups(long pk, long[] groupPKs)
248 throws com.liferay.portal.SystemException,
249 com.liferay.portal.NoSuchGroupException,
250 com.liferay.portal.NoSuchOrganizationException;
251
252 public void removeGroups(long pk, java.util.List groups)
253 throws com.liferay.portal.SystemException,
254 com.liferay.portal.NoSuchGroupException,
255 com.liferay.portal.NoSuchOrganizationException;
256
257 public void setGroups(long pk, long[] groupPKs)
258 throws com.liferay.portal.SystemException,
259 com.liferay.portal.NoSuchGroupException,
260 com.liferay.portal.NoSuchOrganizationException;
261
262 public void setGroups(long pk, java.util.List groups)
263 throws com.liferay.portal.SystemException,
264 com.liferay.portal.NoSuchGroupException,
265 com.liferay.portal.NoSuchOrganizationException;
266
267 public java.util.List getUsers(long pk)
268 throws com.liferay.portal.SystemException,
269 com.liferay.portal.NoSuchOrganizationException;
270
271 public java.util.List getUsers(long pk, int begin, int end)
272 throws com.liferay.portal.SystemException,
273 com.liferay.portal.NoSuchOrganizationException;
274
275 public java.util.List getUsers(long pk, int begin, int end,
276 com.liferay.portal.kernel.util.OrderByComparator obc)
277 throws com.liferay.portal.SystemException,
278 com.liferay.portal.NoSuchOrganizationException;
279
280 public int getUsersSize(long pk) throws com.liferay.portal.SystemException;
281
282 public boolean containsUser(long pk, long userPK)
283 throws com.liferay.portal.SystemException;
284
285 public boolean containsUsers(long pk)
286 throws com.liferay.portal.SystemException;
287
288 public void addUser(long pk, long userPK)
289 throws com.liferay.portal.SystemException,
290 com.liferay.portal.NoSuchOrganizationException,
291 com.liferay.portal.NoSuchUserException;
292
293 public void addUser(long pk, com.liferay.portal.model.User user)
294 throws com.liferay.portal.SystemException,
295 com.liferay.portal.NoSuchOrganizationException,
296 com.liferay.portal.NoSuchUserException;
297
298 public void addUsers(long pk, long[] userPKs)
299 throws com.liferay.portal.SystemException,
300 com.liferay.portal.NoSuchOrganizationException,
301 com.liferay.portal.NoSuchUserException;
302
303 public void addUsers(long pk, java.util.List users)
304 throws com.liferay.portal.SystemException,
305 com.liferay.portal.NoSuchOrganizationException,
306 com.liferay.portal.NoSuchUserException;
307
308 public void clearUsers(long pk)
309 throws com.liferay.portal.SystemException,
310 com.liferay.portal.NoSuchOrganizationException;
311
312 public void removeUser(long pk, long userPK)
313 throws com.liferay.portal.SystemException,
314 com.liferay.portal.NoSuchOrganizationException,
315 com.liferay.portal.NoSuchUserException;
316
317 public void removeUser(long pk, com.liferay.portal.model.User user)
318 throws com.liferay.portal.SystemException,
319 com.liferay.portal.NoSuchOrganizationException,
320 com.liferay.portal.NoSuchUserException;
321
322 public void removeUsers(long pk, long[] userPKs)
323 throws com.liferay.portal.SystemException,
324 com.liferay.portal.NoSuchOrganizationException,
325 com.liferay.portal.NoSuchUserException;
326
327 public void removeUsers(long pk, java.util.List users)
328 throws com.liferay.portal.SystemException,
329 com.liferay.portal.NoSuchOrganizationException,
330 com.liferay.portal.NoSuchUserException;
331
332 public void setUsers(long pk, long[] userPKs)
333 throws com.liferay.portal.SystemException,
334 com.liferay.portal.NoSuchOrganizationException,
335 com.liferay.portal.NoSuchUserException;
336
337 public void setUsers(long pk, java.util.List users)
338 throws com.liferay.portal.SystemException,
339 com.liferay.portal.NoSuchOrganizationException,
340 com.liferay.portal.NoSuchUserException;
341 }