com.sun.identity.idm
クラス AMIdentityRepository

java.lang.Object
  上位を拡張 com.sun.identity.idm.AMIdentityRepository

public final class AMIdentityRepository
extends Object

The class AMIdentityRepository represents an object to access the repositories in which user/role/group and other identity data is configured. This class provides access to methods which will search, create and delete identities. An instance of this class can be obtained in the following manner:

 
 AMIdentityRepository idRepo = new AMIdentityRepository(ssoToken, realmName);
 
 


コンストラクタの概要
AMIdentityRepository(SSOToken ssotoken, String realmName)
           
 
メソッドの概要
 int addEventListener(IdEventListener listener)
           
static void clearCache()
           
 Set createIdentities(IdType type, Map identityNamesAndAttrs)
           
 AMIdentity createIdentity(IdType type, String idName, Map attrMap)
           
 void deleteIdentities(IdType type, Set identities)
          推奨されていません。 As of release AM 7.1, replaced by AMIdentityRepository.deleteIdentities(Set)
 void deleteIdentities(Set identities)
           
 Set getAllowedIdOperations(IdType type)
           
 AMIdentity getRealmIdentity()
           
 Set getSupportedIdTypes()
           
 void removeEventListener(int identifier)
           
 IdSearchResults searchIdentities(IdType type, String pattern, IdSearchControl ctrl)
           
 

コンストラクタの詳細

AMIdentityRepository

public AMIdentityRepository(SSOToken ssotoken,
                            String realmName)
                     throws IdRepoException,
                            SSOException
パラメータ:
ssotoken - Single sign on token of the user
realmName - Name of the realm (can be a Fully qualified DN)
例外:
IdRepoException - if there are repository related error conditions.
SSOException - if user's single sign on token is invalid.
メソッドの詳細

getSupportedIdTypes

public Set getSupportedIdTypes()
                        throws IdRepoException,
                               SSOException
戻り値:
Set of supported IdType objects.
例外:
IdRepoException - if there are repository related error conditions.
SSOException - if user's single sign on token is invalid.

getAllowedIdOperations

public Set getAllowedIdOperations(IdType type)
                           throws IdRepoException,
                                  SSOException
パラメータ:
type - Type of identity
戻り値:
Set of IdOperation objects.
例外:
IdRepoException - if there are repository related error conditions.
SSOException - if user's single sign on token is invalid.

searchIdentities

public IdSearchResults searchIdentities(IdType type,
                                        String pattern,
                                        IdSearchControl ctrl)
                                 throws IdRepoException,
                                        SSOException
パラメータ:
type - Type of identity being searched for.
pattern - Pattern to be used when searching.
ctrl - IdSearchControl which can be used to set up various search controls on the search to be performed.
戻り値:
Returns the combined results in an object IdSearchResults.
例外:
IdRepoException - if there are repository related error conditions.
SSOException - if user's single sign on token is invalid.
関連項目:
IdSearchControl, IdSearchResults

getRealmIdentity

public AMIdentity getRealmIdentity()
                            throws IdRepoException,
                                   SSOException
戻り値:
a handle of the Identity object.
例外:
IdRepoException - if there are repository related error conditions.
SSOException - if user's single sign on token is invalid.

createIdentity

public AMIdentity createIdentity(IdType type,
                                 String idName,
                                 Map attrMap)
                          throws IdRepoException,
                                 SSOException
パラメータ:
type - IdType of object to be created.
idName - Name of object. If the type is IdType.REALM then enter a valid realm name.
attrMap - Map of attribute-values to be set when creating the entry.
戻り値:
Identity object representing the newly created entry.
例外:
IdRepoException - if there are repository related error conditions.
SSOException - if user's single sign on token is invalid.

createIdentities

public Set createIdentities(IdType type,
                            Map identityNamesAndAttrs)
                     throws IdRepoException,
                            SSOException
パラメータ:
type - Type of object to be created
identityNamesAndAttrs - Names of the identities and their
戻り値:
Set of created Identities.
例外:
IdRepoException - if there are repository related error conditions.
SSOException - if user's single sign on token is invalid.

deleteIdentities

public void deleteIdentities(IdType type,
                             Set identities)
                      throws IdRepoException,
                             SSOException
推奨されていません。 As of release AM 7.1, replaced by AMIdentityRepository.deleteIdentities(Set)

パラメータ:
type - Type of Identity to be deleted.
identities - Set of AMIdentity objects to be deleted.
例外:
IdRepoException - if there are repository related error conditions.
SSOException - if user's single sign on token is invalid.

deleteIdentities

public void deleteIdentities(Set identities)
                      throws IdRepoException,
                             SSOException
パラメータ:
identities - Set of AMIdentity objects to be deleted
例外:
IdRepoException - if there are repository related error conditions.
SSOException - if user's single sign on token is invalid.

addEventListener

public int addEventListener(IdEventListener listener)
パラメータ:
listener - The callback which implements AMEventListener.
戻り値:
Integer identifier for this listener.

removeEventListener

public void removeEventListener(int identifier)
パラメータ:
identifier - Integer identifying the listener.

clearCache

public static void clearCache()