com.iplanet.services.cdm
Interface ClientTypesManager


public interface ClientTypesManager

Interface that needs to be implemented by external applications inorder to do some special processing for client management. The implementation module is pluggable and is configurable via AMConfig.properties. The property to set is com.iplanet.ClientTypesManagerImpl.


Method Summary
 java.util.Map getAllClientInstances()
          Gets all client instance as Map.
 java.util.Set getAllClientTypes()
          Get names of all client types
 Client getClientInstance(java.lang.String clientType)
          Gets client object for specified client type.
 Client getClientInstance(java.lang.String clientType, SSOToken token)
          Gets client object for specified client type with specified token
 java.util.Map getClientTypeData(java.lang.String clientType)
          Returns properties of the requested client type
 java.lang.String getDefaultClientType()
          Gets default client type name
 void initManager()
          Initializes the ClientTypesManager.
 void setDirty(java.lang.String clientType, java.util.Map data)
          Updates client data.
 void store(SSOToken token)
          Save changed to persistent store.
 void updateClientData()
          Reload all Client data.
 

Method Detail

initManager

public void initManager()
Initializes the ClientTypesManager.


getAllClientInstances

public java.util.Map getAllClientInstances()
Gets all client instance as Map.

Returns:
Map of clients. Key is the client type, value is the Client object

getClientInstance

public Client getClientInstance(java.lang.String clientType)
Gets client object for specified client type.

Parameters:
clientType - requested client type.
Returns:
The requested Client object

getClientInstance

public Client getClientInstance(java.lang.String clientType,
                                SSOToken token)
Gets client object for specified client type with specified token

Parameters:
clientType - requested client type
token - SSO Token
Returns:
The requested Client object

getClientTypeData

public java.util.Map getClientTypeData(java.lang.String clientType)
Returns properties of the requested client type

Parameters:
clientType - requested client type
Returns:
All properties of the request client type as Map

getDefaultClientType

public java.lang.String getDefaultClientType()
Gets default client type name

Returns:
The default client type name

getAllClientTypes

public java.util.Set getAllClientTypes()
Get names of all client types

Returns:
Set of client types as String

updateClientData

public void updateClientData()
                      throws ClientException
Reload all Client data.

Throws:
ClientException - if having problem update client data

store

public void store(SSOToken token)
           throws SMSException,
                  SSOException
Save changed to persistent store.

Parameters:
token - single sign on Token of the caller.
Throws:
SSOException - if the token is not valid.
SMSException - if having problem saving changes.

setDirty

public void setDirty(java.lang.String clientType,
                     java.util.Map data)
Updates client data. Need to call store() after this method.

Parameters:
clientType - client type
data - client data. Key is the property name and value is the property value as String.


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