Package com.sun.identity.idm
Class AMIdentityRepository
- java.lang.Object
-
- com.sun.identity.idm.AMIdentityRepository
-
@Supported public class AMIdentityRepository extends Object
The classAMIdentityRepository
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);
-
-
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 int
addEventListener(IdEventListener listener)
static void
clearCache()
Set<AMIdentity>
createIdentities(IdType type, Map<String,Map<?,?>> identityNamesAndAttrs)
AMIdentity
createIdentity(IdType type, String idName, Map attrMap)
void
deleteIdentities(IdType type, Set identities)
void
deleteIdentities(Set<AMIdentity> identities)
Set
getAllowedIdOperations(IdType type)
AMIdentity
getRealmIdentity()
Set
getSupportedIdTypes()
void
removeEventListener(int identifier)
IdSearchResults
searchIdentities(IdType type, String pattern, IdSearchControl ctrl)
-
-
-
Constructor Detail
-
AMIdentityRepository
@Supported @Deprecated public AMIdentityRepository(SSOToken ssotoken, String realmName) throws IdRepoException, SSOException
Deprecated.- Throws:
IdRepoException
SSOException
-
AMIdentityRepository
@Supported @Inject public AMIdentityRepository(@Nullable String realmName, SSOToken ssoToken)
-
-
Method Detail
-
getSupportedIdTypes
@Supported public Set getSupportedIdTypes() throws IdRepoException, SSOException
- Throws:
IdRepoException
SSOException
-
getAllowedIdOperations
@Supported public Set getAllowedIdOperations(IdType type) throws IdRepoException, SSOException
- Throws:
IdRepoException
SSOException
-
searchIdentities
@Supported public IdSearchResults searchIdentities(IdType type, String pattern, IdSearchControl ctrl) throws IdRepoException, SSOException
- Throws:
IdRepoException
SSOException
-
getRealmIdentity
@Supported public AMIdentity getRealmIdentity() throws IdRepoException, SSOException
- Throws:
IdRepoException
SSOException
-
createIdentity
@Supported public AMIdentity createIdentity(IdType type, String idName, Map attrMap) throws IdRepoException, SSOException
- Throws:
IdRepoException
SSOException
-
createIdentities
@Supported public Set<AMIdentity> createIdentities(IdType type, Map<String,Map<?,?>> identityNamesAndAttrs) throws IdRepoException, SSOException
- Throws:
IdRepoException
SSOException
-
deleteIdentities
@Supported public void deleteIdentities(IdType type, Set identities) throws IdRepoException, SSOException
- Throws:
IdRepoException
SSOException
-
deleteIdentities
@Supported public void deleteIdentities(Set<AMIdentity> identities) throws IdRepoException, SSOException
- Throws:
IdRepoException
SSOException
-
addEventListener
@Supported public int addEventListener(IdEventListener listener)
-
removeEventListener
@Supported public void removeEventListener(int identifier)
-
clearCache
@Supported public static void clearCache()
-
-