public class JDBCIdentityStore extends AbstractIdentityStore<JDBCIdentityStoreConfiguration> implements CredentialStore<JDBCIdentityStoreConfiguration>, PartitionStore<JDBCIdentityStoreConfiguration>, AttributeStore<JDBCIdentityStoreConfiguration>
IdentityStore
using JDBCConstructor and Description |
---|
JDBCIdentityStore() |
Modifier and Type | Method and Description |
---|---|
void |
add(IdentityContext identityContext,
Partition partition,
String configurationName) |
protected void |
addAttributedType(IdentityContext context,
AttributedType attributedType) |
<V extends IdentityType> |
countQueryResults(IdentityContext context,
IdentityQuery<V> identityQuery) |
<V extends Relationship> |
countQueryResults(IdentityContext context,
RelationshipQuery<V> query) |
<V extends IdentityType> |
fetchQueryResults(IdentityContext context,
IdentityQuery<V> identityQuery) |
<V extends Relationship> |
fetchQueryResults(IdentityContext context,
RelationshipQuery<V> query) |
<P extends Partition> |
get(IdentityContext identityContext,
Class<P> partitionClass) |
<P extends Partition> |
get(IdentityContext identityContext,
Class<P> partitionClass,
String name) |
<V extends Serializable> |
getAttribute(IdentityContext context,
AttributedType attributedType,
String attributeName)
Returns the Attribute value with the specified name, for the specified IdentityType
|
String |
getConfigurationName(IdentityContext identityContext,
Partition partition) |
void |
loadAttributes(IdentityContext context,
AttributedType attributedType)
Loads all attributes for the given
AttributedType . |
<P extends Partition> |
lookupById(IdentityContext context,
Class<P> partitionClass,
String id) |
void |
remove(IdentityContext identityContext,
Partition partition) |
void |
removeAttribute(IdentityContext context,
AttributedType attributedType,
String attributeName)
Removes the specified Attribute value, for the specified IdentityType
|
protected void |
removeAttributedType(IdentityContext context,
AttributedType attributedType) |
void |
removeCredential(IdentityContext context,
Account account,
Class<? extends CredentialStorage> storageClass)
Removes all credentials stored by a certain
CredentialStorage associated
with the given Account . |
protected void |
removeCredentials(IdentityContext context,
Account account) |
protected void |
removeFromRelationships(IdentityContext context,
IdentityType identityType) |
<T extends CredentialStorage> |
retrieveCredentials(IdentityContext context,
Account account,
Class<T> storageClass)
Returns a list of all credential state of the specified
T , for the specified Account . |
<T extends CredentialStorage> |
retrieveCurrentCredential(IdentityContext context,
Account account,
Class<T> storageClass)
Returns the currently active credential state of the specified
T , for the specified Account . |
void |
setAttribute(IdentityContext context,
AttributedType attributedType,
Attribute<? extends Serializable> attribute)
Sets the specified Attribute value for the specified IdentityType
|
void |
setup(JDBCIdentityStoreConfiguration config)
Sets the configuration and context in which the IdentityStore will execute its operations
|
void |
storeCredential(IdentityContext context,
Account account,
CredentialStorage storage)
Stores the specified credential state.
|
void |
update(IdentityContext identityContext,
Partition partition) |
protected void |
updateAttributedType(IdentityContext context,
AttributedType attributedType) |
add, getConfig, remove, update, updateCredential, validateCredentials
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
add, getConfig, remove, update, updateCredential, validateCredentials
public void setup(JDBCIdentityStoreConfiguration config)
IdentityStore
setup
in interface IdentityStore<JDBCIdentityStoreConfiguration>
setup
in class AbstractIdentityStore<JDBCIdentityStoreConfiguration>
protected void removeFromRelationships(IdentityContext context, IdentityType identityType)
removeFromRelationships
in class AbstractIdentityStore<JDBCIdentityStoreConfiguration>
protected void removeCredentials(IdentityContext context, Account account)
removeCredentials
in class AbstractIdentityStore<JDBCIdentityStoreConfiguration>
protected void addAttributedType(IdentityContext context, AttributedType attributedType)
addAttributedType
in class AbstractIdentityStore<JDBCIdentityStoreConfiguration>
protected void updateAttributedType(IdentityContext context, AttributedType attributedType)
updateAttributedType
in class AbstractIdentityStore<JDBCIdentityStoreConfiguration>
protected void removeAttributedType(IdentityContext context, AttributedType attributedType)
removeAttributedType
in class AbstractIdentityStore<JDBCIdentityStoreConfiguration>
public void storeCredential(IdentityContext context, Account account, CredentialStorage storage)
CredentialStore
storeCredential
in interface CredentialStore<JDBCIdentityStoreConfiguration>
context
- The contextual invocation context.account
- The account which credentials should be removed.storage
- The credential storage instance to be stored.public <T extends CredentialStorage> T retrieveCurrentCredential(IdentityContext context, Account account, Class<T> storageClass)
CredentialStore
T
, for the specified Account
.retrieveCurrentCredential
in interface CredentialStore<JDBCIdentityStoreConfiguration>
context
- The contextual invocation context.account
- The account which credentials should be removed.storageClass
- The credential storage type specifying which credential types should be removed.public <T extends CredentialStorage> List<T> retrieveCredentials(IdentityContext context, Account account, Class<T> storageClass)
CredentialStore
T
, for the specified Account
.retrieveCredentials
in interface CredentialStore<JDBCIdentityStoreConfiguration>
context
- The contextual invocation context.account
- The account which credentials should be removed.storageClass
- The credential storage type specifying which credential types should be removed.public void removeCredential(IdentityContext context, Account account, Class<? extends CredentialStorage> storageClass)
CredentialStore
Removes all credentials stored by a certain CredentialStorage
associated
with the given Account
.
removeCredential
in interface CredentialStore<JDBCIdentityStoreConfiguration>
context
- The contextual invocation context.account
- The account which credentials should be removed.storageClass
- The credential storage type specifying which credential types should be removed.public <V extends IdentityType> List<V> fetchQueryResults(IdentityContext context, IdentityQuery<V> identityQuery)
fetchQueryResults
in interface IdentityStore<JDBCIdentityStoreConfiguration>
public <V extends IdentityType> int countQueryResults(IdentityContext context, IdentityQuery<V> identityQuery)
countQueryResults
in interface IdentityStore<JDBCIdentityStoreConfiguration>
countQueryResults
in class AbstractIdentityStore<JDBCIdentityStoreConfiguration>
public <V extends Relationship> List<V> fetchQueryResults(IdentityContext context, RelationshipQuery<V> query)
fetchQueryResults
in interface IdentityStore<JDBCIdentityStoreConfiguration>
public <V extends Relationship> int countQueryResults(IdentityContext context, RelationshipQuery<V> query)
countQueryResults
in interface IdentityStore<JDBCIdentityStoreConfiguration>
countQueryResults
in class AbstractIdentityStore<JDBCIdentityStoreConfiguration>
public void setAttribute(IdentityContext context, AttributedType attributedType, Attribute<? extends Serializable> attribute)
AttributeStore
setAttribute
in interface AttributeStore<JDBCIdentityStoreConfiguration>
public <V extends Serializable> Attribute<V> getAttribute(IdentityContext context, AttributedType attributedType, String attributeName)
AttributeStore
getAttribute
in interface AttributeStore<JDBCIdentityStoreConfiguration>
public void removeAttribute(IdentityContext context, AttributedType attributedType, String attributeName)
AttributeStore
removeAttribute
in interface AttributeStore<JDBCIdentityStoreConfiguration>
public void loadAttributes(IdentityContext context, AttributedType attributedType)
AttributeStore
AttributedType
.loadAttributes
in interface AttributeStore<JDBCIdentityStoreConfiguration>
public String getConfigurationName(IdentityContext identityContext, Partition partition)
getConfigurationName
in interface PartitionStore<JDBCIdentityStoreConfiguration>
public <P extends Partition> P get(IdentityContext identityContext, Class<P> partitionClass, String name)
get
in interface PartitionStore<JDBCIdentityStoreConfiguration>
public <P extends Partition> List<P> get(IdentityContext identityContext, Class<P> partitionClass)
get
in interface PartitionStore<JDBCIdentityStoreConfiguration>
public <P extends Partition> P lookupById(IdentityContext context, Class<P> partitionClass, String id)
lookupById
in interface PartitionStore<JDBCIdentityStoreConfiguration>
public void add(IdentityContext identityContext, Partition partition, String configurationName)
add
in interface PartitionStore<JDBCIdentityStoreConfiguration>
public void update(IdentityContext identityContext, Partition partition)
update
in interface PartitionStore<JDBCIdentityStoreConfiguration>
public void remove(IdentityContext identityContext, Partition partition)
remove
in interface PartitionStore<JDBCIdentityStoreConfiguration>
Copyright © 2015. All rights reserved.