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="OrgGroupPermissionPersistence.java.html"><b><i>View Source</i></b></a>
025: *
026: * @author Brian Wing Shun Chan
027: *
028: */
029: public interface OrgGroupPermissionPersistence {
030: public com.liferay.portal.model.OrgGroupPermission create(
031: com.liferay.portal.service.persistence.OrgGroupPermissionPK orgGroupPermissionPK);
032:
033: public com.liferay.portal.model.OrgGroupPermission remove(
034: com.liferay.portal.service.persistence.OrgGroupPermissionPK orgGroupPermissionPK)
035: throws com.liferay.portal.SystemException,
036: com.liferay.portal.NoSuchOrgGroupPermissionException;
037:
038: public com.liferay.portal.model.OrgGroupPermission remove(
039: com.liferay.portal.model.OrgGroupPermission orgGroupPermission)
040: throws com.liferay.portal.SystemException;
041:
042: public com.liferay.portal.model.OrgGroupPermission update(
043: com.liferay.portal.model.OrgGroupPermission orgGroupPermission)
044: throws com.liferay.portal.SystemException;
045:
046: public com.liferay.portal.model.OrgGroupPermission update(
047: com.liferay.portal.model.OrgGroupPermission orgGroupPermission,
048: boolean merge) throws com.liferay.portal.SystemException;
049:
050: public com.liferay.portal.model.OrgGroupPermission updateImpl(
051: com.liferay.portal.model.OrgGroupPermission orgGroupPermission,
052: boolean merge) throws com.liferay.portal.SystemException;
053:
054: public com.liferay.portal.model.OrgGroupPermission findByPrimaryKey(
055: com.liferay.portal.service.persistence.OrgGroupPermissionPK orgGroupPermissionPK)
056: throws com.liferay.portal.SystemException,
057: com.liferay.portal.NoSuchOrgGroupPermissionException;
058:
059: public com.liferay.portal.model.OrgGroupPermission fetchByPrimaryKey(
060: com.liferay.portal.service.persistence.OrgGroupPermissionPK orgGroupPermissionPK)
061: throws com.liferay.portal.SystemException;
062:
063: public java.util.List findByGroupId(long groupId)
064: throws com.liferay.portal.SystemException;
065:
066: public java.util.List findByGroupId(long groupId, int begin, int end)
067: throws com.liferay.portal.SystemException;
068:
069: public java.util.List findByGroupId(long groupId, int begin,
070: int end,
071: com.liferay.portal.kernel.util.OrderByComparator obc)
072: throws com.liferay.portal.SystemException;
073:
074: public com.liferay.portal.model.OrgGroupPermission findByGroupId_First(
075: long groupId,
076: com.liferay.portal.kernel.util.OrderByComparator obc)
077: throws com.liferay.portal.SystemException,
078: com.liferay.portal.NoSuchOrgGroupPermissionException;
079:
080: public com.liferay.portal.model.OrgGroupPermission findByGroupId_Last(
081: long groupId,
082: com.liferay.portal.kernel.util.OrderByComparator obc)
083: throws com.liferay.portal.SystemException,
084: com.liferay.portal.NoSuchOrgGroupPermissionException;
085:
086: public com.liferay.portal.model.OrgGroupPermission[] findByGroupId_PrevAndNext(
087: com.liferay.portal.service.persistence.OrgGroupPermissionPK orgGroupPermissionPK,
088: long groupId,
089: com.liferay.portal.kernel.util.OrderByComparator obc)
090: throws com.liferay.portal.SystemException,
091: com.liferay.portal.NoSuchOrgGroupPermissionException;
092:
093: public java.util.List findByPermissionId(long permissionId)
094: throws com.liferay.portal.SystemException;
095:
096: public java.util.List findByPermissionId(long permissionId,
097: int begin, int end)
098: throws com.liferay.portal.SystemException;
099:
100: public java.util.List findByPermissionId(long permissionId,
101: int begin, int end,
102: com.liferay.portal.kernel.util.OrderByComparator obc)
103: throws com.liferay.portal.SystemException;
104:
105: public com.liferay.portal.model.OrgGroupPermission findByPermissionId_First(
106: long permissionId,
107: com.liferay.portal.kernel.util.OrderByComparator obc)
108: throws com.liferay.portal.SystemException,
109: com.liferay.portal.NoSuchOrgGroupPermissionException;
110:
111: public com.liferay.portal.model.OrgGroupPermission findByPermissionId_Last(
112: long permissionId,
113: com.liferay.portal.kernel.util.OrderByComparator obc)
114: throws com.liferay.portal.SystemException,
115: com.liferay.portal.NoSuchOrgGroupPermissionException;
116:
117: public com.liferay.portal.model.OrgGroupPermission[] findByPermissionId_PrevAndNext(
118: com.liferay.portal.service.persistence.OrgGroupPermissionPK orgGroupPermissionPK,
119: long permissionId,
120: com.liferay.portal.kernel.util.OrderByComparator obc)
121: throws com.liferay.portal.SystemException,
122: com.liferay.portal.NoSuchOrgGroupPermissionException;
123:
124: public java.util.List findWithDynamicQuery(
125: com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
126: throws com.liferay.portal.SystemException;
127:
128: public java.util.List findWithDynamicQuery(
129: com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
130: int begin, int end)
131: throws com.liferay.portal.SystemException;
132:
133: public java.util.List findAll()
134: throws com.liferay.portal.SystemException;
135:
136: public java.util.List findAll(int begin, int end)
137: throws com.liferay.portal.SystemException;
138:
139: public java.util.List findAll(int begin, int end,
140: com.liferay.portal.kernel.util.OrderByComparator obc)
141: throws com.liferay.portal.SystemException;
142:
143: public void removeByGroupId(long groupId)
144: throws com.liferay.portal.SystemException;
145:
146: public void removeByPermissionId(long permissionId)
147: throws com.liferay.portal.SystemException;
148:
149: public void removeAll() throws com.liferay.portal.SystemException;
150:
151: public int countByGroupId(long groupId)
152: throws com.liferay.portal.SystemException;
153:
154: public int countByPermissionId(long permissionId)
155: throws com.liferay.portal.SystemException;
156:
157: public int countAll() throws com.liferay.portal.SystemException;
158: }
|