com.sun.identity.plugin.datastore
インタフェース DataStoreProvider


public interface DataStoreProvider

Interface used for storing & retrieving information. Also used to search user.


メソッドの概要
 Set getAttribute(String userID, String attrName)
          Gets user attribute.
 Map getAttributes(String userID, Set attrNames)
          Gets user attributes.
 String getUserID(String orgDN, Map avPairs)
          Searches user.
 void init(String componentName)
          Initializes the provider.
 boolean isUserExists(String userID)
          Checks if the user exists with a given userid.
 void setAttributes(String userID, Map attrMap)
          Sets user attrbiutes.
 

メソッドの詳細

init

void init(String componentName)
          throws DataStoreProviderException
Initializes the provider.

パラメータ:
componentName - Component name, such as saml, saml2, id-ff, disco, authnsvc, and idpp.
例外:
DataStoreProviderException - if an error occurred during initialization.

getAttribute

Set getAttribute(String userID,
                 String attrName)
                 throws DataStoreProviderException
Gets user attribute.

パラメータ:
userID - ID value for the user.
attrName - Name of the attribute whose value to be retrieved.
戻り値:
Set of the values for the attribute.
例外:
DataStoreProviderException - if an error occurred.

getAttributes

Map getAttributes(String userID,
                  Set attrNames)
                  throws DataStoreProviderException
Gets user attributes.

パラメータ:
userID - ID value for the user.
attrNames - The Set of attribute names.
戻り値:
Map of specified attributes. Map key is the attribute name and value is the attribute value Set.
例外:
DataStoreProviderException - if an error occurred.

setAttributes

void setAttributes(String userID,
                   Map attrMap)
                   throws DataStoreProviderException
Sets user attrbiutes.

パラメータ:
userID - ID value for the user.
attrMap - Map of specified attrbibutes to be set. Map key is the attribute name and value is the attribute value Set.
例外:
DataStoreProviderException - if an error occurred.

getUserID

String getUserID(String orgDN,
                 Map avPairs)
                 throws DataStoreProviderException
Searches user.

パラメータ:
orgDN - The organization to search the user.
avPairs - Attribute value pairs that will be used for searching the user.
例外:
DataStoreProviderException - if an error occurred.

isUserExists

boolean isUserExists(String userID)
                     throws DataStoreProviderException
Checks if the user exists with a given userid.

パラメータ:
userID - ID of an user
戻り値:
true if the user exists; false otherwise.
例外:
DataStoreProviderException - if an error occurred.