001 /** 002 * Copyright (c) 2000-2012 Liferay, Inc. All rights reserved. 003 * 004 * The contents of this file are subject to the terms of the Liferay Enterprise 005 * Subscription License ("License"). You may not use this file except in 006 * compliance with the License. You can obtain a copy of the License by 007 * contacting Liferay, Inc. See the License for the specific language governing 008 * permissions and limitations under the License, including but not limited to 009 * distribution rights of the Software. 010 * 011 * 012 * 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 SystemException if a system exception occurred 157 */ 158 public java.util.List<com.liferay.portal.model.UserGroup> getUserUserGroups( 159 long userId) 160 throws com.liferay.portal.kernel.exception.PortalException, 161 com.liferay.portal.kernel.exception.SystemException { 162 return _userGroupService.getUserUserGroups(userId); 163 } 164 165 /** 166 * Removes the user groups from the group. 167 * 168 * @param groupId the primary key of the group 169 * @param userGroupIds the primary keys of the user groups 170 * @throws PortalException if the user did not have permission to assign 171 group members 172 * @throws SystemException if a system exception occurred 173 */ 174 public void unsetGroupUserGroups(long groupId, long[] userGroupIds) 175 throws com.liferay.portal.kernel.exception.PortalException, 176 com.liferay.portal.kernel.exception.SystemException { 177 _userGroupService.unsetGroupUserGroups(groupId, userGroupIds); 178 } 179 180 /** 181 * Removes the user groups from the team. 182 * 183 * @param teamId the primary key of the team 184 * @param userGroupIds the primary keys of the user groups 185 * @throws PortalException if the user did not have permission to assign 186 team members 187 * @throws SystemException if a system exception occurred 188 */ 189 public void unsetTeamUserGroups(long teamId, long[] userGroupIds) 190 throws com.liferay.portal.kernel.exception.PortalException, 191 com.liferay.portal.kernel.exception.SystemException { 192 _userGroupService.unsetTeamUserGroups(teamId, userGroupIds); 193 } 194 195 /** 196 * Updates the user group. 197 * 198 * @param userGroupId the primary key of the user group 199 * @param name the user group's name 200 * @param description the the user group's description 201 * @return the user group 202 * @throws PortalException if a user group with the primary key was not 203 found, if the new information was invalid, or if the user did not 204 have permission to update the user group information 205 * @throws SystemException if a system exception occurred 206 */ 207 public com.liferay.portal.model.UserGroup updateUserGroup( 208 long userGroupId, java.lang.String name, java.lang.String description) 209 throws com.liferay.portal.kernel.exception.PortalException, 210 com.liferay.portal.kernel.exception.SystemException { 211 return _userGroupService.updateUserGroup(userGroupId, name, description); 212 } 213 214 /** 215 * @deprecated Renamed to {@link #getWrappedService} 216 */ 217 public UserGroupService getWrappedUserGroupService() { 218 return _userGroupService; 219 } 220 221 /** 222 * @deprecated Renamed to {@link #setWrappedService} 223 */ 224 public void setWrappedUserGroupService(UserGroupService userGroupService) { 225 _userGroupService = userGroupService; 226 } 227 228 public UserGroupService getWrappedService() { 229 return _userGroupService; 230 } 231 232 public void setWrappedService(UserGroupService userGroupService) { 233 _userGroupService = userGroupService; 234 } 235 236 private UserGroupService _userGroupService; 237 }