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