001 /** 002 * Copyright (c) 2000-2013 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 /** 018 * <p> 019 * This class is a wrapper for {@link UserGroupService}. 020 * </p> 021 * 022 * @author Brian Wing Shun Chan 023 * @see UserGroupService 024 * @generated 025 */ 026 public class UserGroupServiceWrapper implements UserGroupService, 027 ServiceWrapper<UserGroupService> { 028 public UserGroupServiceWrapper(UserGroupService userGroupService) { 029 _userGroupService = userGroupService; 030 } 031 032 /** 033 * Returns the Spring bean ID for this bean. 034 * 035 * @return the Spring bean ID for this bean 036 */ 037 public java.lang.String getBeanIdentifier() { 038 return _userGroupService.getBeanIdentifier(); 039 } 040 041 /** 042 * Sets the Spring bean ID for this bean. 043 * 044 * @param beanIdentifier the Spring bean ID for this bean 045 */ 046 public void setBeanIdentifier(java.lang.String beanIdentifier) { 047 _userGroupService.setBeanIdentifier(beanIdentifier); 048 } 049 050 /** 051 * Adds the user groups to the group. 052 * 053 * @param groupId the primary key of the group 054 * @param userGroupIds the primary keys of the user groups 055 * @throws PortalException if a group or user group with the primary key 056 could not be found, or if the user did not have permission to 057 assign group members 058 * @throws SystemException if a system exception occurred 059 */ 060 public void addGroupUserGroups(long groupId, long[] userGroupIds) 061 throws com.liferay.portal.kernel.exception.PortalException, 062 com.liferay.portal.kernel.exception.SystemException { 063 _userGroupService.addGroupUserGroups(groupId, userGroupIds); 064 } 065 066 /** 067 * Adds the user groups to the team 068 * 069 * @param teamId the primary key of the team 070 * @param userGroupIds the primary keys of the user groups 071 * @throws PortalException if a team or user group with the primary key 072 could not be found, or if the user did not have permission to 073 assign team members 074 * @throws SystemException if a system exception occurred 075 */ 076 public void addTeamUserGroups(long teamId, long[] userGroupIds) 077 throws com.liferay.portal.kernel.exception.PortalException, 078 com.liferay.portal.kernel.exception.SystemException { 079 _userGroupService.addTeamUserGroups(teamId, userGroupIds); 080 } 081 082 /** 083 * Adds a user group. 084 * 085 * <p> 086 * This method handles the creation and bookkeeping of the user group, 087 * including its resources, metadata, and internal data structures. 088 * </p> 089 * 090 * @param name the user group's name 091 * @param description the user group's description 092 * @return the user group 093 * @throws PortalException if the user group's information was invalid or if 094 the user did not have permission to add the user group 095 * @throws SystemException if a system exception occurred 096 */ 097 public com.liferay.portal.model.UserGroup addUserGroup( 098 java.lang.String name, java.lang.String description) 099 throws com.liferay.portal.kernel.exception.PortalException, 100 com.liferay.portal.kernel.exception.SystemException { 101 return _userGroupService.addUserGroup(name, description); 102 } 103 104 /** 105 * Deletes the user group. 106 * 107 * @param userGroupId the primary key of the user group 108 * @throws PortalException if a user group with the primary key could not be 109 found, if the user did not have permission to delete the user 110 group, or if the user group had a workflow in approved status 111 * @throws SystemException if a system exception occurred 112 */ 113 public void deleteUserGroup(long userGroupId) 114 throws com.liferay.portal.kernel.exception.PortalException, 115 com.liferay.portal.kernel.exception.SystemException { 116 _userGroupService.deleteUserGroup(userGroupId); 117 } 118 119 /** 120 * Returns the user group with the primary key. 121 * 122 * @param userGroupId the primary key of the user group 123 * @return Returns the user group with the primary key 124 * @throws PortalException if a user group with the primary key could not be 125 found or if the user did not have permission to view the user 126 group 127 * @throws SystemException if a system exception occurred 128 */ 129 public com.liferay.portal.model.UserGroup getUserGroup(long userGroupId) 130 throws com.liferay.portal.kernel.exception.PortalException, 131 com.liferay.portal.kernel.exception.SystemException { 132 return _userGroupService.getUserGroup(userGroupId); 133 } 134 135 /** 136 * Returns the user group with the name. 137 * 138 * @param name the user group's name 139 * @return Returns the user group with the name 140 * @throws PortalException if a user group with the name could not be found 141 or if the user did not have permission to view the user group 142 * @throws SystemException if a system exception occurred 143 */ 144 public com.liferay.portal.model.UserGroup getUserGroup( 145 java.lang.String name) 146 throws com.liferay.portal.kernel.exception.PortalException, 147 com.liferay.portal.kernel.exception.SystemException { 148 return _userGroupService.getUserGroup(name); 149 } 150 151 /** 152 * Returns all the user groups to which the user belongs. 153 * 154 * @param userId the primary key of the user 155 * @return the user groups to which the user belongs 156 * @throws PortalException if the current user did not have permission to 157 view the user or any one of the user group members 158 * @throws SystemException if a system exception occurred 159 */ 160 public java.util.List<com.liferay.portal.model.UserGroup> getUserUserGroups( 161 long userId) 162 throws com.liferay.portal.kernel.exception.PortalException, 163 com.liferay.portal.kernel.exception.SystemException { 164 return _userGroupService.getUserUserGroups(userId); 165 } 166 167 /** 168 * Removes the user groups from the group. 169 * 170 * @param groupId the primary key of the group 171 * @param userGroupIds the primary keys of the user groups 172 * @throws PortalException if the user did not have permission to assign 173 group members 174 * @throws SystemException if a system exception occurred 175 */ 176 public void unsetGroupUserGroups(long groupId, long[] userGroupIds) 177 throws com.liferay.portal.kernel.exception.PortalException, 178 com.liferay.portal.kernel.exception.SystemException { 179 _userGroupService.unsetGroupUserGroups(groupId, userGroupIds); 180 } 181 182 /** 183 * Removes the user groups from the team. 184 * 185 * @param teamId the primary key of the team 186 * @param userGroupIds the primary keys of the user groups 187 * @throws PortalException if the user did not have permission to assign 188 team members 189 * @throws SystemException if a system exception occurred 190 */ 191 public void unsetTeamUserGroups(long teamId, long[] userGroupIds) 192 throws com.liferay.portal.kernel.exception.PortalException, 193 com.liferay.portal.kernel.exception.SystemException { 194 _userGroupService.unsetTeamUserGroups(teamId, userGroupIds); 195 } 196 197 /** 198 * Updates the user group. 199 * 200 * @param userGroupId the primary key of the user group 201 * @param name the user group's name 202 * @param description the the user group's description 203 * @return the user group 204 * @throws PortalException if a user group with the primary key was not 205 found, if the new information was invalid, or if the user did not 206 have permission to update the user group information 207 * @throws SystemException if a system exception occurred 208 */ 209 public com.liferay.portal.model.UserGroup updateUserGroup( 210 long userGroupId, java.lang.String name, java.lang.String description) 211 throws com.liferay.portal.kernel.exception.PortalException, 212 com.liferay.portal.kernel.exception.SystemException { 213 return _userGroupService.updateUserGroup(userGroupId, name, description); 214 } 215 216 /** 217 * @deprecated Renamed to {@link #getWrappedService} 218 */ 219 public UserGroupService getWrappedUserGroupService() { 220 return _userGroupService; 221 } 222 223 /** 224 * @deprecated Renamed to {@link #setWrappedService} 225 */ 226 public void setWrappedUserGroupService(UserGroupService userGroupService) { 227 _userGroupService = userGroupService; 228 } 229 230 public UserGroupService getWrappedService() { 231 return _userGroupService; 232 } 233 234 public void setWrappedService(UserGroupService userGroupService) { 235 _userGroupService = userGroupService; 236 } 237 238 private UserGroupService _userGroupService; 239 }