public void updateGroupDetails ( GroupForm groupForm , IPerson updater ) { if ( ! canEditGroup ( updater , groupForm . getKey ( ) ) ) { throw new RuntimeAuthorizationException ( updater , IPermission . EDIT_GROUP_ACTIVITY , groupForm . getKey ( ) ) ; } if ( log . isDebugEnabled ( ) ) { log . debug ( "Updating group for group form [" + groupForm . toString ( ) + "]" ) ; } // find the current version of this group entity IEntityGroup group = GroupService . findGroup ( groupForm . getKey ( ) ) ; group . setName ( groupForm . getName ( ) ) ; group . setDescription ( groupForm . getDescription ( ) ) ; // save the group, updating both its basic information and group // membership group . update ( ) ; }
Update the title and description of an existing group in the group store .