Package com.iplanet.services.cdm
Class Client
- java.lang.Object
-
- java.util.Observable
-
- com.iplanet.services.cdm.Client
-
- Direct Known Subclasses:
AuthClient
public class Client extends Observable
Provides common access to client data.Client data is accessed for a particular client type. The underlying client data is stored in the profile service, but this interface should always used for accessing it (not by accessing the profile directly).
-
-
Field Summary
Fields Modifier and Type Field Description static StringCDM_ACCEPT_CHARSETstatic StringCDM_DEFAULT_CHARSETstatic StringCDM_DEFAULT_CLIENT_TYPEstatic StringCDM_DEFAULT_CONTENT_TYPEDefault content type for unidentified client type.static StringCHARSET_ALIAS_ATTRstatic StringDEFAULT_CHARSET_PROPERTYstatic StringG11N_SETTINGS_SERVICE_NAMEstatic StringJAVA_CHARSET_NAMEstatic StringLOCALE_CHARSET_ATTR
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description SetgetAdditionalProperties()used by the console plug-in (only) to get the additional properties.static IteratorgetAllInstances()Deprecated.Use ClientsManager#getAllInstances()protected static IteratorgetAllInstances(SSOToken token)Deprecated.Use ClientsManager#getAllInstances()StringgetCharset(Locale loc)StringgetClientType()Gets the name of the client type for the data in this client instance.static ClientgetDefaultInstance()Deprecated.Use ClientsManager#getDefaultInstance()static ClientgetInstance(String clientType)Deprecated.Use ClientsManager#getInstance(String)protected static ClientgetInstance(String clientType, SSOToken token)Deprecated.Use ClientsManager#getInstance(String)SetgetProperties(String name)Gets the client property for the specified key.StringgetProperty(String name)Gets the client property for the specified key.SetgetPropertyNames()Returns a set of property names for this client data instance.protected SetseparateAdditionalProperties(Map m)Removes the "additionalProperties" element from the Map, adds each of them to the Map with name and value (parsed with "=") and returns the values of the "additionalProperties in the Set.-
Methods inherited from class java.util.Observable
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged
-
-
-
-
Field Detail
-
G11N_SETTINGS_SERVICE_NAME
public static final String G11N_SETTINGS_SERVICE_NAME
- See Also:
- Constant Field Values
-
LOCALE_CHARSET_ATTR
public static final String LOCALE_CHARSET_ATTR
- See Also:
- Constant Field Values
-
CHARSET_ALIAS_ATTR
public static final String CHARSET_ALIAS_ATTR
- See Also:
- Constant Field Values
-
JAVA_CHARSET_NAME
public static final String JAVA_CHARSET_NAME
- See Also:
- Constant Field Values
-
CDM_ACCEPT_CHARSET
public static final String CDM_ACCEPT_CHARSET
- See Also:
- Constant Field Values
-
DEFAULT_CHARSET_PROPERTY
public static final String DEFAULT_CHARSET_PROPERTY
- See Also:
- Constant Field Values
-
CDM_DEFAULT_CHARSET
public static final String CDM_DEFAULT_CHARSET
-
CDM_DEFAULT_CLIENT_TYPE
public static final String CDM_DEFAULT_CLIENT_TYPE
- See Also:
- Constant Field Values
-
CDM_DEFAULT_CONTENT_TYPE
public static final String CDM_DEFAULT_CONTENT_TYPE
Default content type for unidentified client type.- See Also:
- Constant Field Values
-
-
Method Detail
-
getInstance
public static Client getInstance(String clientType) throws ClientException
Deprecated.Use ClientsManager#getInstance(String)Get Client instance for a specific client type .- Parameters:
clientType- Client Type.- Returns:
- Requested Client instance.
- Throws:
ClientException- if specified client type is null or not defined
-
getInstance
protected static Client getInstance(String clientType, SSOToken token) throws ClientException
Deprecated.Use ClientsManager#getInstance(String)When setting client data, get a Client instance for a specific client type. A valid user session is required when setting client data.- Parameters:
clientType- Client typetoken- SSO Token of the caller- Returns:
- Client instance
- Throws:
ClientException- if client type is null or not defined
-
getDefaultInstance
public static Client getDefaultInstance()
Deprecated.Use ClientsManager#getDefaultInstance()Returns a Client instance for the default client type- Returns:
- The Client instance corresponding to the default client type
-
getAllInstances
public static Iterator getAllInstances()
Deprecated.Use ClientsManager#getAllInstances()Returns an iterator of Client objects for all known client types.- Returns:
- Iterator of Client objects
-
getAllInstances
protected static Iterator getAllInstances(SSOToken token)
Deprecated.Use ClientsManager#getAllInstances()When setting client data, returns an iterator of Client objects for all known client types. A valid user session is required when setting client data.- Parameters:
token- The user's SSO token- Returns:
- Iterator of Client objects
-
getClientType
public String getClientType()
Gets the name of the client type for the data in this client instance.- Returns:
- Name of the client type
-
getProperty
public String getProperty(String name)
Gets the client property for the specified key.- Parameters:
name- The key for the client property to be returned.- Returns:
- The client property. Return null if name is null or an unknown key
-
getProperties
public Set getProperties(String name)
Gets the client property for the specified key.- Parameters:
name- The key for the client property to be returned.- Returns:
- The set of client property values. Returns null if name is null or an unknown key
-
getPropertyNames
public Set getPropertyNames()
Returns a set of property names for this client data instance.- Returns:
- The set of property names for this client data instance.
-
getAdditionalProperties
public Set getAdditionalProperties()
used by the console plug-in (only) to get the additional properties.
-
separateAdditionalProperties
protected Set separateAdditionalProperties(Map m)
Removes the "additionalProperties" element from the Map, adds each of them to the Map with name and value (parsed with "=") and returns the values of the "additionalProperties in the Set.- Returns:
- Set of the additionalProperties
-
-