001    /**
002     * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portal.service;
016    
017    import com.liferay.portal.kernel.annotation.Isolation;
018    import com.liferay.portal.kernel.annotation.Propagation;
019    import com.liferay.portal.kernel.annotation.Transactional;
020    import com.liferay.portal.kernel.exception.PortalException;
021    import com.liferay.portal.kernel.exception.SystemException;
022    
023    /**
024     * <p>
025     * This interface defines the service. The default implementation is
026     * {@link
027     * com.liferay.portal.service.impl.UserGroupRoleLocalServiceImpl}.
028     * Modify methods in that class and rerun ServiceBuilder to populate this class
029     * and all other generated classes.
030     * </p>
031     *
032     * <p>
033     * This is a local service. Methods of this service will not have security checks based on the propagated JAAS credentials because this service can only be accessed from within the same VM.
034     * </p>
035     *
036     * @author    Brian Wing Shun Chan
037     * @see       UserGroupRoleLocalServiceUtil
038     * @generated
039     */
040    @Transactional(isolation = Isolation.PORTAL, rollbackFor =  {
041            PortalException.class, SystemException.class})
042    public interface UserGroupRoleLocalService {
043            public com.liferay.portal.model.UserGroupRole addUserGroupRole(
044                    com.liferay.portal.model.UserGroupRole userGroupRole)
045                    throws com.liferay.portal.kernel.exception.SystemException;
046    
047            public com.liferay.portal.model.UserGroupRole createUserGroupRole(
048                    com.liferay.portal.service.persistence.UserGroupRolePK userGroupRolePK);
049    
050            public void deleteUserGroupRole(
051                    com.liferay.portal.service.persistence.UserGroupRolePK userGroupRolePK)
052                    throws com.liferay.portal.kernel.exception.PortalException,
053                            com.liferay.portal.kernel.exception.SystemException;
054    
055            public void deleteUserGroupRole(
056                    com.liferay.portal.model.UserGroupRole userGroupRole)
057                    throws com.liferay.portal.kernel.exception.SystemException;
058    
059            @SuppressWarnings("unchecked")
060            public java.util.List dynamicQuery(
061                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
062                    throws com.liferay.portal.kernel.exception.SystemException;
063    
064            @SuppressWarnings("unchecked")
065            public java.util.List dynamicQuery(
066                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
067                    int end) throws com.liferay.portal.kernel.exception.SystemException;
068    
069            @SuppressWarnings("unchecked")
070            public java.util.List dynamicQuery(
071                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
072                    int end,
073                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
074                    throws com.liferay.portal.kernel.exception.SystemException;
075    
076            public long dynamicQueryCount(
077                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
078                    throws com.liferay.portal.kernel.exception.SystemException;
079    
080            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
081            public com.liferay.portal.model.UserGroupRole getUserGroupRole(
082                    com.liferay.portal.service.persistence.UserGroupRolePK userGroupRolePK)
083                    throws com.liferay.portal.kernel.exception.PortalException,
084                            com.liferay.portal.kernel.exception.SystemException;
085    
086            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
087            public java.util.List<com.liferay.portal.model.UserGroupRole> getUserGroupRoles(
088                    int start, int end)
089                    throws com.liferay.portal.kernel.exception.SystemException;
090    
091            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
092            public int getUserGroupRolesCount()
093                    throws com.liferay.portal.kernel.exception.SystemException;
094    
095            public com.liferay.portal.model.UserGroupRole updateUserGroupRole(
096                    com.liferay.portal.model.UserGroupRole userGroupRole)
097                    throws com.liferay.portal.kernel.exception.SystemException;
098    
099            public com.liferay.portal.model.UserGroupRole updateUserGroupRole(
100                    com.liferay.portal.model.UserGroupRole userGroupRole, boolean merge)
101                    throws com.liferay.portal.kernel.exception.SystemException;
102    
103            public void addUserGroupRoles(long userId, long groupId, long[] roleIds)
104                    throws com.liferay.portal.kernel.exception.PortalException,
105                            com.liferay.portal.kernel.exception.SystemException;
106    
107            public void addUserGroupRoles(long[] userIds, long groupId, long roleId)
108                    throws com.liferay.portal.kernel.exception.PortalException,
109                            com.liferay.portal.kernel.exception.SystemException;
110    
111            public void deleteUserGroupRoles(long userId, long groupId, long[] roleIds)
112                    throws com.liferay.portal.kernel.exception.SystemException;
113    
114            public void deleteUserGroupRoles(long userId, long[] groupIds)
115                    throws com.liferay.portal.kernel.exception.SystemException;
116    
117            public void deleteUserGroupRoles(long[] userIds, long groupId)
118                    throws com.liferay.portal.kernel.exception.SystemException;
119    
120            public void deleteUserGroupRoles(long[] userIds, long groupId, long roleId)
121                    throws com.liferay.portal.kernel.exception.SystemException;
122    
123            public void deleteUserGroupRolesByGroupId(long groupId)
124                    throws com.liferay.portal.kernel.exception.SystemException;
125    
126            public void deleteUserGroupRolesByRoleId(long roleId)
127                    throws com.liferay.portal.kernel.exception.SystemException;
128    
129            public void deleteUserGroupRolesByUserId(long userId)
130                    throws com.liferay.portal.kernel.exception.SystemException;
131    
132            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
133            public java.util.List<com.liferay.portal.model.UserGroupRole> getUserGroupRoles(
134                    long userId) throws com.liferay.portal.kernel.exception.SystemException;
135    
136            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
137            public java.util.List<com.liferay.portal.model.UserGroupRole> getUserGroupRoles(
138                    long userId, long groupId)
139                    throws com.liferay.portal.kernel.exception.SystemException;
140    
141            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
142            public java.util.List<com.liferay.portal.model.UserGroupRole> getUserGroupRolesByGroupAndRole(
143                    long groupId, long roleId)
144                    throws com.liferay.portal.kernel.exception.SystemException;
145    
146            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
147            public java.util.List<com.liferay.portal.model.UserGroupRole> getUserGroupRolesByUserUserGroupAndGroup(
148                    long userId, long groupId)
149                    throws com.liferay.portal.kernel.exception.SystemException;
150    
151            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
152            public boolean hasUserGroupRole(long userId, long groupId, long roleId)
153                    throws com.liferay.portal.kernel.exception.SystemException;
154    
155            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
156            public boolean hasUserGroupRole(long userId, long groupId, long roleId,
157                    boolean inherit)
158                    throws com.liferay.portal.kernel.exception.SystemException;
159    
160            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
161            public boolean hasUserGroupRole(long userId, long groupId,
162                    java.lang.String roleName)
163                    throws com.liferay.portal.kernel.exception.PortalException,
164                            com.liferay.portal.kernel.exception.SystemException;
165    
166            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
167            public boolean hasUserGroupRole(long userId, long groupId,
168                    java.lang.String roleName, boolean inherit)
169                    throws com.liferay.portal.kernel.exception.PortalException,
170                            com.liferay.portal.kernel.exception.SystemException;
171    }