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="UserGroupPersistence.java.html"><b><i>View Source</i></b></a>
025: *
026: * @author Brian Wing Shun Chan
027: *
028: */
029: public interface UserGroupPersistence {
030: public com.liferay.portal.model.UserGroup create(long userGroupId);
031:
032: public com.liferay.portal.model.UserGroup remove(long userGroupId)
033: throws com.liferay.portal.SystemException,
034: com.liferay.portal.NoSuchUserGroupException;
035:
036: public com.liferay.portal.model.UserGroup remove(
037: com.liferay.portal.model.UserGroup userGroup)
038: throws com.liferay.portal.SystemException;
039:
040: public com.liferay.portal.model.UserGroup update(
041: com.liferay.portal.model.UserGroup userGroup)
042: throws com.liferay.portal.SystemException;
043:
044: public com.liferay.portal.model.UserGroup update(
045: com.liferay.portal.model.UserGroup userGroup, boolean merge)
046: throws com.liferay.portal.SystemException;
047:
048: public com.liferay.portal.model.UserGroup updateImpl(
049: com.liferay.portal.model.UserGroup userGroup, boolean merge)
050: throws com.liferay.portal.SystemException;
051:
052: public com.liferay.portal.model.UserGroup findByPrimaryKey(
053: long userGroupId)
054: throws com.liferay.portal.SystemException,
055: com.liferay.portal.NoSuchUserGroupException;
056:
057: public com.liferay.portal.model.UserGroup fetchByPrimaryKey(
058: long userGroupId) throws com.liferay.portal.SystemException;
059:
060: public java.util.List findByCompanyId(long companyId)
061: throws com.liferay.portal.SystemException;
062:
063: public java.util.List findByCompanyId(long companyId, int begin,
064: int end) throws com.liferay.portal.SystemException;
065:
066: public java.util.List findByCompanyId(long companyId, int begin,
067: int end,
068: com.liferay.portal.kernel.util.OrderByComparator obc)
069: throws com.liferay.portal.SystemException;
070:
071: public com.liferay.portal.model.UserGroup findByCompanyId_First(
072: long companyId,
073: com.liferay.portal.kernel.util.OrderByComparator obc)
074: throws com.liferay.portal.SystemException,
075: com.liferay.portal.NoSuchUserGroupException;
076:
077: public com.liferay.portal.model.UserGroup findByCompanyId_Last(
078: long companyId,
079: com.liferay.portal.kernel.util.OrderByComparator obc)
080: throws com.liferay.portal.SystemException,
081: com.liferay.portal.NoSuchUserGroupException;
082:
083: public com.liferay.portal.model.UserGroup[] findByCompanyId_PrevAndNext(
084: long userGroupId, long companyId,
085: com.liferay.portal.kernel.util.OrderByComparator obc)
086: throws com.liferay.portal.SystemException,
087: com.liferay.portal.NoSuchUserGroupException;
088:
089: public java.util.List findByC_P(long companyId,
090: long parentUserGroupId)
091: throws com.liferay.portal.SystemException;
092:
093: public java.util.List findByC_P(long companyId,
094: long parentUserGroupId, int begin, int end)
095: throws com.liferay.portal.SystemException;
096:
097: public java.util.List findByC_P(long companyId,
098: long parentUserGroupId, int begin, int end,
099: com.liferay.portal.kernel.util.OrderByComparator obc)
100: throws com.liferay.portal.SystemException;
101:
102: public com.liferay.portal.model.UserGroup findByC_P_First(
103: long companyId, long parentUserGroupId,
104: com.liferay.portal.kernel.util.OrderByComparator obc)
105: throws com.liferay.portal.SystemException,
106: com.liferay.portal.NoSuchUserGroupException;
107:
108: public com.liferay.portal.model.UserGroup findByC_P_Last(
109: long companyId, long parentUserGroupId,
110: com.liferay.portal.kernel.util.OrderByComparator obc)
111: throws com.liferay.portal.SystemException,
112: com.liferay.portal.NoSuchUserGroupException;
113:
114: public com.liferay.portal.model.UserGroup[] findByC_P_PrevAndNext(
115: long userGroupId, long companyId, long parentUserGroupId,
116: com.liferay.portal.kernel.util.OrderByComparator obc)
117: throws com.liferay.portal.SystemException,
118: com.liferay.portal.NoSuchUserGroupException;
119:
120: public com.liferay.portal.model.UserGroup findByC_N(long companyId,
121: java.lang.String name)
122: throws com.liferay.portal.SystemException,
123: com.liferay.portal.NoSuchUserGroupException;
124:
125: public com.liferay.portal.model.UserGroup fetchByC_N(
126: long companyId, java.lang.String name)
127: throws com.liferay.portal.SystemException;
128:
129: public java.util.List findWithDynamicQuery(
130: com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
131: throws com.liferay.portal.SystemException;
132:
133: public java.util.List findWithDynamicQuery(
134: com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
135: int begin, int end)
136: throws com.liferay.portal.SystemException;
137:
138: public java.util.List findAll()
139: throws com.liferay.portal.SystemException;
140:
141: public java.util.List findAll(int begin, int end)
142: throws com.liferay.portal.SystemException;
143:
144: public java.util.List findAll(int begin, int end,
145: com.liferay.portal.kernel.util.OrderByComparator obc)
146: throws com.liferay.portal.SystemException;
147:
148: public void removeByCompanyId(long companyId)
149: throws com.liferay.portal.SystemException;
150:
151: public void removeByC_P(long companyId, long parentUserGroupId)
152: throws com.liferay.portal.SystemException;
153:
154: public void removeByC_N(long companyId, java.lang.String name)
155: throws com.liferay.portal.SystemException,
156: com.liferay.portal.NoSuchUserGroupException;
157:
158: public void removeAll() throws com.liferay.portal.SystemException;
159:
160: public int countByCompanyId(long companyId)
161: throws com.liferay.portal.SystemException;
162:
163: public int countByC_P(long companyId, long parentUserGroupId)
164: throws com.liferay.portal.SystemException;
165:
166: public int countByC_N(long companyId, java.lang.String name)
167: throws com.liferay.portal.SystemException;
168:
169: public int countAll() throws com.liferay.portal.SystemException;
170:
171: public java.util.List getUsers(long pk)
172: throws com.liferay.portal.SystemException,
173: com.liferay.portal.NoSuchUserGroupException;
174:
175: public java.util.List getUsers(long pk, int begin, int end)
176: throws com.liferay.portal.SystemException,
177: com.liferay.portal.NoSuchUserGroupException;
178:
179: public java.util.List getUsers(long pk, int begin, int end,
180: com.liferay.portal.kernel.util.OrderByComparator obc)
181: throws com.liferay.portal.SystemException,
182: com.liferay.portal.NoSuchUserGroupException;
183:
184: public int getUsersSize(long pk)
185: throws com.liferay.portal.SystemException;
186:
187: public boolean containsUser(long pk, long userPK)
188: throws com.liferay.portal.SystemException;
189:
190: public boolean containsUsers(long pk)
191: throws com.liferay.portal.SystemException;
192:
193: public void addUser(long pk, long userPK)
194: throws com.liferay.portal.SystemException,
195: com.liferay.portal.NoSuchUserGroupException,
196: com.liferay.portal.NoSuchUserException;
197:
198: public void addUser(long pk, com.liferay.portal.model.User user)
199: throws com.liferay.portal.SystemException,
200: com.liferay.portal.NoSuchUserGroupException,
201: com.liferay.portal.NoSuchUserException;
202:
203: public void addUsers(long pk, long[] userPKs)
204: throws com.liferay.portal.SystemException,
205: com.liferay.portal.NoSuchUserGroupException,
206: com.liferay.portal.NoSuchUserException;
207:
208: public void addUsers(long pk, java.util.List users)
209: throws com.liferay.portal.SystemException,
210: com.liferay.portal.NoSuchUserGroupException,
211: com.liferay.portal.NoSuchUserException;
212:
213: public void clearUsers(long pk)
214: throws com.liferay.portal.SystemException,
215: com.liferay.portal.NoSuchUserGroupException;
216:
217: public void removeUser(long pk, long userPK)
218: throws com.liferay.portal.SystemException,
219: com.liferay.portal.NoSuchUserGroupException,
220: com.liferay.portal.NoSuchUserException;
221:
222: public void removeUser(long pk, com.liferay.portal.model.User user)
223: throws com.liferay.portal.SystemException,
224: com.liferay.portal.NoSuchUserGroupException,
225: com.liferay.portal.NoSuchUserException;
226:
227: public void removeUsers(long pk, long[] userPKs)
228: throws com.liferay.portal.SystemException,
229: com.liferay.portal.NoSuchUserGroupException,
230: com.liferay.portal.NoSuchUserException;
231:
232: public void removeUsers(long pk, java.util.List users)
233: throws com.liferay.portal.SystemException,
234: com.liferay.portal.NoSuchUserGroupException,
235: com.liferay.portal.NoSuchUserException;
236:
237: public void setUsers(long pk, long[] userPKs)
238: throws com.liferay.portal.SystemException,
239: com.liferay.portal.NoSuchUserGroupException,
240: com.liferay.portal.NoSuchUserException;
241:
242: public void setUsers(long pk, java.util.List users)
243: throws com.liferay.portal.SystemException,
244: com.liferay.portal.NoSuchUserGroupException,
245: com.liferay.portal.NoSuchUserException;
246: }
|