com.sap.security.api
Interface RoleListener


public interface RoleListener

This class allows to register for user mangagement events. IUserListener follows the observer pattern. An observer has to register via registerForEvent. An observer can subscribe more than one time to an event by using different namespaces. Copyright (c) SAP Portals Europe GmbH 2001

Version:
$Revision: #1 $

Field Summary
static int INFORM_ON_GROUP_ASSIGNED
           
static int INFORM_ON_GROUP_UNASSIGNED
           
static int INFORM_ON_ROLE_ADDED
           
static int INFORM_ON_ROLE_REMOVED
           
static int INFORM_ON_USER_ASSIGNED
           
static int INFORM_ON_USER_UNASSIGNED
           
 
Method Summary
 void groupAssigned(java.lang.String uniqueIdOfRole, java.lang.String assignedUniqueIdOfGroup)
          groupAssigned() is called if event INFORM_ON_GROUP_ASSIGNED is fired from the registering factory
 void groupUnAssigned(java.lang.String uniqueIdOfRole, java.lang.String unassignedUniqueIdOfGroup)
          groupUnAssigned() is called if event INFORM_ON_GROUP_UNASSIGNED is fired from the registering factory
 void roleAdded(java.lang.String uniqueIdOfRole)
          roleAdded() is called if event INFORM_ON_ROLE_ADDED is fired from registered factory
 void roleRemoved(java.lang.String uniqueIdOfRole)
          roleRemoved() is called if event INFORM_ON_ROLE_REMOVED is fired from registered factory
 void userAssigned(java.lang.String uniqueIdOfRole, java.lang.String uniqueIdOfUser)
          userAssigned() is called if event INFORM_ON_USER_ASSIGNED is fired from the registering factory
 void userUnAssigned(java.lang.String uniqueIdOfRole, java.lang.String uniqueIdOfUser)
          userUnAssigned() is called if event INFORM_ON_USER_UNASSIGNED is fired from the registering factory
 

Field Detail

INFORM_ON_ROLE_ADDED

public static final int INFORM_ON_ROLE_ADDED

INFORM_ON_ROLE_REMOVED

public static final int INFORM_ON_ROLE_REMOVED

INFORM_ON_USER_ASSIGNED

public static final int INFORM_ON_USER_ASSIGNED

INFORM_ON_GROUP_ASSIGNED

public static final int INFORM_ON_GROUP_ASSIGNED

INFORM_ON_USER_UNASSIGNED

public static final int INFORM_ON_USER_UNASSIGNED

INFORM_ON_GROUP_UNASSIGNED

public static final int INFORM_ON_GROUP_UNASSIGNED
Method Detail

roleAdded

public void roleAdded(java.lang.String uniqueIdOfRole)
               throws UMException
roleAdded() is called if event INFORM_ON_ROLE_ADDED is fired from registered factory
Parameters:
uniqueIdOfRole: - name of the newly added role
Throws:
UMException -  

roleRemoved

public void roleRemoved(java.lang.String uniqueIdOfRole)
                 throws UMException
roleRemoved() is called if event INFORM_ON_ROLE_REMOVED is fired from registered factory
Parameters:
uniqueIdOfRole: - name of the newly added role
Throws:
UMException -  

userAssigned

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

userUnAssigned

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

groupAssigned

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

groupUnAssigned

public void groupUnAssigned(java.lang.String uniqueIdOfRole,
                            java.lang.String unassignedUniqueIdOfGroup)
                     throws UMException
groupUnAssigned() is called if event INFORM_ON_GROUP_UNASSIGNED is fired from the registering factory
Parameters:
uniqueIdOfRole: - name of the role
unAssignedUniqueIdOfGroup: - name of the group which was unassigned from the role
Throws:
UMException -  


Copyright © 2002 SAP AG All Rights Reserved.