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.bean.PortalBeanLocatorUtil;
018    
019    /**
020     * <p>
021     * This class provides static methods for the
022     * {@link UserGroupGroupRoleLocalService} bean. The static methods of
023     * this class calls the same methods of the bean instance. It's convenient to be
024     * able to just write one line to call a method on a bean instead of writing a
025     * lookup call and a method call.
026     * </p>
027     *
028     * @author    Brian Wing Shun Chan
029     * @see       UserGroupGroupRoleLocalService
030     * @generated
031     */
032    public class UserGroupGroupRoleLocalServiceUtil {
033            public static com.liferay.portal.model.UserGroupGroupRole addUserGroupGroupRole(
034                    com.liferay.portal.model.UserGroupGroupRole userGroupGroupRole)
035                    throws com.liferay.portal.kernel.exception.SystemException {
036                    return getService().addUserGroupGroupRole(userGroupGroupRole);
037            }
038    
039            public static com.liferay.portal.model.UserGroupGroupRole createUserGroupGroupRole(
040                    com.liferay.portal.service.persistence.UserGroupGroupRolePK userGroupGroupRolePK) {
041                    return getService().createUserGroupGroupRole(userGroupGroupRolePK);
042            }
043    
044            public static void deleteUserGroupGroupRole(
045                    com.liferay.portal.service.persistence.UserGroupGroupRolePK userGroupGroupRolePK)
046                    throws com.liferay.portal.kernel.exception.PortalException,
047                            com.liferay.portal.kernel.exception.SystemException {
048                    getService().deleteUserGroupGroupRole(userGroupGroupRolePK);
049            }
050    
051            public static void deleteUserGroupGroupRole(
052                    com.liferay.portal.model.UserGroupGroupRole userGroupGroupRole)
053                    throws com.liferay.portal.kernel.exception.SystemException {
054                    getService().deleteUserGroupGroupRole(userGroupGroupRole);
055            }
056    
057            @SuppressWarnings("unchecked")
058            public static java.util.List dynamicQuery(
059                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
060                    throws com.liferay.portal.kernel.exception.SystemException {
061                    return getService().dynamicQuery(dynamicQuery);
062            }
063    
064            @SuppressWarnings("unchecked")
065            public static 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                    return getService().dynamicQuery(dynamicQuery, start, end);
069            }
070    
071            @SuppressWarnings("unchecked")
072            public static java.util.List dynamicQuery(
073                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
074                    int end,
075                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
076                    throws com.liferay.portal.kernel.exception.SystemException {
077                    return getService()
078                                       .dynamicQuery(dynamicQuery, start, end, orderByComparator);
079            }
080    
081            public static long dynamicQueryCount(
082                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
083                    throws com.liferay.portal.kernel.exception.SystemException {
084                    return getService().dynamicQueryCount(dynamicQuery);
085            }
086    
087            public static com.liferay.portal.model.UserGroupGroupRole getUserGroupGroupRole(
088                    com.liferay.portal.service.persistence.UserGroupGroupRolePK userGroupGroupRolePK)
089                    throws com.liferay.portal.kernel.exception.PortalException,
090                            com.liferay.portal.kernel.exception.SystemException {
091                    return getService().getUserGroupGroupRole(userGroupGroupRolePK);
092            }
093    
094            public static java.util.List<com.liferay.portal.model.UserGroupGroupRole> getUserGroupGroupRoles(
095                    int start, int end)
096                    throws com.liferay.portal.kernel.exception.SystemException {
097                    return getService().getUserGroupGroupRoles(start, end);
098            }
099    
100            public static int getUserGroupGroupRolesCount()
101                    throws com.liferay.portal.kernel.exception.SystemException {
102                    return getService().getUserGroupGroupRolesCount();
103            }
104    
105            public static com.liferay.portal.model.UserGroupGroupRole updateUserGroupGroupRole(
106                    com.liferay.portal.model.UserGroupGroupRole userGroupGroupRole)
107                    throws com.liferay.portal.kernel.exception.SystemException {
108                    return getService().updateUserGroupGroupRole(userGroupGroupRole);
109            }
110    
111            public static com.liferay.portal.model.UserGroupGroupRole updateUserGroupGroupRole(
112                    com.liferay.portal.model.UserGroupGroupRole userGroupGroupRole,
113                    boolean merge)
114                    throws com.liferay.portal.kernel.exception.SystemException {
115                    return getService().updateUserGroupGroupRole(userGroupGroupRole, merge);
116            }
117    
118            public static void addUserGroupGroupRoles(long userGroupId, long groupId,
119                    long[] roleIds)
120                    throws com.liferay.portal.kernel.exception.PortalException,
121                            com.liferay.portal.kernel.exception.SystemException {
122                    getService().addUserGroupGroupRoles(userGroupId, groupId, roleIds);
123            }
124    
125            public static void addUserGroupGroupRoles(long[] userGroupIds,
126                    long groupId, long roleId)
127                    throws com.liferay.portal.kernel.exception.PortalException,
128                            com.liferay.portal.kernel.exception.SystemException {
129                    getService().addUserGroupGroupRoles(userGroupIds, groupId, roleId);
130            }
131    
132            public static void deleteUserGroupGroupRoles(long userGroupId,
133                    long groupId, long[] roleIds)
134                    throws com.liferay.portal.kernel.exception.SystemException {
135                    getService().deleteUserGroupGroupRoles(userGroupId, groupId, roleIds);
136            }
137    
138            public static void deleteUserGroupGroupRoles(long userGroupId,
139                    long[] groupIds)
140                    throws com.liferay.portal.kernel.exception.SystemException {
141                    getService().deleteUserGroupGroupRoles(userGroupId, groupIds);
142            }
143    
144            public static void deleteUserGroupGroupRoles(long[] userGroupIds,
145                    long groupId)
146                    throws com.liferay.portal.kernel.exception.SystemException {
147                    getService().deleteUserGroupGroupRoles(userGroupIds, groupId);
148            }
149    
150            public static void deleteUserGroupGroupRoles(long[] userGroupIds,
151                    long groupId, long roleId)
152                    throws com.liferay.portal.kernel.exception.SystemException {
153                    getService().deleteUserGroupGroupRoles(userGroupIds, groupId, roleId);
154            }
155    
156            public static void deleteUserGroupGroupRolesByGroupId(long groupId)
157                    throws com.liferay.portal.kernel.exception.SystemException {
158                    getService().deleteUserGroupGroupRolesByGroupId(groupId);
159            }
160    
161            public static void deleteUserGroupGroupRolesByRoleId(long roleId)
162                    throws com.liferay.portal.kernel.exception.SystemException {
163                    getService().deleteUserGroupGroupRolesByRoleId(roleId);
164            }
165    
166            public static void deleteUserGroupGroupRolesByUserGroupId(long userGroupId)
167                    throws com.liferay.portal.kernel.exception.SystemException {
168                    getService().deleteUserGroupGroupRolesByUserGroupId(userGroupId);
169            }
170    
171            public static java.util.List<com.liferay.portal.model.UserGroupGroupRole> getUserGroupGroupRoles(
172                    long userGroupId)
173                    throws com.liferay.portal.kernel.exception.SystemException {
174                    return getService().getUserGroupGroupRoles(userGroupId);
175            }
176    
177            public static java.util.List<com.liferay.portal.model.UserGroupGroupRole> getUserGroupGroupRoles(
178                    long userGroupId, long groupId)
179                    throws com.liferay.portal.kernel.exception.SystemException {
180                    return getService().getUserGroupGroupRoles(userGroupId, groupId);
181            }
182    
183            public static java.util.List<com.liferay.portal.model.UserGroupGroupRole> getUserGroupGroupRolesByGroupAndRole(
184                    long groupId, long roleId)
185                    throws com.liferay.portal.kernel.exception.SystemException {
186                    return getService().getUserGroupGroupRolesByGroupAndRole(groupId, roleId);
187            }
188    
189            public static boolean hasUserGroupGroupRole(long userGroupId, long groupId,
190                    long roleId) throws com.liferay.portal.kernel.exception.SystemException {
191                    return getService().hasUserGroupGroupRole(userGroupId, groupId, roleId);
192            }
193    
194            public static boolean hasUserGroupGroupRole(long userGroupId, long groupId,
195                    java.lang.String roleName)
196                    throws com.liferay.portal.kernel.exception.PortalException,
197                            com.liferay.portal.kernel.exception.SystemException {
198                    return getService().hasUserGroupGroupRole(userGroupId, groupId, roleName);
199            }
200    
201            public static UserGroupGroupRoleLocalService getService() {
202                    if (_service == null) {
203                            _service = (UserGroupGroupRoleLocalService)PortalBeanLocatorUtil.locate(UserGroupGroupRoleLocalService.class.getName());
204                    }
205    
206                    return _service;
207            }
208    
209            public void setService(UserGroupGroupRoleLocalService service) {
210                    _service = service;
211            }
212    
213            private static UserGroupGroupRoleLocalService _service;
214    }