001: /**
002: * Copyright (c) 2000-2008 Liferay, Inc. All rights reserved.
003: *
004: * Permission is hereby granted, free of charge, to any person obtaining a copy
005: * of this software and associated documentation files (the "Software"), to deal
006: * in the Software without restriction, including without limitation the rights
007: * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
008: * copies of the Software, and to permit persons to whom the Software is
009: * furnished to do so, subject to the following conditions:
010: *
011: * The above copyright notice and this permission notice shall be included in
012: * all copies or substantial portions of the Software.
013: *
014: * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
015: * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
016: * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
017: * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
018: * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
019: * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
020: * SOFTWARE.
021: */package com.liferay.portal.service.persistence;
022:
023: /**
024: * <a href="UserGroupRolePersistence.java.html"><b><i>View Source</i></b></a>
025: *
026: * @author Brian Wing Shun Chan
027: *
028: */
029: public interface UserGroupRolePersistence {
030: public com.liferay.portal.model.UserGroupRole create(
031: com.liferay.portal.service.persistence.UserGroupRolePK userGroupRolePK);
032:
033: public com.liferay.portal.model.UserGroupRole remove(
034: com.liferay.portal.service.persistence.UserGroupRolePK userGroupRolePK)
035: throws com.liferay.portal.SystemException,
036: com.liferay.portal.NoSuchUserGroupRoleException;
037:
038: public com.liferay.portal.model.UserGroupRole remove(
039: com.liferay.portal.model.UserGroupRole userGroupRole)
040: throws com.liferay.portal.SystemException;
041:
042: public com.liferay.portal.model.UserGroupRole update(
043: com.liferay.portal.model.UserGroupRole userGroupRole)
044: throws com.liferay.portal.SystemException;
045:
046: public com.liferay.portal.model.UserGroupRole update(
047: com.liferay.portal.model.UserGroupRole userGroupRole,
048: boolean merge) throws com.liferay.portal.SystemException;
049:
050: public com.liferay.portal.model.UserGroupRole updateImpl(
051: com.liferay.portal.model.UserGroupRole userGroupRole,
052: boolean merge) throws com.liferay.portal.SystemException;
053:
054: public com.liferay.portal.model.UserGroupRole findByPrimaryKey(
055: com.liferay.portal.service.persistence.UserGroupRolePK userGroupRolePK)
056: throws com.liferay.portal.SystemException,
057: com.liferay.portal.NoSuchUserGroupRoleException;
058:
059: public com.liferay.portal.model.UserGroupRole fetchByPrimaryKey(
060: com.liferay.portal.service.persistence.UserGroupRolePK userGroupRolePK)
061: throws com.liferay.portal.SystemException;
062:
063: public java.util.List findByUserId(long userId)
064: throws com.liferay.portal.SystemException;
065:
066: public java.util.List findByUserId(long userId, int begin, int end)
067: throws com.liferay.portal.SystemException;
068:
069: public java.util.List findByUserId(long userId, int begin, int end,
070: com.liferay.portal.kernel.util.OrderByComparator obc)
071: throws com.liferay.portal.SystemException;
072:
073: public com.liferay.portal.model.UserGroupRole findByUserId_First(
074: long userId,
075: com.liferay.portal.kernel.util.OrderByComparator obc)
076: throws com.liferay.portal.SystemException,
077: com.liferay.portal.NoSuchUserGroupRoleException;
078:
079: public com.liferay.portal.model.UserGroupRole findByUserId_Last(
080: long userId,
081: com.liferay.portal.kernel.util.OrderByComparator obc)
082: throws com.liferay.portal.SystemException,
083: com.liferay.portal.NoSuchUserGroupRoleException;
084:
085: public com.liferay.portal.model.UserGroupRole[] findByUserId_PrevAndNext(
086: com.liferay.portal.service.persistence.UserGroupRolePK userGroupRolePK,
087: long userId,
088: com.liferay.portal.kernel.util.OrderByComparator obc)
089: throws com.liferay.portal.SystemException,
090: com.liferay.portal.NoSuchUserGroupRoleException;
091:
092: public java.util.List findByGroupId(long groupId)
093: throws com.liferay.portal.SystemException;
094:
095: public java.util.List findByGroupId(long groupId, int begin, int end)
096: throws com.liferay.portal.SystemException;
097:
098: public java.util.List findByGroupId(long groupId, int begin,
099: int end,
100: com.liferay.portal.kernel.util.OrderByComparator obc)
101: throws com.liferay.portal.SystemException;
102:
103: public com.liferay.portal.model.UserGroupRole findByGroupId_First(
104: long groupId,
105: com.liferay.portal.kernel.util.OrderByComparator obc)
106: throws com.liferay.portal.SystemException,
107: com.liferay.portal.NoSuchUserGroupRoleException;
108:
109: public com.liferay.portal.model.UserGroupRole findByGroupId_Last(
110: long groupId,
111: com.liferay.portal.kernel.util.OrderByComparator obc)
112: throws com.liferay.portal.SystemException,
113: com.liferay.portal.NoSuchUserGroupRoleException;
114:
115: public com.liferay.portal.model.UserGroupRole[] findByGroupId_PrevAndNext(
116: com.liferay.portal.service.persistence.UserGroupRolePK userGroupRolePK,
117: long groupId,
118: com.liferay.portal.kernel.util.OrderByComparator obc)
119: throws com.liferay.portal.SystemException,
120: com.liferay.portal.NoSuchUserGroupRoleException;
121:
122: public java.util.List findByRoleId(long roleId)
123: throws com.liferay.portal.SystemException;
124:
125: public java.util.List findByRoleId(long roleId, int begin, int end)
126: throws com.liferay.portal.SystemException;
127:
128: public java.util.List findByRoleId(long roleId, int begin, int end,
129: com.liferay.portal.kernel.util.OrderByComparator obc)
130: throws com.liferay.portal.SystemException;
131:
132: public com.liferay.portal.model.UserGroupRole findByRoleId_First(
133: long roleId,
134: com.liferay.portal.kernel.util.OrderByComparator obc)
135: throws com.liferay.portal.SystemException,
136: com.liferay.portal.NoSuchUserGroupRoleException;
137:
138: public com.liferay.portal.model.UserGroupRole findByRoleId_Last(
139: long roleId,
140: com.liferay.portal.kernel.util.OrderByComparator obc)
141: throws com.liferay.portal.SystemException,
142: com.liferay.portal.NoSuchUserGroupRoleException;
143:
144: public com.liferay.portal.model.UserGroupRole[] findByRoleId_PrevAndNext(
145: com.liferay.portal.service.persistence.UserGroupRolePK userGroupRolePK,
146: long roleId,
147: com.liferay.portal.kernel.util.OrderByComparator obc)
148: throws com.liferay.portal.SystemException,
149: com.liferay.portal.NoSuchUserGroupRoleException;
150:
151: public java.util.List findByU_G(long userId, long groupId)
152: throws com.liferay.portal.SystemException;
153:
154: public java.util.List findByU_G(long userId, long groupId,
155: int begin, int end)
156: throws com.liferay.portal.SystemException;
157:
158: public java.util.List findByU_G(long userId, long groupId,
159: int begin, int end,
160: com.liferay.portal.kernel.util.OrderByComparator obc)
161: throws com.liferay.portal.SystemException;
162:
163: public com.liferay.portal.model.UserGroupRole findByU_G_First(
164: long userId, long groupId,
165: com.liferay.portal.kernel.util.OrderByComparator obc)
166: throws com.liferay.portal.SystemException,
167: com.liferay.portal.NoSuchUserGroupRoleException;
168:
169: public com.liferay.portal.model.UserGroupRole findByU_G_Last(
170: long userId, long groupId,
171: com.liferay.portal.kernel.util.OrderByComparator obc)
172: throws com.liferay.portal.SystemException,
173: com.liferay.portal.NoSuchUserGroupRoleException;
174:
175: public com.liferay.portal.model.UserGroupRole[] findByU_G_PrevAndNext(
176: com.liferay.portal.service.persistence.UserGroupRolePK userGroupRolePK,
177: long userId, long groupId,
178: com.liferay.portal.kernel.util.OrderByComparator obc)
179: throws com.liferay.portal.SystemException,
180: com.liferay.portal.NoSuchUserGroupRoleException;
181:
182: public java.util.List findByG_R(long groupId, long roleId)
183: throws com.liferay.portal.SystemException;
184:
185: public java.util.List findByG_R(long groupId, long roleId,
186: int begin, int end)
187: throws com.liferay.portal.SystemException;
188:
189: public java.util.List findByG_R(long groupId, long roleId,
190: int begin, int end,
191: com.liferay.portal.kernel.util.OrderByComparator obc)
192: throws com.liferay.portal.SystemException;
193:
194: public com.liferay.portal.model.UserGroupRole findByG_R_First(
195: long groupId, long roleId,
196: com.liferay.portal.kernel.util.OrderByComparator obc)
197: throws com.liferay.portal.SystemException,
198: com.liferay.portal.NoSuchUserGroupRoleException;
199:
200: public com.liferay.portal.model.UserGroupRole findByG_R_Last(
201: long groupId, long roleId,
202: com.liferay.portal.kernel.util.OrderByComparator obc)
203: throws com.liferay.portal.SystemException,
204: com.liferay.portal.NoSuchUserGroupRoleException;
205:
206: public com.liferay.portal.model.UserGroupRole[] findByG_R_PrevAndNext(
207: com.liferay.portal.service.persistence.UserGroupRolePK userGroupRolePK,
208: long groupId, long roleId,
209: com.liferay.portal.kernel.util.OrderByComparator obc)
210: throws com.liferay.portal.SystemException,
211: com.liferay.portal.NoSuchUserGroupRoleException;
212:
213: public java.util.List findWithDynamicQuery(
214: com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
215: throws com.liferay.portal.SystemException;
216:
217: public java.util.List findWithDynamicQuery(
218: com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
219: int begin, int end)
220: throws com.liferay.portal.SystemException;
221:
222: public java.util.List findAll()
223: throws com.liferay.portal.SystemException;
224:
225: public java.util.List findAll(int begin, int end)
226: throws com.liferay.portal.SystemException;
227:
228: public java.util.List findAll(int begin, int end,
229: com.liferay.portal.kernel.util.OrderByComparator obc)
230: throws com.liferay.portal.SystemException;
231:
232: public void removeByUserId(long userId)
233: throws com.liferay.portal.SystemException;
234:
235: public void removeByGroupId(long groupId)
236: throws com.liferay.portal.SystemException;
237:
238: public void removeByRoleId(long roleId)
239: throws com.liferay.portal.SystemException;
240:
241: public void removeByU_G(long userId, long groupId)
242: throws com.liferay.portal.SystemException;
243:
244: public void removeByG_R(long groupId, long roleId)
245: throws com.liferay.portal.SystemException;
246:
247: public void removeAll() throws com.liferay.portal.SystemException;
248:
249: public int countByUserId(long userId)
250: throws com.liferay.portal.SystemException;
251:
252: public int countByGroupId(long groupId)
253: throws com.liferay.portal.SystemException;
254:
255: public int countByRoleId(long roleId)
256: throws com.liferay.portal.SystemException;
257:
258: public int countByU_G(long userId, long groupId)
259: throws com.liferay.portal.SystemException;
260:
261: public int countByG_R(long groupId, long roleId)
262: throws com.liferay.portal.SystemException;
263:
264: public int countAll() throws com.liferay.portal.SystemException;
265: }
|