com.sap.security.api
Interface GroupListener


public interface GroupListener

This class allows to register for user mangagement events of principals of type IGroup. Interface GroupListener follows the observer pattern. An observer has to register via IGroupFactory.registerListener(GroupListener, int);

Version:
$Revision: #1 $

Field Summary
static int INFORM_ON_GROUP_ADDED
          Constant used for the event that a group was created
static int INFORM_ON_GROUP_ASSIGNED
          Constant used for the event that a group was assigned as member to a group
static int INFORM_ON_GROUP_REMOVED
          Constant used for the event that a group was removec
static int INFORM_ON_GROUP_UNASSIGNED
          Constant used for the event that a group was unassigned as member of a group
static int INFORM_ON_USER_ASSIGNED
          Constant used for the event that a user was added to a group
static int INFORM_ON_USER_UNASSIGNED
          Constant used for the event that a user was removed from a group
 
Method Summary
 void groupAdded(java.lang.String uniqueIdOfGroup)
          groupAdded() is called if event INFORM_ON_GROUP_ADDED is fired from the registering factory
 void groupAssigned(java.lang.String uniqueIdOfGroup, java.lang.String assignedUniqueIdOfGroup)
          groupAssigned() is called if event INFORM_ON_GROUP_ASSIGNED is fired from the registering factory
 void groupRemoved(java.lang.String uniqueIdOfGroup)
          groupRemoved() is called if event INFORM_ON_GROUP_REMOVED is fired from the registering factory
 void groupUnAssigned(java.lang.String uniqueIdOfGroup, java.lang.String unAssignedUniqueIdOfGroup)
          groupUnAssigned() is called if event INFORM_ON_GROUP_UNASSIGNED is fired from the registering factory
 void userAssigned(java.lang.String uniqueIdOfGroup, java.lang.String uniqueIdOfUser)
          userAssigned() is called if event INFORM_ON_USER_ASSIGNED is fired from the registering factory
 void userUnAssigned(java.lang.String uniqueIdOfGroup, java.lang.String uniqueIdOfUser)
          userUnAssigned() is called if event INFORM_ON_USER_UNASSIGNED is fired from the registering factory
 

Field Detail

INFORM_ON_GROUP_ADDED

public static final int INFORM_ON_GROUP_ADDED
Constant used for the event that a group was created

INFORM_ON_GROUP_REMOVED

public static final int INFORM_ON_GROUP_REMOVED
Constant used for the event that a group was removec

INFORM_ON_USER_ASSIGNED

public static final int INFORM_ON_USER_ASSIGNED
Constant used for the event that a user was added to a group

INFORM_ON_GROUP_ASSIGNED

public static final int INFORM_ON_GROUP_ASSIGNED
Constant used for the event that a group was assigned as member to a group

INFORM_ON_USER_UNASSIGNED

public static final int INFORM_ON_USER_UNASSIGNED
Constant used for the event that a user was removed from a group

INFORM_ON_GROUP_UNASSIGNED

public static final int INFORM_ON_GROUP_UNASSIGNED
Constant used for the event that a group was unassigned as member of a group
Method Detail

groupAdded

public void groupAdded(java.lang.String uniqueIdOfGroup)
                throws UMException
groupAdded() is called if event INFORM_ON_GROUP_ADDED is fired from the registering factory
Parameters:
uniqueIdOfGroup: - name of the newly added group
Throws:
UMException -  

groupRemoved

public void groupRemoved(java.lang.String uniqueIdOfGroup)
                  throws UMException
groupRemoved() is called if event INFORM_ON_GROUP_REMOVED is fired from the registering factory
Parameters:
uniqueIdOfGroup: - name of the newly removed group
Throws:
UMException -  

userAssigned

public void userAssigned(java.lang.String uniqueIdOfGroup,
                         java.lang.String uniqueIdOfUser)
                  throws UMException
userAssigned() is called if event INFORM_ON_USER_ASSIGNED is fired from the registering factory
Parameters:
uniqueIdOfGroup: - name of the group
uniqueIdOfUser: - name of the user who was assigned to the group
Throws:
UMException -  

userUnAssigned

public void userUnAssigned(java.lang.String uniqueIdOfGroup,
                           java.lang.String uniqueIdOfUser)
                    throws UMException
userUnAssigned() is called if event INFORM_ON_USER_UNASSIGNED is fired from the registering factory
Parameters:
uniqueIdOfGroup: - name of the group
uniqueIdOfUser: - name of the user who was removed from the group
Throws:
UMException -  

groupAssigned

public void groupAssigned(java.lang.String uniqueIdOfGroup,
                          java.lang.String assignedUniqueIdOfGroup)
                   throws UMException
groupAssigned() is called if event INFORM_ON_GROUP_ASSIGNED is fired from the registering factory
Parameters:
uniqueIdOfGroup: - name of the parent group
assignedUniqueIdOfGroup: - name of the group which was assigned to the parent group
Throws:
UMException -  

groupUnAssigned

public void groupUnAssigned(java.lang.String uniqueIdOfGroup,
                            java.lang.String unAssignedUniqueIdOfGroup)
                     throws UMException
groupUnAssigned() is called if event INFORM_ON_GROUP_UNASSIGNED is fired from the registering factory
Parameters:
uniqueIdOfGroup: - name of the parent group
unAssignedUniqueIdOfGroup: - name of the group which was removed as a member of the parent group
Throws:
UMException -  


Copyright © 2002 SAP AG All Rights Reserved.