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="LayoutPersistence.java.html"><b><i>View Source</i></b></a>
025: *
026: * @author Brian Wing Shun Chan
027: *
028: */
029: public interface LayoutPersistence {
030: public com.liferay.portal.model.Layout create(long plid);
031:
032: public com.liferay.portal.model.Layout remove(long plid)
033: throws com.liferay.portal.SystemException,
034: com.liferay.portal.NoSuchLayoutException;
035:
036: public com.liferay.portal.model.Layout remove(
037: com.liferay.portal.model.Layout layout)
038: throws com.liferay.portal.SystemException;
039:
040: public com.liferay.portal.model.Layout update(
041: com.liferay.portal.model.Layout layout)
042: throws com.liferay.portal.SystemException;
043:
044: public com.liferay.portal.model.Layout update(
045: com.liferay.portal.model.Layout layout, boolean merge)
046: throws com.liferay.portal.SystemException;
047:
048: public com.liferay.portal.model.Layout updateImpl(
049: com.liferay.portal.model.Layout layout, boolean merge)
050: throws com.liferay.portal.SystemException;
051:
052: public com.liferay.portal.model.Layout findByPrimaryKey(long plid)
053: throws com.liferay.portal.SystemException,
054: com.liferay.portal.NoSuchLayoutException;
055:
056: public com.liferay.portal.model.Layout fetchByPrimaryKey(long plid)
057: throws com.liferay.portal.SystemException;
058:
059: public java.util.List findByGroupId(long groupId)
060: throws com.liferay.portal.SystemException;
061:
062: public java.util.List findByGroupId(long groupId, int begin, int end)
063: throws com.liferay.portal.SystemException;
064:
065: public java.util.List findByGroupId(long groupId, int begin,
066: int end,
067: com.liferay.portal.kernel.util.OrderByComparator obc)
068: throws com.liferay.portal.SystemException;
069:
070: public com.liferay.portal.model.Layout findByGroupId_First(
071: long groupId,
072: com.liferay.portal.kernel.util.OrderByComparator obc)
073: throws com.liferay.portal.SystemException,
074: com.liferay.portal.NoSuchLayoutException;
075:
076: public com.liferay.portal.model.Layout findByGroupId_Last(
077: long groupId,
078: com.liferay.portal.kernel.util.OrderByComparator obc)
079: throws com.liferay.portal.SystemException,
080: com.liferay.portal.NoSuchLayoutException;
081:
082: public com.liferay.portal.model.Layout[] findByGroupId_PrevAndNext(
083: long plid, long groupId,
084: com.liferay.portal.kernel.util.OrderByComparator obc)
085: throws com.liferay.portal.SystemException,
086: com.liferay.portal.NoSuchLayoutException;
087:
088: public java.util.List findByCompanyId(long companyId)
089: throws com.liferay.portal.SystemException;
090:
091: public java.util.List findByCompanyId(long companyId, int begin,
092: int end) throws com.liferay.portal.SystemException;
093:
094: public java.util.List findByCompanyId(long companyId, int begin,
095: int end,
096: com.liferay.portal.kernel.util.OrderByComparator obc)
097: throws com.liferay.portal.SystemException;
098:
099: public com.liferay.portal.model.Layout findByCompanyId_First(
100: long companyId,
101: com.liferay.portal.kernel.util.OrderByComparator obc)
102: throws com.liferay.portal.SystemException,
103: com.liferay.portal.NoSuchLayoutException;
104:
105: public com.liferay.portal.model.Layout findByCompanyId_Last(
106: long companyId,
107: com.liferay.portal.kernel.util.OrderByComparator obc)
108: throws com.liferay.portal.SystemException,
109: com.liferay.portal.NoSuchLayoutException;
110:
111: public com.liferay.portal.model.Layout[] findByCompanyId_PrevAndNext(
112: long plid, long companyId,
113: com.liferay.portal.kernel.util.OrderByComparator obc)
114: throws com.liferay.portal.SystemException,
115: com.liferay.portal.NoSuchLayoutException;
116:
117: public com.liferay.portal.model.Layout findByDLFolderId(
118: long dlFolderId) throws com.liferay.portal.SystemException,
119: com.liferay.portal.NoSuchLayoutException;
120:
121: public com.liferay.portal.model.Layout fetchByDLFolderId(
122: long dlFolderId) throws com.liferay.portal.SystemException;
123:
124: public com.liferay.portal.model.Layout findByIconImageId(
125: long iconImageId)
126: throws com.liferay.portal.SystemException,
127: com.liferay.portal.NoSuchLayoutException;
128:
129: public com.liferay.portal.model.Layout fetchByIconImageId(
130: long iconImageId) throws com.liferay.portal.SystemException;
131:
132: public java.util.List findByG_P(long groupId, boolean privateLayout)
133: throws com.liferay.portal.SystemException;
134:
135: public java.util.List findByG_P(long groupId,
136: boolean privateLayout, int begin, int end)
137: throws com.liferay.portal.SystemException;
138:
139: public java.util.List findByG_P(long groupId,
140: boolean privateLayout, int begin, int end,
141: com.liferay.portal.kernel.util.OrderByComparator obc)
142: throws com.liferay.portal.SystemException;
143:
144: public com.liferay.portal.model.Layout findByG_P_First(
145: long groupId, boolean privateLayout,
146: com.liferay.portal.kernel.util.OrderByComparator obc)
147: throws com.liferay.portal.SystemException,
148: com.liferay.portal.NoSuchLayoutException;
149:
150: public com.liferay.portal.model.Layout findByG_P_Last(long groupId,
151: boolean privateLayout,
152: com.liferay.portal.kernel.util.OrderByComparator obc)
153: throws com.liferay.portal.SystemException,
154: com.liferay.portal.NoSuchLayoutException;
155:
156: public com.liferay.portal.model.Layout[] findByG_P_PrevAndNext(
157: long plid, long groupId, boolean privateLayout,
158: com.liferay.portal.kernel.util.OrderByComparator obc)
159: throws com.liferay.portal.SystemException,
160: com.liferay.portal.NoSuchLayoutException;
161:
162: public com.liferay.portal.model.Layout findByG_P_L(long groupId,
163: boolean privateLayout, long layoutId)
164: throws com.liferay.portal.SystemException,
165: com.liferay.portal.NoSuchLayoutException;
166:
167: public com.liferay.portal.model.Layout fetchByG_P_L(long groupId,
168: boolean privateLayout, long layoutId)
169: throws com.liferay.portal.SystemException;
170:
171: public java.util.List findByG_P_P(long groupId,
172: boolean privateLayout, long parentLayoutId)
173: throws com.liferay.portal.SystemException;
174:
175: public java.util.List findByG_P_P(long groupId,
176: boolean privateLayout, long parentLayoutId, int begin,
177: int end) throws com.liferay.portal.SystemException;
178:
179: public java.util.List findByG_P_P(long groupId,
180: boolean privateLayout, long parentLayoutId, int begin,
181: int end,
182: com.liferay.portal.kernel.util.OrderByComparator obc)
183: throws com.liferay.portal.SystemException;
184:
185: public com.liferay.portal.model.Layout findByG_P_P_First(
186: long groupId, boolean privateLayout, long parentLayoutId,
187: com.liferay.portal.kernel.util.OrderByComparator obc)
188: throws com.liferay.portal.SystemException,
189: com.liferay.portal.NoSuchLayoutException;
190:
191: public com.liferay.portal.model.Layout findByG_P_P_Last(
192: long groupId, boolean privateLayout, long parentLayoutId,
193: com.liferay.portal.kernel.util.OrderByComparator obc)
194: throws com.liferay.portal.SystemException,
195: com.liferay.portal.NoSuchLayoutException;
196:
197: public com.liferay.portal.model.Layout[] findByG_P_P_PrevAndNext(
198: long plid, long groupId, boolean privateLayout,
199: long parentLayoutId,
200: com.liferay.portal.kernel.util.OrderByComparator obc)
201: throws com.liferay.portal.SystemException,
202: com.liferay.portal.NoSuchLayoutException;
203:
204: public com.liferay.portal.model.Layout findByG_P_F(long groupId,
205: boolean privateLayout, java.lang.String friendlyURL)
206: throws com.liferay.portal.SystemException,
207: com.liferay.portal.NoSuchLayoutException;
208:
209: public com.liferay.portal.model.Layout fetchByG_P_F(long groupId,
210: boolean privateLayout, java.lang.String friendlyURL)
211: throws com.liferay.portal.SystemException;
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 removeByGroupId(long groupId)
233: throws com.liferay.portal.SystemException;
234:
235: public void removeByCompanyId(long companyId)
236: throws com.liferay.portal.SystemException;
237:
238: public void removeByDLFolderId(long dlFolderId)
239: throws com.liferay.portal.SystemException,
240: com.liferay.portal.NoSuchLayoutException;
241:
242: public void removeByIconImageId(long iconImageId)
243: throws com.liferay.portal.SystemException,
244: com.liferay.portal.NoSuchLayoutException;
245:
246: public void removeByG_P(long groupId, boolean privateLayout)
247: throws com.liferay.portal.SystemException;
248:
249: public void removeByG_P_L(long groupId, boolean privateLayout,
250: long layoutId) throws com.liferay.portal.SystemException,
251: com.liferay.portal.NoSuchLayoutException;
252:
253: public void removeByG_P_P(long groupId, boolean privateLayout,
254: long parentLayoutId)
255: throws com.liferay.portal.SystemException;
256:
257: public void removeByG_P_F(long groupId, boolean privateLayout,
258: java.lang.String friendlyURL)
259: throws com.liferay.portal.SystemException,
260: com.liferay.portal.NoSuchLayoutException;
261:
262: public void removeAll() throws com.liferay.portal.SystemException;
263:
264: public int countByGroupId(long groupId)
265: throws com.liferay.portal.SystemException;
266:
267: public int countByCompanyId(long companyId)
268: throws com.liferay.portal.SystemException;
269:
270: public int countByDLFolderId(long dlFolderId)
271: throws com.liferay.portal.SystemException;
272:
273: public int countByIconImageId(long iconImageId)
274: throws com.liferay.portal.SystemException;
275:
276: public int countByG_P(long groupId, boolean privateLayout)
277: throws com.liferay.portal.SystemException;
278:
279: public int countByG_P_L(long groupId, boolean privateLayout,
280: long layoutId) throws com.liferay.portal.SystemException;
281:
282: public int countByG_P_P(long groupId, boolean privateLayout,
283: long parentLayoutId)
284: throws com.liferay.portal.SystemException;
285:
286: public int countByG_P_F(long groupId, boolean privateLayout,
287: java.lang.String friendlyURL)
288: throws com.liferay.portal.SystemException;
289:
290: public int countAll() throws com.liferay.portal.SystemException;
291: }
|