Package com.sun.identity.idm
Class AMIdentityRepository
- java.lang.Object
-
- com.sun.identity.idm.AMIdentityRepository
-
@Supported public class AMIdentityRepository extends Object
The classAMIdentityRepositoryrepresents 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);
-
-
Constructor Summary
Constructors Constructor Description AMIdentityRepository(SSOToken ssotoken, String realmName)Deprecated.AMIdentityRepository(String realmName, SSOToken ssoToken)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intaddEventListener(IdEventListener listener)static voidclearCache()Set<AMIdentity>createIdentities(IdType type, Map<String,Map<?,?>> identityNamesAndAttrs)AMIdentitycreateIdentity(IdType type, String idName, Map attrMap)voiddeleteIdentities(IdType type, Set identities)voiddeleteIdentities(Set<AMIdentity> identities)SetgetAllowedIdOperations(IdType type)AMIdentitygetRealmIdentity()SetgetSupportedIdTypes()voidremoveEventListener(int identifier)IdSearchResultssearchIdentities(IdType type, String pattern, IdSearchControl ctrl)
-
-
-
Constructor Detail
-
AMIdentityRepository
@Supported @Deprecated public AMIdentityRepository(SSOToken ssotoken, String realmName) throws IdRepoException, SSOException
Deprecated.- Throws:
IdRepoExceptionSSOException
-
AMIdentityRepository
@Supported @Inject public AMIdentityRepository(@Nullable String realmName, SSOToken ssoToken)
-
-
Method Detail
-
getSupportedIdTypes
@Supported public Set getSupportedIdTypes() throws IdRepoException, SSOException
- Throws:
IdRepoExceptionSSOException
-
getAllowedIdOperations
@Supported public Set getAllowedIdOperations(IdType type) throws IdRepoException, SSOException
- Throws:
IdRepoExceptionSSOException
-
searchIdentities
@Supported public IdSearchResults searchIdentities(IdType type, String pattern, IdSearchControl ctrl) throws IdRepoException, SSOException
- Throws:
IdRepoExceptionSSOException
-
getRealmIdentity
@Supported public AMIdentity getRealmIdentity() throws IdRepoException, SSOException
- Throws:
IdRepoExceptionSSOException
-
createIdentity
@Supported public AMIdentity createIdentity(IdType type, String idName, Map attrMap) throws IdRepoException, SSOException
- Throws:
IdRepoExceptionSSOException
-
createIdentities
@Supported public Set<AMIdentity> createIdentities(IdType type, Map<String,Map<?,?>> identityNamesAndAttrs) throws IdRepoException, SSOException
- Throws:
IdRepoExceptionSSOException
-
deleteIdentities
@Supported public void deleteIdentities(IdType type, Set identities) throws IdRepoException, SSOException
- Throws:
IdRepoExceptionSSOException
-
deleteIdentities
@Supported public void deleteIdentities(Set<AMIdentity> identities) throws IdRepoException, SSOException
- Throws:
IdRepoExceptionSSOException
-
addEventListener
@Supported public int addEventListener(IdEventListener listener)
-
removeEventListener
@Supported public void removeEventListener(int identifier)
-
clearCache
@Supported public static void clearCache()
-
-