@CredentialHandlers(value={org.picketlink.idm.credential.handler.PasswordCredentialHandler.class,org.picketlink.idm.credential.handler.X509CertificateCredentialHandler.class,org.picketlink.idm.credential.handler.DigestCredentialHandler.class,org.picketlink.idm.credential.handler.TOTPCredentialHandler.class})
public class JPAIdentityStore
extends AbstractIdentityStore<org.picketlink.idm.config.JPAIdentityStoreConfiguration>
implements org.picketlink.idm.spi.CredentialStore<org.picketlink.idm.config.JPAIdentityStoreConfiguration>, org.picketlink.idm.spi.PartitionStore<org.picketlink.idm.config.JPAIdentityStoreConfiguration>, org.picketlink.idm.spi.AttributeStore<org.picketlink.idm.config.JPAIdentityStoreConfiguration>
| Modifier and Type | Field and Description |
|---|---|
static String |
EVENT_CONTEXT_IDENTITY |
static String |
INVOCATION_CTX_ENTITY_MANAGER |
| Constructor and Description |
|---|
JPAIdentityStore() |
| Modifier and Type | Method and Description |
|---|---|
void |
add(org.picketlink.idm.spi.IdentityContext identityContext,
org.picketlink.idm.model.Partition partition,
String configurationName) |
void |
addAttributedType(org.picketlink.idm.spi.IdentityContext context,
org.picketlink.idm.model.AttributedType attributedType) |
<V extends org.picketlink.idm.model.IdentityType> |
countQueryResults(org.picketlink.idm.spi.IdentityContext context,
org.picketlink.idm.query.IdentityQuery<V> identityQuery) |
<V extends org.picketlink.idm.model.Relationship> |
countQueryResults(org.picketlink.idm.spi.IdentityContext context,
org.picketlink.idm.query.RelationshipQuery<V> query) |
<V extends org.picketlink.idm.model.IdentityType> |
fetchQueryResults(org.picketlink.idm.spi.IdentityContext context,
org.picketlink.idm.query.IdentityQuery<V> identityQuery) |
<V extends org.picketlink.idm.model.Relationship> |
fetchQueryResults(org.picketlink.idm.spi.IdentityContext context,
org.picketlink.idm.query.RelationshipQuery<V> query) |
<P extends org.picketlink.idm.model.Partition> |
get(org.picketlink.idm.spi.IdentityContext identityContext,
Class<P> partitionClass) |
<P extends org.picketlink.idm.model.Partition> |
get(org.picketlink.idm.spi.IdentityContext identityContext,
Class<P> partitionClass,
String name) |
<V extends Serializable> |
getAttribute(org.picketlink.idm.spi.IdentityContext context,
org.picketlink.idm.model.AttributedType attributedType,
String attributeName) |
String |
getConfigurationName(org.picketlink.idm.spi.IdentityContext identityContext,
org.picketlink.idm.model.Partition partition) |
List<EntityMapper> |
getEntityMappers() |
List<EntityMapper> |
getMapperFor(Class<? extends org.picketlink.idm.model.AttributedType> attributedType)
Returns all
EntityMapper instances used to map the given AttributedType. |
EntityMapper |
getMapperForEntity(Class<?> entityClass) |
Object |
getOwnerEntity(org.picketlink.idm.model.AttributedType attributedType,
org.picketlink.common.properties.Property ownerProperty,
javax.persistence.EntityManager entityManager) |
<P extends org.picketlink.idm.model.Partition> |
getPartitions(org.picketlink.idm.spi.IdentityContext identityContext,
Class<P> partitionClass,
String name) |
Object |
getRootEntity(org.picketlink.idm.model.AttributedType attributedType,
javax.persistence.EntityManager entityManager) |
EntityMapper |
getRootMapperForEntity(Class<?> entityClass) |
boolean |
isMappedType(Class mappedClass) |
void |
loadAttributes(org.picketlink.idm.spi.IdentityContext context,
org.picketlink.idm.model.AttributedType attributedType) |
<P extends org.picketlink.idm.model.Partition> |
lookupById(org.picketlink.idm.spi.IdentityContext context,
Class<P> partitionClass,
String id) |
void |
remove(org.picketlink.idm.spi.IdentityContext identityContext,
org.picketlink.idm.model.Partition partition) |
void |
removeAttribute(org.picketlink.idm.spi.IdentityContext context,
org.picketlink.idm.model.AttributedType attributedType,
String attributeName) |
void |
removeAttributedType(org.picketlink.idm.spi.IdentityContext context,
org.picketlink.idm.model.AttributedType attributedType) |
<T extends org.picketlink.idm.credential.storage.CredentialStorage> |
retrieveCredentials(org.picketlink.idm.spi.IdentityContext context,
org.picketlink.idm.model.Account account,
Class<T> storageClass) |
<T extends org.picketlink.idm.credential.storage.CredentialStorage> |
retrieveCurrentCredential(org.picketlink.idm.spi.IdentityContext context,
org.picketlink.idm.model.Account account,
Class<T> storageClass) |
void |
setAttribute(org.picketlink.idm.spi.IdentityContext context,
org.picketlink.idm.model.AttributedType attributedType,
org.picketlink.idm.model.Attribute<? extends Serializable> attribute) |
void |
setup(org.picketlink.idm.config.JPAIdentityStoreConfiguration config) |
void |
storeCredential(org.picketlink.idm.spi.IdentityContext context,
org.picketlink.idm.model.Account account,
org.picketlink.idm.credential.storage.CredentialStorage storage) |
void |
update(org.picketlink.idm.spi.IdentityContext identityContext,
org.picketlink.idm.model.Partition partition) |
void |
updateAttributedType(org.picketlink.idm.spi.IdentityContext context,
org.picketlink.idm.model.AttributedType attributedType) |
add, getConfig, remove, update, updateCredential, validateCredentialspublic static final String INVOCATION_CTX_ENTITY_MANAGER
public static final String EVENT_CONTEXT_IDENTITY
public void setup(org.picketlink.idm.config.JPAIdentityStoreConfiguration config)
setup in interface org.picketlink.idm.spi.IdentityStore<org.picketlink.idm.config.JPAIdentityStoreConfiguration>setup in class AbstractIdentityStore<org.picketlink.idm.config.JPAIdentityStoreConfiguration>public void addAttributedType(org.picketlink.idm.spi.IdentityContext context,
org.picketlink.idm.model.AttributedType attributedType)
addAttributedType in class AbstractIdentityStore<org.picketlink.idm.config.JPAIdentityStoreConfiguration>public void updateAttributedType(org.picketlink.idm.spi.IdentityContext context,
org.picketlink.idm.model.AttributedType attributedType)
updateAttributedType in class AbstractIdentityStore<org.picketlink.idm.config.JPAIdentityStoreConfiguration>public void removeAttributedType(org.picketlink.idm.spi.IdentityContext context,
org.picketlink.idm.model.AttributedType attributedType)
removeAttributedType in class AbstractIdentityStore<org.picketlink.idm.config.JPAIdentityStoreConfiguration>public void add(org.picketlink.idm.spi.IdentityContext identityContext,
org.picketlink.idm.model.Partition partition,
String configurationName)
add in interface org.picketlink.idm.spi.PartitionStore<org.picketlink.idm.config.JPAIdentityStoreConfiguration>public String getConfigurationName(org.picketlink.idm.spi.IdentityContext identityContext, org.picketlink.idm.model.Partition partition)
getConfigurationName in interface org.picketlink.idm.spi.PartitionStore<org.picketlink.idm.config.JPAIdentityStoreConfiguration>public <P extends org.picketlink.idm.model.Partition> P get(org.picketlink.idm.spi.IdentityContext identityContext,
Class<P> partitionClass,
String name)
get in interface org.picketlink.idm.spi.PartitionStore<org.picketlink.idm.config.JPAIdentityStoreConfiguration>public <P extends org.picketlink.idm.model.Partition> List<P> get(org.picketlink.idm.spi.IdentityContext identityContext, Class<P> partitionClass)
get in interface org.picketlink.idm.spi.PartitionStore<org.picketlink.idm.config.JPAIdentityStoreConfiguration>public <P extends org.picketlink.idm.model.Partition> List<P> getPartitions(org.picketlink.idm.spi.IdentityContext identityContext, Class<P> partitionClass, String name)
public <P extends org.picketlink.idm.model.Partition> P lookupById(org.picketlink.idm.spi.IdentityContext context,
Class<P> partitionClass,
String id)
lookupById in interface org.picketlink.idm.spi.PartitionStore<org.picketlink.idm.config.JPAIdentityStoreConfiguration>public void update(org.picketlink.idm.spi.IdentityContext identityContext,
org.picketlink.idm.model.Partition partition)
update in interface org.picketlink.idm.spi.PartitionStore<org.picketlink.idm.config.JPAIdentityStoreConfiguration>public void remove(org.picketlink.idm.spi.IdentityContext identityContext,
org.picketlink.idm.model.Partition partition)
remove in interface org.picketlink.idm.spi.PartitionStore<org.picketlink.idm.config.JPAIdentityStoreConfiguration>public <V extends Serializable> org.picketlink.idm.model.Attribute<V> getAttribute(org.picketlink.idm.spi.IdentityContext context, org.picketlink.idm.model.AttributedType attributedType, String attributeName)
getAttribute in interface org.picketlink.idm.spi.AttributeStore<org.picketlink.idm.config.JPAIdentityStoreConfiguration>public void loadAttributes(org.picketlink.idm.spi.IdentityContext context,
org.picketlink.idm.model.AttributedType attributedType)
loadAttributes in interface org.picketlink.idm.spi.AttributeStore<org.picketlink.idm.config.JPAIdentityStoreConfiguration>public void removeAttribute(org.picketlink.idm.spi.IdentityContext context,
org.picketlink.idm.model.AttributedType attributedType,
String attributeName)
removeAttribute in interface org.picketlink.idm.spi.AttributeStore<org.picketlink.idm.config.JPAIdentityStoreConfiguration>public <V extends org.picketlink.idm.model.IdentityType> List<V> fetchQueryResults(org.picketlink.idm.spi.IdentityContext context, org.picketlink.idm.query.IdentityQuery<V> identityQuery)
fetchQueryResults in interface org.picketlink.idm.spi.IdentityStore<org.picketlink.idm.config.JPAIdentityStoreConfiguration>public <V extends org.picketlink.idm.model.IdentityType> int countQueryResults(org.picketlink.idm.spi.IdentityContext context,
org.picketlink.idm.query.IdentityQuery<V> identityQuery)
countQueryResults in interface org.picketlink.idm.spi.IdentityStore<org.picketlink.idm.config.JPAIdentityStoreConfiguration>public <V extends org.picketlink.idm.model.Relationship> List<V> fetchQueryResults(org.picketlink.idm.spi.IdentityContext context, org.picketlink.idm.query.RelationshipQuery<V> query)
fetchQueryResults in interface org.picketlink.idm.spi.IdentityStore<org.picketlink.idm.config.JPAIdentityStoreConfiguration>public void setAttribute(org.picketlink.idm.spi.IdentityContext context,
org.picketlink.idm.model.AttributedType attributedType,
org.picketlink.idm.model.Attribute<? extends Serializable> attribute)
setAttribute in interface org.picketlink.idm.spi.AttributeStore<org.picketlink.idm.config.JPAIdentityStoreConfiguration>public void storeCredential(org.picketlink.idm.spi.IdentityContext context,
org.picketlink.idm.model.Account account,
org.picketlink.idm.credential.storage.CredentialStorage storage)
storeCredential in interface org.picketlink.idm.spi.CredentialStore<org.picketlink.idm.config.JPAIdentityStoreConfiguration>public <T extends org.picketlink.idm.credential.storage.CredentialStorage> T retrieveCurrentCredential(org.picketlink.idm.spi.IdentityContext context,
org.picketlink.idm.model.Account account,
Class<T> storageClass)
retrieveCurrentCredential in interface org.picketlink.idm.spi.CredentialStore<org.picketlink.idm.config.JPAIdentityStoreConfiguration>public <T extends org.picketlink.idm.credential.storage.CredentialStorage> List<T> retrieveCredentials(org.picketlink.idm.spi.IdentityContext context, org.picketlink.idm.model.Account account, Class<T> storageClass)
retrieveCredentials in interface org.picketlink.idm.spi.CredentialStore<org.picketlink.idm.config.JPAIdentityStoreConfiguration>public <V extends org.picketlink.idm.model.Relationship> int countQueryResults(org.picketlink.idm.spi.IdentityContext context,
org.picketlink.idm.query.RelationshipQuery<V> query)
countQueryResults in interface org.picketlink.idm.spi.IdentityStore<org.picketlink.idm.config.JPAIdentityStoreConfiguration>public Object getOwnerEntity(org.picketlink.idm.model.AttributedType attributedType, org.picketlink.common.properties.Property ownerProperty, javax.persistence.EntityManager entityManager)
public List<EntityMapper> getMapperFor(Class<? extends org.picketlink.idm.model.AttributedType> attributedType)
Returns all EntityMapper instances used to map the given AttributedType. Only mappers for
IdentityManaged annotated entity classes are considered, what means that this method can only be used when
trying to persist or populate @{link AttributedType} instances.
attributedType - public EntityMapper getRootMapperForEntity(Class<?> entityClass)
public EntityMapper getMapperForEntity(Class<?> entityClass)
public List<EntityMapper> getEntityMappers()
public boolean isMappedType(Class mappedClass)
public Object getRootEntity(org.picketlink.idm.model.AttributedType attributedType, javax.persistence.EntityManager entityManager)
Copyright © 2013. All Rights Reserved.