com.sap.security.api
Interface PrincipalListener


public interface PrincipalListener

This class allows to register for user mangagement events. PrincipalListener follows the observer pattern. An observer has to register via IPrincipalFactory.registerListener(PrincipalListener,int).

Version:
$Revision: #1 $

Field Summary
static int INFORM_ON_OBJECT_ADDED
          Constant used for the event that a principal was created
static int INFORM_ON_OBJECT_ASSIGNED
          Constant used for the event that a principal was assigned
static int INFORM_ON_OBJECT_EDITED
          Constant used for the event that a principal was changed
static int INFORM_ON_OBJECT_REMOVED
          Constant used for the event that a principal was removed
static int INFORM_ON_OBJECT_UNASSIGNED
          Constant used for the event that a principal was unassigned
 
Method Summary
 void objectAdded(java.lang.String uniqueID)
          objectAdded() is called if event INFORM_ON_OBJECT_ADDED is fired from the registering factory
 void objectAssigned(java.lang.String uniqueID, java.lang.String assignedPrincipalID)
          objectAssigned() is called if event INFORM_ON_OBJECT_ASSIGNED is fired from the registering factory
 void objectEdited(java.lang.String uniqueID)
          objectEdited() is called if event INFORM_ON_OBJECT_EDITED is fired from the registering factory
 void objectRemoved(java.lang.String uniqueID)
          objectRemoved() is called if event INFORM_ON_OBJECT_REMOVED is fired from the registering factory
 void objectUnAssigned(java.lang.String uniqueID, java.lang.String unassignedPrincipalID)
          objectUnAssigned() is called if event INFORM_ON_OBJECT_UNASSIGNED is fired from the registering factory
 

Field Detail

INFORM_ON_OBJECT_ADDED

public static final int INFORM_ON_OBJECT_ADDED
Constant used for the event that a principal was created

INFORM_ON_OBJECT_REMOVED

public static final int INFORM_ON_OBJECT_REMOVED
Constant used for the event that a principal was removed

INFORM_ON_OBJECT_EDITED

public static final int INFORM_ON_OBJECT_EDITED
Constant used for the event that a principal was changed

INFORM_ON_OBJECT_ASSIGNED

public static final int INFORM_ON_OBJECT_ASSIGNED
Constant used for the event that a principal was assigned

INFORM_ON_OBJECT_UNASSIGNED

public static final int INFORM_ON_OBJECT_UNASSIGNED
Constant used for the event that a principal was unassigned
Method Detail

objectAdded

public void objectAdded(java.lang.String uniqueID)
                 throws UMException
objectAdded() is called if event INFORM_ON_OBJECT_ADDED is fired from the registering factory
Parameters:
uniqueID - of the newly added principal
Throws:
UMException -  

objectRemoved

public void objectRemoved(java.lang.String uniqueID)
                   throws UMException
objectRemoved() is called if event INFORM_ON_OBJECT_REMOVED is fired from the registering factory
Parameters:
uniqueID - of the newly removed principal
Throws:
UMException -  

objectEdited

public void objectEdited(java.lang.String uniqueID)
                  throws UMException
objectEdited() is called if event INFORM_ON_OBJECT_EDITED is fired from the registering factory
Parameters:
uniqueID - of the newly changed principal
Throws:
UMException -  

objectAssigned

public void objectAssigned(java.lang.String uniqueID,
                           java.lang.String assignedPrincipalID)
                    throws UMException
objectAssigned() is called if event INFORM_ON_OBJECT_ASSIGNED is fired from the registering factory
Parameters:
uniqueID - of the IPrincipalSet to which a principal was assigned
assignedPrincipalID - contains the uniqueID of the principal which was assigned to IPrincipalSet
Throws:
UMException -  

objectUnAssigned

public void objectUnAssigned(java.lang.String uniqueID,
                             java.lang.String unassignedPrincipalID)
                      throws UMException
objectUnAssigned() is called if event INFORM_ON_OBJECT_UNASSIGNED is fired from the registering factory
Parameters:
uniqueID - of the IPrincipalSet from which a principal was unassigned
unassignedPrincipalID - contains the uniqueID of the principal which was unassigned from IPrincipalSet
Throws:
UMException -  


Copyright © 2002 SAP AG All Rights Reserved.