Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
Copyright (C) 2014 Philip Helger (www.helger.com) philip[at]helger[dot]com Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
package com.helger.appbasics.security.usergroup;
Callback interface when a user group is created, modified, deleted or assigned to.

Author(s):
Philip Helger
public interface IUserGroupModificationCallback extends ICallback
{
  
Called after a user group was created.

Parameters:
aUserGroup The created user group. Never null.
bPredefinedUserGroup true if it is a predefined user group, false if it is a regular user group
  void onUserGroupCreated (@Nonnull IUserGroup aUserGroupboolean bPredefinedUserGroup);

  
Called after a user group was edited fully.

Parameters:
aUserGroup The modified user group. Never null.
  void onUserGroupUpdated (@Nonnull IUserGroup aUserGroup);

  
Called after a user group was renamed.

Parameters:
aUserGroup The modified user group. Never null.
  void onUserGroupRenamed (@Nonnull IUserGroup aUserGroup);

  
Called after a user group was deleted.

Parameters:
aUserGroup The deleted user group. Never null.
  void onUserGroupDeleted (@Nonnull IUserGroup aUserGroup);

  
Called after a user was assigned/unassigned to/from a user group.

Parameters:
aUserGroup The modified user group. Never null.
sUserID The ID of the user that was assigned/unassigned.
bAssign true if the user was assigned, false if it was unassigned
  void onUserGroupUserAssignment (@Nonnull IUserGroup aUserGroup, @Nonnull @Nonempty String sUserIDboolean bAssign);

  
Called after a role was assigned/unassigned to/from a user group.

Parameters:
aUserGroup The modified user group. Never null.
sRoleID The ID of the role that was assigned/unassigned.
bAssign true if the role was assigned, false if it was unassigned
  void onUserGroupRoleAssignment (@Nonnull IUserGroup aUserGroup, @Nonnull @Nonempty String sRoleIDboolean bAssign);
New to GrepCode? Check out our FAQ X