com.sun.identity.sm
Interface ServiceListener


public interface ServiceListener

The interface ServiceListener needs to be implemented by applications in order to receive service data change notifications. The method schemaChanged() is invoked when a service schema data has been changed. The method globalConfigChanged() and organizationConfigChanged() are invoked when the service configuration data has been changed.


Field Summary
static int ADDED
          The change type specifies that the entry has been added.
static int MODIFIED
          The change type specifies that the entry has been modified.
static int REMOVED
          The change type specifies that the entry has been removed.
 
Method Summary
 void globalConfigChanged(java.lang.String serviceName, java.lang.String version, java.lang.String groupName, java.lang.String serviceComponent, int type)
          This method will be invoked when a service's global configuration data has been changed.
 void organizationConfigChanged(java.lang.String serviceName, java.lang.String version, java.lang.String orgName, java.lang.String groupName, java.lang.String serviceComponent, int type)
          This method will be invoked when a service's organization configuration data has been changed.
 void schemaChanged(java.lang.String serviceName, java.lang.String version)
          This methid will be invoked when a service's schema has been changed.
 

Field Detail

ADDED

public static final int ADDED
The change type specifies that the entry has been added.

See Also:
Constant Field Values

REMOVED

public static final int REMOVED
The change type specifies that the entry has been removed.

See Also:
Constant Field Values

MODIFIED

public static final int MODIFIED
The change type specifies that the entry has been modified.

See Also:
Constant Field Values
Method Detail

schemaChanged

public void schemaChanged(java.lang.String serviceName,
                          java.lang.String version)
This methid will be invoked when a service's schema has been changed.

Parameters:
version - version of the service

globalConfigChanged

public void globalConfigChanged(java.lang.String serviceName,
                                java.lang.String version,
                                java.lang.String groupName,
                                java.lang.String serviceComponent,
                                int type)
This method will be invoked when a service's global configuration data has been changed. The parameter groupName denote the name of the configuration grouping (e.g. default) and serviceComponent denotes the service's sub-component that changed (e.g. /NamedPolicy, /Templates).

Parameters:
serviceName - name of the service.
version - version of the service.
groupName - name of the configuration grouping.
serviceComponent - name of the service components that changed.
type - change type, i.e., ADDED, REMOVED or MODIFIED.

organizationConfigChanged

public void organizationConfigChanged(java.lang.String serviceName,
                                      java.lang.String version,
                                      java.lang.String orgName,
                                      java.lang.String groupName,
                                      java.lang.String serviceComponent,
                                      int type)
This method will be invoked when a service's organization configuration data has been changed. The parameters orgName, groupName and serviceComponent denotes the organization name, configuration grouping name and service's sub-component that are changed respectively.

Parameters:
serviceName - name of the service
version - version of the service
orgName - organization name as DN
groupName - name of the configuration grouping
serviceComponent - the name of the service components that changed
type - change type, i.e., ADDED, REMOVED or MODIFIED


Copyright 2006 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.