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 094 or if the user did not have permission to add the user group 095 * @throws SystemException if a system exception occurred 096 * @deprecated As of 6.2.0, replaced by {@link #addUserGroup(String, String, 097 serviceContext)} 098 */ 099 public com.liferay.portal.model.UserGroup addUserGroup( 100 java.lang.String name, java.lang.String description) 101 throws com.liferay.portal.kernel.exception.PortalException, 102 com.liferay.portal.kernel.exception.SystemException { 103 return _userGroupService.addUserGroup(name, description); 104 } 105 106 /** 107 * Adds a user group. 108 * 109 * <p> 110 * This method handles the creation and bookkeeping of the user group, 111 * including its resources, metadata, and internal data structures. 112 * </p> 113 * 114 * @param name the user group's name 115 * @param description the user group's description 116 * @param serviceContext the service context to be applied (optionally 117 <code>null</code>). Can set expando bridge attributes for the 118 user group. 119 * @return the user group 120 * @throws PortalException if the user group's information was invalid or if 121 the user did not have permission to add the user group 122 * @throws SystemException if a system exception occurred 123 */ 124 public com.liferay.portal.model.UserGroup addUserGroup( 125 java.lang.String name, java.lang.String description, 126 com.liferay.portal.service.ServiceContext serviceContext) 127 throws com.liferay.portal.kernel.exception.PortalException, 128 com.liferay.portal.kernel.exception.SystemException { 129 return _userGroupService.addUserGroup(name, description, serviceContext); 130 } 131 132 /** 133 * Deletes the user group. 134 * 135 * @param userGroupId the primary key of the user group 136 * @throws PortalException if a user group with the primary key could not be 137 found, if the user did not have permission to delete the user 138 group, or if the user group had a workflow in approved status 139 * @throws SystemException if a system exception occurred 140 */ 141 public void deleteUserGroup(long userGroupId) 142 throws com.liferay.portal.kernel.exception.PortalException, 143 com.liferay.portal.kernel.exception.SystemException { 144 _userGroupService.deleteUserGroup(userGroupId); 145 } 146 147 /** 148 * Returns the user group with the primary key. 149 * 150 * @param userGroupId the primary key of the user group 151 * @return Returns the user group with the primary key 152 * @throws PortalException if a user group with the primary key could not be 153 found or if the user did not have permission to view the user 154 group 155 * @throws SystemException if a system exception occurred 156 */ 157 public com.liferay.portal.model.UserGroup getUserGroup(long userGroupId) 158 throws com.liferay.portal.kernel.exception.PortalException, 159 com.liferay.portal.kernel.exception.SystemException { 160 return _userGroupService.getUserGroup(userGroupId); 161 } 162 163 /** 164 * Returns the user group with the name. 165 * 166 * @param name the user group's name 167 * @return Returns the user group with the name 168 * @throws PortalException if a user group with the name could not be found 169 or if the user did not have permission to view the user group 170 * @throws SystemException if a system exception occurred 171 */ 172 public com.liferay.portal.model.UserGroup getUserGroup( 173 java.lang.String name) 174 throws com.liferay.portal.kernel.exception.PortalException, 175 com.liferay.portal.kernel.exception.SystemException { 176 return _userGroupService.getUserGroup(name); 177 } 178 179 /** 180 * Returns all the user groups to which the user belongs. 181 * 182 * @param userId the primary key of the user 183 * @return the user groups to which the user belongs 184 * @throws PortalException if the current user did not have permission to 185 view the user or any one of the user group members 186 * @throws SystemException if a system exception occurred 187 */ 188 public java.util.List<com.liferay.portal.model.UserGroup> getUserUserGroups( 189 long userId) 190 throws com.liferay.portal.kernel.exception.PortalException, 191 com.liferay.portal.kernel.exception.SystemException { 192 return _userGroupService.getUserUserGroups(userId); 193 } 194 195 /** 196 * Removes the user groups from the group. 197 * 198 * @param groupId the primary key of the group 199 * @param userGroupIds the primary keys of the user groups 200 * @throws PortalException if the user did not have permission to assign 201 group members 202 * @throws SystemException if a system exception occurred 203 */ 204 public void unsetGroupUserGroups(long groupId, long[] userGroupIds) 205 throws com.liferay.portal.kernel.exception.PortalException, 206 com.liferay.portal.kernel.exception.SystemException { 207 _userGroupService.unsetGroupUserGroups(groupId, userGroupIds); 208 } 209 210 /** 211 * Removes the user groups from the team. 212 * 213 * @param teamId the primary key of the team 214 * @param userGroupIds the primary keys of the user groups 215 * @throws PortalException if the user did not have permission to assign 216 team members 217 * @throws SystemException if a system exception occurred 218 */ 219 public void unsetTeamUserGroups(long teamId, long[] userGroupIds) 220 throws com.liferay.portal.kernel.exception.PortalException, 221 com.liferay.portal.kernel.exception.SystemException { 222 _userGroupService.unsetTeamUserGroups(teamId, userGroupIds); 223 } 224 225 /** 226 * Updates the user group. 227 * 228 * @param userGroupId the primary key of the user group 229 * @param name the user group's name 230 * @param description the the user group's description 231 * @return the user group 232 * @throws PortalException if a user group with the primary key was not 233 found, if the new information was invalid, or if the user did 234 not have permission to update the user group information 235 * @throws SystemException if a system exception occurred 236 * @deprecated As of 6.2.0, replaced by {@link #updateUserGroup(long, 237 String, String, serviceContext)} 238 */ 239 public com.liferay.portal.model.UserGroup updateUserGroup( 240 long userGroupId, java.lang.String name, java.lang.String description) 241 throws com.liferay.portal.kernel.exception.PortalException, 242 com.liferay.portal.kernel.exception.SystemException { 243 return _userGroupService.updateUserGroup(userGroupId, name, description); 244 } 245 246 /** 247 * Updates the user group. 248 * 249 * @param userGroupId the primary key of the user group 250 * @param name the user group's name 251 * @param description the the user group's description 252 * @param serviceContext the service context to be applied (optionally 253 <code>null</code>). Can set expando bridge attributes for the 254 user group. 255 * @return the user group 256 * @throws PortalException if a user group with the primary key was not 257 found, if the new information was invalid, or if the user did not 258 have permission to update the user group information 259 * @throws SystemException if a system exception occurred 260 */ 261 public com.liferay.portal.model.UserGroup updateUserGroup( 262 long userGroupId, java.lang.String name, java.lang.String description, 263 com.liferay.portal.service.ServiceContext serviceContext) 264 throws com.liferay.portal.kernel.exception.PortalException, 265 com.liferay.portal.kernel.exception.SystemException { 266 return _userGroupService.updateUserGroup(userGroupId, name, 267 description, serviceContext); 268 } 269 270 /** 271 * @deprecated As of 6.1.0, replaced by {@link #getWrappedService} 272 */ 273 public UserGroupService getWrappedUserGroupService() { 274 return _userGroupService; 275 } 276 277 /** 278 * @deprecated As of 6.1.0, replaced by {@link #setWrappedService} 279 */ 280 public void setWrappedUserGroupService(UserGroupService userGroupService) { 281 _userGroupService = userGroupService; 282 } 283 284 public UserGroupService getWrappedService() { 285 return _userGroupService; 286 } 287 288 public void setWrappedService(UserGroupService userGroupService) { 289 _userGroupService = userGroupService; 290 } 291 292 private UserGroupService _userGroupService; 293 }