public interface StoreSelector
Modifier and Type | Method and Description |
---|---|
<T extends AttributeStore<?>> |
getStoreForAttributeOperation(IdentityContext context)
Returns the AttributeStore that manages attributes.
|
<T extends CredentialStore<?>> |
getStoreForCredentialOperation(IdentityContext context,
Class<?> credentialClass) |
<T extends IdentityStore<?>> |
getStoreForIdentityOperation(IdentityContext context,
Class<T> storeType,
Class<? extends AttributedType> type,
IdentityStoreConfiguration.IdentityOperation operation) |
<T extends PartitionStore<?>> |
getStoreForPartitionOperation(IdentityContext context,
Class<? extends Partition> partitionClass)
Returns the PartitionStore that manages partitions.
|
PermissionStore |
getStoreForPermissionOperation(IdentityContext context)
Returns a PermissionStore instance
|
IdentityStore<?> |
getStoreForRelationshipOperation(IdentityContext context,
Class<? extends Relationship> relationshipClass,
Relationship relationship,
IdentityStoreConfiguration.IdentityOperation operation)
Returns the IdentityStore that manages relationships of the specified type, for the specified partition/s.
|
Set<CredentialStore<?>> |
getStoresForCredentialStorage(IdentityContext context,
Class<? extends CredentialStorage> storageClass)
Returns all available
CredentialStore instances that support the given CredentialStorage
type. |
Set<IdentityStore<?>> |
getStoresForIdentityQuery(IdentityContext context,
Class<? extends IdentityType> identityType)
Returns all available
IdentityStore instances that support the given IdentityType . |
Set<IdentityStore<?>> |
getStoresForRelationshipQuery(IdentityContext context,
Class<? extends Relationship> relationshipClass,
Set<Partition> partitions)
Returns all available
IdentityStore instances that support the given IdentityType . |
<T extends IdentityStore<?>> T getStoreForIdentityOperation(IdentityContext context, Class<T> storeType, Class<? extends AttributedType> type, IdentityStoreConfiguration.IdentityOperation operation)
context
- feature
- operation
- <T extends CredentialStore<?>> T getStoreForCredentialOperation(IdentityContext context, Class<?> credentialClass)
context
- IdentityStore<?> getStoreForRelationshipOperation(IdentityContext context, Class<? extends Relationship> relationshipClass, Relationship relationship, IdentityStoreConfiguration.IdentityOperation operation)
relationship
- Set<IdentityStore<?>> getStoresForRelationshipQuery(IdentityContext context, Class<? extends Relationship> relationshipClass, Set<Partition> partitions) throws IdentityManagementException
Returns all available IdentityStore
instances that support the given IdentityType
.
context
- The current context.relationshipClass
- The type used to restrict which stores should be selected and returned. If
the value is IdentityType
all stores that support any subtype of this interface
will be returned.partitions
- A set with the partitions that should be used to restrict which stores should be selected. If empty
only the type will be considered.IdentityManagementException
- If no store was found.PermissionStore getStoreForPermissionOperation(IdentityContext context)
context
- <T extends PartitionStore<?>> T getStoreForPartitionOperation(IdentityContext context, Class<? extends Partition> partitionClass)
<T extends AttributeStore<?>> T getStoreForAttributeOperation(IdentityContext context)
Set<CredentialStore<?>> getStoresForCredentialStorage(IdentityContext context, Class<? extends CredentialStorage> storageClass)
Returns all available CredentialStore
instances that support the given CredentialStorage
type.
context
- Set<IdentityStore<?>> getStoresForIdentityQuery(IdentityContext context, Class<? extends IdentityType> identityType) throws IdentityManagementException
Returns all available IdentityStore
instances that support the given IdentityType
.
context
- The current context.identityType
- The type used to restrict which stores should be selected and returned. If
the value is IdentityType
all stores that support any subtype of this interface
will be returned.IdentityManagementException
- If no store was found.Copyright © 2014. All rights reserved.