1
22
23 package com.liferay.portal.service.persistence;
24
25
31 public interface UserGroupPersistence {
32 public com.liferay.portal.model.UserGroup create(long userGroupId);
33
34 public com.liferay.portal.model.UserGroup remove(long userGroupId)
35 throws com.liferay.portal.SystemException,
36 com.liferay.portal.NoSuchUserGroupException;
37
38 public com.liferay.portal.model.UserGroup remove(
39 com.liferay.portal.model.UserGroup userGroup)
40 throws com.liferay.portal.SystemException;
41
42 public com.liferay.portal.model.UserGroup update(
43 com.liferay.portal.model.UserGroup userGroup)
44 throws com.liferay.portal.SystemException;
45
46 public com.liferay.portal.model.UserGroup update(
47 com.liferay.portal.model.UserGroup userGroup, boolean merge)
48 throws com.liferay.portal.SystemException;
49
50 public com.liferay.portal.model.UserGroup findByPrimaryKey(long userGroupId)
51 throws com.liferay.portal.SystemException,
52 com.liferay.portal.NoSuchUserGroupException;
53
54 public com.liferay.portal.model.UserGroup fetchByPrimaryKey(
55 long userGroupId) throws com.liferay.portal.SystemException;
56
57 public java.util.List findByCompanyId(long companyId)
58 throws com.liferay.portal.SystemException;
59
60 public java.util.List findByCompanyId(long companyId, int begin, int end)
61 throws com.liferay.portal.SystemException;
62
63 public java.util.List findByCompanyId(long companyId, int begin, int end,
64 com.liferay.portal.kernel.util.OrderByComparator obc)
65 throws com.liferay.portal.SystemException;
66
67 public com.liferay.portal.model.UserGroup findByCompanyId_First(
68 long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
69 throws com.liferay.portal.SystemException,
70 com.liferay.portal.NoSuchUserGroupException;
71
72 public com.liferay.portal.model.UserGroup findByCompanyId_Last(
73 long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
74 throws com.liferay.portal.SystemException,
75 com.liferay.portal.NoSuchUserGroupException;
76
77 public com.liferay.portal.model.UserGroup[] findByCompanyId_PrevAndNext(
78 long userGroupId, long companyId,
79 com.liferay.portal.kernel.util.OrderByComparator obc)
80 throws com.liferay.portal.SystemException,
81 com.liferay.portal.NoSuchUserGroupException;
82
83 public java.util.List findByC_P(long companyId, long parentUserGroupId)
84 throws com.liferay.portal.SystemException;
85
86 public java.util.List findByC_P(long companyId, long parentUserGroupId,
87 int begin, int end) throws com.liferay.portal.SystemException;
88
89 public java.util.List findByC_P(long companyId, long parentUserGroupId,
90 int begin, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
91 throws com.liferay.portal.SystemException;
92
93 public com.liferay.portal.model.UserGroup findByC_P_First(long companyId,
94 long parentUserGroupId,
95 com.liferay.portal.kernel.util.OrderByComparator obc)
96 throws com.liferay.portal.SystemException,
97 com.liferay.portal.NoSuchUserGroupException;
98
99 public com.liferay.portal.model.UserGroup findByC_P_Last(long companyId,
100 long parentUserGroupId,
101 com.liferay.portal.kernel.util.OrderByComparator obc)
102 throws com.liferay.portal.SystemException,
103 com.liferay.portal.NoSuchUserGroupException;
104
105 public com.liferay.portal.model.UserGroup[] findByC_P_PrevAndNext(
106 long userGroupId, long companyId, long parentUserGroupId,
107 com.liferay.portal.kernel.util.OrderByComparator obc)
108 throws com.liferay.portal.SystemException,
109 com.liferay.portal.NoSuchUserGroupException;
110
111 public com.liferay.portal.model.UserGroup findByC_N(long companyId,
112 java.lang.String name)
113 throws com.liferay.portal.SystemException,
114 com.liferay.portal.NoSuchUserGroupException;
115
116 public com.liferay.portal.model.UserGroup fetchByC_N(long companyId,
117 java.lang.String name) throws com.liferay.portal.SystemException;
118
119 public java.util.List findWithDynamicQuery(
120 com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
121 throws com.liferay.portal.SystemException;
122
123 public java.util.List findWithDynamicQuery(
124 com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
125 int begin, int end) throws com.liferay.portal.SystemException;
126
127 public java.util.List findAll() throws com.liferay.portal.SystemException;
128
129 public java.util.List findAll(int begin, int end)
130 throws com.liferay.portal.SystemException;
131
132 public java.util.List findAll(int begin, int end,
133 com.liferay.portal.kernel.util.OrderByComparator obc)
134 throws com.liferay.portal.SystemException;
135
136 public void removeByCompanyId(long companyId)
137 throws com.liferay.portal.SystemException;
138
139 public void removeByC_P(long companyId, long parentUserGroupId)
140 throws com.liferay.portal.SystemException;
141
142 public void removeByC_N(long companyId, java.lang.String name)
143 throws com.liferay.portal.SystemException,
144 com.liferay.portal.NoSuchUserGroupException;
145
146 public void removeAll() throws com.liferay.portal.SystemException;
147
148 public int countByCompanyId(long companyId)
149 throws com.liferay.portal.SystemException;
150
151 public int countByC_P(long companyId, long parentUserGroupId)
152 throws com.liferay.portal.SystemException;
153
154 public int countByC_N(long companyId, java.lang.String name)
155 throws com.liferay.portal.SystemException;
156
157 public int countAll() throws com.liferay.portal.SystemException;
158
159 public java.util.List getUsers(long pk)
160 throws com.liferay.portal.SystemException,
161 com.liferay.portal.NoSuchUserGroupException;
162
163 public java.util.List getUsers(long pk, int begin, int end)
164 throws com.liferay.portal.SystemException,
165 com.liferay.portal.NoSuchUserGroupException;
166
167 public java.util.List getUsers(long pk, int begin, int end,
168 com.liferay.portal.kernel.util.OrderByComparator obc)
169 throws com.liferay.portal.SystemException,
170 com.liferay.portal.NoSuchUserGroupException;
171
172 public int getUsersSize(long pk) throws com.liferay.portal.SystemException;
173
174 public boolean containsUser(long pk, long userPK)
175 throws com.liferay.portal.SystemException;
176
177 public boolean containsUsers(long pk)
178 throws com.liferay.portal.SystemException;
179
180 public void addUser(long pk, long userPK)
181 throws com.liferay.portal.SystemException,
182 com.liferay.portal.NoSuchUserGroupException,
183 com.liferay.portal.NoSuchUserException;
184
185 public void addUser(long pk, com.liferay.portal.model.User user)
186 throws com.liferay.portal.SystemException,
187 com.liferay.portal.NoSuchUserGroupException,
188 com.liferay.portal.NoSuchUserException;
189
190 public void addUsers(long pk, long[] userPKs)
191 throws com.liferay.portal.SystemException,
192 com.liferay.portal.NoSuchUserGroupException,
193 com.liferay.portal.NoSuchUserException;
194
195 public void addUsers(long pk, java.util.List users)
196 throws com.liferay.portal.SystemException,
197 com.liferay.portal.NoSuchUserGroupException,
198 com.liferay.portal.NoSuchUserException;
199
200 public void clearUsers(long pk)
201 throws com.liferay.portal.SystemException,
202 com.liferay.portal.NoSuchUserGroupException;
203
204 public void removeUser(long pk, long userPK)
205 throws com.liferay.portal.SystemException,
206 com.liferay.portal.NoSuchUserGroupException,
207 com.liferay.portal.NoSuchUserException;
208
209 public void removeUser(long pk, com.liferay.portal.model.User user)
210 throws com.liferay.portal.SystemException,
211 com.liferay.portal.NoSuchUserGroupException,
212 com.liferay.portal.NoSuchUserException;
213
214 public void removeUsers(long pk, long[] userPKs)
215 throws com.liferay.portal.SystemException,
216 com.liferay.portal.NoSuchUserGroupException,
217 com.liferay.portal.NoSuchUserException;
218
219 public void removeUsers(long pk, java.util.List users)
220 throws com.liferay.portal.SystemException,
221 com.liferay.portal.NoSuchUserGroupException,
222 com.liferay.portal.NoSuchUserException;
223
224 public void setUsers(long pk, long[] userPKs)
225 throws com.liferay.portal.SystemException,
226 com.liferay.portal.NoSuchUserGroupException,
227 com.liferay.portal.NoSuchUserException;
228
229 public void setUsers(long pk, java.util.List users)
230 throws com.liferay.portal.SystemException,
231 com.liferay.portal.NoSuchUserGroupException,
232 com.liferay.portal.NoSuchUserException;
233 }