com.iplanet.services.cdm
Class DefaultClientTypesManager

java.lang.Object
  |
  +--com.iplanet.services.cdm.DefaultClientTypesManager
All Implemented Interfaces:
com.iplanet.services.cdm.clientschema.AMClientDataListener, ClientTypesManager

public synchronized class DefaultClientTypesManager
extends java.lang.Object
implements ClientTypesManager, com.iplanet.services.cdm.clientschema.AMClientDataListener


Constructor Summary
DefaultClientTypesManager()
           
 
Method Summary
 Client addClient(SSOToken, java.lang.String, java.util.Map, boolean)
           
 int addClientExternal(SSOToken, java.util.Map)
           
 void addToPartialMatchMap(java.lang.String, java.lang.String)
           
 boolean canCreateClients()
           
 void clientChanged(java.lang.String, int, int)
           
 java.util.Map getAllClientInstances()
          Gets all client instance as Map.
 java.util.Set getAllClientTypes()
          Get names of all client types
 java.util.Set getBaseProfileNames()
           
 Client getClientInstance(java.lang.String)
          Gets client object for specified client type.
 Client getClientInstance(java.lang.String, SSOToken)
          Gets client object for specified client type with specified token
 java.util.Map getClients(java.lang.String, java.lang.String)
           
 java.util.Map getClientTypeData(java.lang.String)
          Returns properties of the requested client type
 java.lang.String getDefaultClientType()
          Gets default client type name
 Client getFromUserAgentMap(java.lang.String)
           
 java.lang.String getPartiallyMatchedClient(java.lang.String)
           
 java.util.Set getStyles(java.lang.String)
           
 void initManager()
          Initializes the ClientTypesManager.
 int modifyClientExternal(SSOToken, java.util.Map)
           
 int removeClientExternal(SSOToken, java.lang.String)
           
 void setDirty(java.lang.String, java.util.Map)
          Updates client data.
 void store(SSOToken)
          Save changed to persistent store.
 void updateClientData()
          Reload all Client data.
 java.util.Set userAgentSet()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultClientTypesManager

public DefaultClientTypesManager()
Method Detail

initManager

public void initManager()
Description copied from interface: ClientTypesManager
Initializes the ClientTypesManager.
Specified by:
initManager in interface ClientTypesManager

getFromUserAgentMap

public Client getFromUserAgentMap(java.lang.String)

userAgentSet

public java.util.Set userAgentSet()

getPartiallyMatchedClient

public java.lang.String getPartiallyMatchedClient(java.lang.String)

addToPartialMatchMap

public void addToPartialMatchMap(java.lang.String,
                                 java.lang.String)

addClient

public Client addClient(SSOToken,
                        java.lang.String,
                        java.util.Map,
                        boolean)
                 throws com.iplanet.services.cdm.clientschema.AMClientCapException

canCreateClients

public boolean canCreateClients()

getAllClientInstances

public java.util.Map getAllClientInstances()
Description copied from interface: ClientTypesManager
Gets all client instance as Map.
Specified by:
getAllClientInstances in interface ClientTypesManager
Following copied from interface: com.iplanet.services.cdm.ClientTypesManager
Returns:
Map of clients. Key is the client type, value is the Client object

getAllClientTypes

public java.util.Set getAllClientTypes()
Description copied from interface: ClientTypesManager
Get names of all client types
Specified by:
getAllClientTypes in interface ClientTypesManager
Following copied from interface: com.iplanet.services.cdm.ClientTypesManager
Returns:
Set of client types as String

getClientInstance

public Client getClientInstance(java.lang.String)
Description copied from interface: ClientTypesManager
Gets client object for specified client type.
Specified by:
getClientInstance in interface ClientTypesManager
Following copied from interface: com.iplanet.services.cdm.ClientTypesManager
Parameters:
clientType - requested client type.
Returns:
The requested Client object

getClientInstance

public Client getClientInstance(java.lang.String,
                                SSOToken)
Description copied from interface: ClientTypesManager
Gets client object for specified client type with specified token
Specified by:
getClientInstance in interface ClientTypesManager
Following copied from interface: com.iplanet.services.cdm.ClientTypesManager
Parameters:
clientType - requested client type
token - SSO Token
Returns:
The requested Client object

getClientTypeData

public java.util.Map getClientTypeData(java.lang.String)
Description copied from interface: ClientTypesManager
Returns properties of the requested client type
Specified by:
getClientTypeData in interface ClientTypesManager
Following copied from interface: com.iplanet.services.cdm.ClientTypesManager
Parameters:
clientType - requested client type
Returns:
All properties of the request client type as Map

getDefaultClientType

public java.lang.String getDefaultClientType()
Description copied from interface: ClientTypesManager
Gets default client type name
Specified by:
getDefaultClientType in interface ClientTypesManager
Following copied from interface: com.iplanet.services.cdm.ClientTypesManager
Returns:
The default client type name

updateClientData

public void updateClientData()
                      throws ClientException
Description copied from interface: ClientTypesManager
Reload all Client data.
Specified by:
updateClientData in interface ClientTypesManager
Following copied from interface: com.iplanet.services.cdm.ClientTypesManager
Throws:
ClientException - if having problem update client data

store

public void store(SSOToken)
           throws SMSException,
                  SSOException
Description copied from interface: ClientTypesManager
Save changed to persistent store.
Specified by:
store in interface ClientTypesManager
Following copied from interface: com.iplanet.services.cdm.ClientTypesManager
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,
                     java.util.Map)
Description copied from interface: ClientTypesManager
Updates client data. Need to call store() after this method.
Specified by:
setDirty in interface ClientTypesManager
Following copied from interface: com.iplanet.services.cdm.ClientTypesManager
Parameters:
clientType - client type
data - client data. Key is the property name and value is the property value as String.

clientChanged

public void clientChanged(java.lang.String,
                          int,
                          int)
Specified by:
clientChanged in interface com.iplanet.services.cdm.clientschema.AMClientDataListener

getBaseProfileNames

public java.util.Set getBaseProfileNames()

getStyles

public java.util.Set getStyles(java.lang.String)

getClients

public java.util.Map getClients(java.lang.String,
                                java.lang.String)

addClientExternal

public int addClientExternal(SSOToken,
                             java.util.Map)
                      throws com.iplanet.services.cdm.clientschema.AMClientCapException

modifyClientExternal

public int modifyClientExternal(SSOToken,
                                java.util.Map)
                         throws com.iplanet.services.cdm.clientschema.AMClientCapException

removeClientExternal

public int removeClientExternal(SSOToken,
                                java.lang.String)
                         throws com.iplanet.services.cdm.clientschema.AMClientCapException