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.UserGroupGroupRoleLocalServiceImpl}.
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       UserGroupGroupRoleLocalServiceUtil
038     * @generated
039     */
040    @Transactional(isolation = Isolation.PORTAL, rollbackFor =  {
041            PortalException.class, SystemException.class})
042    public interface UserGroupGroupRoleLocalService {
043            public com.liferay.portal.model.UserGroupGroupRole addUserGroupGroupRole(
044                    com.liferay.portal.model.UserGroupGroupRole userGroupGroupRole)
045                    throws com.liferay.portal.kernel.exception.SystemException;
046    
047            public com.liferay.portal.model.UserGroupGroupRole createUserGroupGroupRole(
048                    com.liferay.portal.service.persistence.UserGroupGroupRolePK userGroupGroupRolePK);
049    
050            public void deleteUserGroupGroupRole(
051                    com.liferay.portal.service.persistence.UserGroupGroupRolePK userGroupGroupRolePK)
052                    throws com.liferay.portal.kernel.exception.PortalException,
053                            com.liferay.portal.kernel.exception.SystemException;
054    
055            public void deleteUserGroupGroupRole(
056                    com.liferay.portal.model.UserGroupGroupRole userGroupGroupRole)
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.UserGroupGroupRole getUserGroupGroupRole(
082                    com.liferay.portal.service.persistence.UserGroupGroupRolePK userGroupGroupRolePK)
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.UserGroupGroupRole> getUserGroupGroupRoles(
088                    int start, int end)
089                    throws com.liferay.portal.kernel.exception.SystemException;
090    
091            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
092            public int getUserGroupGroupRolesCount()
093                    throws com.liferay.portal.kernel.exception.SystemException;
094    
095            public com.liferay.portal.model.UserGroupGroupRole updateUserGroupGroupRole(
096                    com.liferay.portal.model.UserGroupGroupRole userGroupGroupRole)
097                    throws com.liferay.portal.kernel.exception.SystemException;
098    
099            public com.liferay.portal.model.UserGroupGroupRole updateUserGroupGroupRole(
100                    com.liferay.portal.model.UserGroupGroupRole userGroupGroupRole,
101                    boolean merge)
102                    throws com.liferay.portal.kernel.exception.SystemException;
103    
104            public void addUserGroupGroupRoles(long userGroupId, long groupId,
105                    long[] roleIds)
106                    throws com.liferay.portal.kernel.exception.PortalException,
107                            com.liferay.portal.kernel.exception.SystemException;
108    
109            public void addUserGroupGroupRoles(long[] userGroupIds, long groupId,
110                    long roleId)
111                    throws com.liferay.portal.kernel.exception.PortalException,
112                            com.liferay.portal.kernel.exception.SystemException;
113    
114            public void deleteUserGroupGroupRoles(long userGroupId, long groupId,
115                    long[] roleIds)
116                    throws com.liferay.portal.kernel.exception.SystemException;
117    
118            public void deleteUserGroupGroupRoles(long userGroupId, long[] groupIds)
119                    throws com.liferay.portal.kernel.exception.SystemException;
120    
121            public void deleteUserGroupGroupRoles(long[] userGroupIds, long groupId)
122                    throws com.liferay.portal.kernel.exception.SystemException;
123    
124            public void deleteUserGroupGroupRoles(long[] userGroupIds, long groupId,
125                    long roleId) throws com.liferay.portal.kernel.exception.SystemException;
126    
127            public void deleteUserGroupGroupRolesByGroupId(long groupId)
128                    throws com.liferay.portal.kernel.exception.SystemException;
129    
130            public void deleteUserGroupGroupRolesByRoleId(long roleId)
131                    throws com.liferay.portal.kernel.exception.SystemException;
132    
133            public void deleteUserGroupGroupRolesByUserGroupId(long userGroupId)
134                    throws com.liferay.portal.kernel.exception.SystemException;
135    
136            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
137            public java.util.List<com.liferay.portal.model.UserGroupGroupRole> getUserGroupGroupRoles(
138                    long userGroupId)
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.UserGroupGroupRole> getUserGroupGroupRoles(
143                    long userGroupId, long groupId)
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.UserGroupGroupRole> getUserGroupGroupRolesByGroupAndRole(
148                    long groupId, long roleId)
149                    throws com.liferay.portal.kernel.exception.SystemException;
150    
151            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
152            public boolean hasUserGroupGroupRole(long userGroupId, long groupId,
153                    long roleId) throws com.liferay.portal.kernel.exception.SystemException;
154    
155            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
156            public boolean hasUserGroupGroupRole(long userGroupId, long groupId,
157                    java.lang.String roleName)
158                    throws com.liferay.portal.kernel.exception.PortalException,
159                            com.liferay.portal.kernel.exception.SystemException;
160    }