org.jboss.seam.security.management.picketlink
Class JpaIdentityStore
java.lang.Object
org.jboss.seam.security.management.picketlink.JpaIdentityStore
- All Implemented Interfaces:
- Serializable, org.picketlink.idm.spi.store.AttributeStore, org.picketlink.idm.spi.store.IdentityStore, org.picketlink.idm.spi.store.IdentityStoreSessionFactory
public class JpaIdentityStore
- extends Object
- implements org.picketlink.idm.spi.store.IdentityStore, Serializable
IdentityStore implementation that allows identity related data to be
persisted in a database via JPA
- Author:
- Shane Bryzak
- See Also:
- Serialized Form
Method Summary |
void |
addAttributes(org.picketlink.idm.spi.store.IdentityStoreInvocationContext ctx,
org.picketlink.idm.spi.model.IdentityObject identityObject,
org.picketlink.idm.spi.model.IdentityObjectAttribute[] attributes)
|
void |
bootstrap(org.picketlink.idm.spi.configuration.IdentityStoreConfigurationContext configurationContext)
|
protected void |
configureAttributes()
|
protected void |
configureCredentials()
|
protected void |
configureIdentityId()
|
protected void |
configureIdentityName()
|
protected void |
configureIdentityType()
|
protected void |
configureRelationships()
|
protected void |
configureRoleTypeName()
|
org.picketlink.idm.spi.model.IdentityObject |
createIdentityObject(org.picketlink.idm.spi.store.IdentityStoreInvocationContext invocationCtx,
String name,
org.picketlink.idm.spi.model.IdentityObjectType identityObjectType)
|
org.picketlink.idm.spi.model.IdentityObject |
createIdentityObject(org.picketlink.idm.spi.store.IdentityStoreInvocationContext ctx,
String name,
org.picketlink.idm.spi.model.IdentityObjectType identityObjectType,
Map<String,String[]> attributes)
|
org.picketlink.idm.spi.store.IdentityStoreSession |
createIdentityStoreSession()
|
org.picketlink.idm.spi.store.IdentityStoreSession |
createIdentityStoreSession(Map<String,Object> sessionOptions)
|
org.picketlink.idm.spi.model.IdentityObjectRelationship |
createRelationship(org.picketlink.idm.spi.store.IdentityStoreInvocationContext invocationCtx,
org.picketlink.idm.spi.model.IdentityObject fromIdentity,
org.picketlink.idm.spi.model.IdentityObject toIdentity,
org.picketlink.idm.spi.model.IdentityObjectRelationshipType relationshipType,
String relationshipName,
boolean createNames)
|
String |
createRelationshipName(org.picketlink.idm.spi.store.IdentityStoreInvocationContext ctx,
String name)
|
Collection<org.picketlink.idm.spi.model.IdentityObject> |
findIdentityObject(org.picketlink.idm.spi.store.IdentityStoreInvocationContext invocationCxt,
org.picketlink.idm.spi.model.IdentityObject identity,
org.picketlink.idm.spi.model.IdentityObjectRelationshipType relationshipType,
boolean parent,
org.picketlink.idm.spi.search.IdentityObjectSearchCriteria criteria)
|
Collection<org.picketlink.idm.spi.model.IdentityObject> |
findIdentityObject(org.picketlink.idm.spi.store.IdentityStoreInvocationContext ctx,
org.picketlink.idm.spi.model.IdentityObjectType identityType,
org.picketlink.idm.spi.search.IdentityObjectSearchCriteria searchCriteria)
|
org.picketlink.idm.spi.model.IdentityObject |
findIdentityObject(org.picketlink.idm.spi.store.IdentityStoreInvocationContext invocationContext,
String id)
|
org.picketlink.idm.spi.model.IdentityObject |
findIdentityObject(org.picketlink.idm.spi.store.IdentityStoreInvocationContext invocationContext,
String name,
org.picketlink.idm.spi.model.IdentityObjectType identityObjectType)
|
org.picketlink.idm.spi.model.IdentityObject |
findIdentityObjectByUniqueAttribute(org.picketlink.idm.spi.store.IdentityStoreInvocationContext invocationCtx,
org.picketlink.idm.spi.model.IdentityObjectType identityObjectType,
org.picketlink.idm.spi.model.IdentityObjectAttribute attribute)
|
protected Property<Object> |
findNamedProperty(Class<?> targetClass,
String... allowedNames)
|
org.picketlink.idm.spi.model.IdentityObjectAttribute |
getAttribute(org.picketlink.idm.spi.store.IdentityStoreInvocationContext ctx,
org.picketlink.idm.spi.model.IdentityObject identity,
String name)
|
Map<String,org.picketlink.idm.spi.model.IdentityObjectAttribute> |
getAttributes(org.picketlink.idm.spi.store.IdentityStoreInvocationContext ctx,
org.picketlink.idm.spi.model.IdentityObject identityObject)
|
Map<String,org.picketlink.idm.spi.configuration.metadata.IdentityObjectAttributeMetaData> |
getAttributesMetaData(org.picketlink.idm.spi.store.IdentityStoreInvocationContext invocationContext,
org.picketlink.idm.spi.model.IdentityObjectType identityType)
|
EntityManager |
getEntityManager(org.picketlink.idm.spi.store.IdentityStoreInvocationContext invocationContext)
|
String |
getGroupIdentityType()
|
String |
getId()
|
int |
getIdentityObjectsCount(org.picketlink.idm.spi.store.IdentityStoreInvocationContext invocationCtx,
org.picketlink.idm.spi.model.IdentityObjectType identityType)
|
Map<String,String> |
getRelationshipNameProperties(org.picketlink.idm.spi.store.IdentityStoreInvocationContext ctx,
String name)
|
Set<String> |
getRelationshipNames(org.picketlink.idm.spi.store.IdentityStoreInvocationContext ctx,
org.picketlink.idm.spi.model.IdentityObject identity,
org.picketlink.idm.spi.search.IdentityObjectSearchCriteria searchCriteria)
|
Set<String> |
getRelationshipNames(org.picketlink.idm.spi.store.IdentityStoreInvocationContext ctx,
org.picketlink.idm.spi.search.IdentityObjectSearchCriteria searchCriteria)
|
Map<String,String> |
getRelationshipProperties(org.picketlink.idm.spi.store.IdentityStoreInvocationContext ctx,
org.picketlink.idm.spi.model.IdentityObjectRelationship relationship)
|
String |
getRelationshipTypeMembership()
|
String |
getRelationshipTypeRole()
|
String |
getRoleIdentityType()
|
Set<String> |
getSupportedAttributeNames(org.picketlink.idm.spi.store.IdentityStoreInvocationContext invocationContext,
org.picketlink.idm.spi.model.IdentityObjectType identityType)
|
org.picketlink.idm.spi.store.FeaturesMetaData |
getSupportedFeatures()
|
String |
getUserIdentityType()
|
protected Object |
lookupCredentialTypeEntity(String name,
EntityManager em)
|
protected Object |
lookupIdentity(org.picketlink.idm.spi.model.IdentityObject obj,
EntityManager em)
|
protected Object |
lookupIdentityType(String identityType,
EntityManager em)
|
protected Object |
lookupRelationshipType(org.picketlink.idm.spi.model.IdentityObjectRelationshipType relationshipType,
EntityManager em)
|
void |
removeAttributes(org.picketlink.idm.spi.store.IdentityStoreInvocationContext ctx,
org.picketlink.idm.spi.model.IdentityObject identityObject,
String[] attributeNames)
|
void |
removeIdentityObject(org.picketlink.idm.spi.store.IdentityStoreInvocationContext ctx,
org.picketlink.idm.spi.model.IdentityObject identity)
|
void |
removeRelationship(org.picketlink.idm.spi.store.IdentityStoreInvocationContext ctx,
org.picketlink.idm.spi.model.IdentityObject fromIdentity,
org.picketlink.idm.spi.model.IdentityObject toIdentity,
org.picketlink.idm.spi.model.IdentityObjectRelationshipType relationshipType,
String relationshipName)
|
String |
removeRelationshipName(org.picketlink.idm.spi.store.IdentityStoreInvocationContext ctx,
String name)
|
void |
removeRelationshipNameProperties(org.picketlink.idm.spi.store.IdentityStoreInvocationContext ctx,
String name,
Set<String> properties)
|
void |
removeRelationshipProperties(org.picketlink.idm.spi.store.IdentityStoreInvocationContext ctx,
org.picketlink.idm.spi.model.IdentityObjectRelationship relationship,
Set<String> properties)
|
void |
removeRelationships(org.picketlink.idm.spi.store.IdentityStoreInvocationContext ctx,
org.picketlink.idm.spi.model.IdentityObject identity1,
org.picketlink.idm.spi.model.IdentityObject identity2,
boolean named)
|
Set<org.picketlink.idm.spi.model.IdentityObjectRelationship> |
resolveRelationships(org.picketlink.idm.spi.store.IdentityStoreInvocationContext ctx,
org.picketlink.idm.spi.model.IdentityObject fromIdentity,
org.picketlink.idm.spi.model.IdentityObject toIdentity,
org.picketlink.idm.spi.model.IdentityObjectRelationshipType relationshipType)
|
Set<org.picketlink.idm.spi.model.IdentityObjectRelationship> |
resolveRelationships(org.picketlink.idm.spi.store.IdentityStoreInvocationContext ctx,
org.picketlink.idm.spi.model.IdentityObject identity,
org.picketlink.idm.spi.model.IdentityObjectRelationshipType relationshipType,
boolean parent,
boolean named,
String name)
|
void |
setGroupIdentityType(String groupIdentityType)
|
void |
setRelationshipNameProperties(org.picketlink.idm.spi.store.IdentityStoreInvocationContext ctx,
String name,
Map<String,String> properties)
|
void |
setRelationshipProperties(org.picketlink.idm.spi.store.IdentityStoreInvocationContext ctx,
org.picketlink.idm.spi.model.IdentityObjectRelationship relationship,
Map<String,String> properties)
|
void |
setRelationshipTypeMembership(String relationshipTypeMembership)
|
void |
setRelationshipTypeRole(String relationshipTypeRole)
|
void |
setRoleIdentityType(String roleIdentityType)
|
void |
setUserIdentityType(String userIdentityType)
|
void |
updateAttributes(org.picketlink.idm.spi.store.IdentityStoreInvocationContext ctx,
org.picketlink.idm.spi.model.IdentityObject identityObject,
org.picketlink.idm.spi.model.IdentityObjectAttribute[] attributes)
|
void |
updateCredential(org.picketlink.idm.spi.store.IdentityStoreInvocationContext ctx,
org.picketlink.idm.spi.model.IdentityObject identityObject,
org.picketlink.idm.spi.model.IdentityObjectCredential credential)
|
boolean |
validateCredential(org.picketlink.idm.spi.store.IdentityStoreInvocationContext ctx,
org.picketlink.idm.spi.model.IdentityObject identityObject,
org.picketlink.idm.spi.model.IdentityObjectCredential credential)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OPTION_IDENTITY_CLASS_NAME
public static final String OPTION_IDENTITY_CLASS_NAME
- See Also:
- Constant Field Values
OPTION_CREDENTIAL_CLASS_NAME
public static final String OPTION_CREDENTIAL_CLASS_NAME
- See Also:
- Constant Field Values
OPTION_RELATIONSHIP_CLASS_NAME
public static final String OPTION_RELATIONSHIP_CLASS_NAME
- See Also:
- Constant Field Values
OPTION_ROLE_TYPE_CLASS_NAME
public static final String OPTION_ROLE_TYPE_CLASS_NAME
- See Also:
- Constant Field Values
OPTION_ATTRIBUTE_CLASS_NAME
public static final String OPTION_ATTRIBUTE_CLASS_NAME
- See Also:
- Constant Field Values
JpaIdentityStore
public JpaIdentityStore(String id)
bootstrap
public void bootstrap(org.picketlink.idm.spi.configuration.IdentityStoreConfigurationContext configurationContext)
throws org.picketlink.idm.common.exception.IdentityException
- Specified by:
bootstrap
in interface org.picketlink.idm.spi.store.IdentityStore
- Throws:
org.picketlink.idm.common.exception.IdentityException
configureIdentityId
protected void configureIdentityId()
throws org.picketlink.idm.common.exception.IdentityException
- Throws:
org.picketlink.idm.common.exception.IdentityException
configureIdentityName
protected void configureIdentityName()
throws org.picketlink.idm.common.exception.IdentityException
- Throws:
org.picketlink.idm.common.exception.IdentityException
configureIdentityType
protected void configureIdentityType()
throws org.picketlink.idm.common.exception.IdentityException
- Throws:
org.picketlink.idm.common.exception.IdentityException
findNamedProperty
protected Property<Object> findNamedProperty(Class<?> targetClass,
String... allowedNames)
configureCredentials
protected void configureCredentials()
throws org.picketlink.idm.common.exception.IdentityException
- Throws:
org.picketlink.idm.common.exception.IdentityException
configureRelationships
protected void configureRelationships()
throws org.picketlink.idm.common.exception.IdentityException
- Throws:
org.picketlink.idm.common.exception.IdentityException
configureAttributes
protected void configureAttributes()
throws org.picketlink.idm.common.exception.IdentityException
- Throws:
org.picketlink.idm.common.exception.IdentityException
configureRoleTypeName
protected void configureRoleTypeName()
getUserIdentityType
public String getUserIdentityType()
setUserIdentityType
public void setUserIdentityType(String userIdentityType)
getRoleIdentityType
public String getRoleIdentityType()
setRoleIdentityType
public void setRoleIdentityType(String roleIdentityType)
getGroupIdentityType
public String getGroupIdentityType()
setGroupIdentityType
public void setGroupIdentityType(String groupIdentityType)
getRelationshipTypeMembership
public String getRelationshipTypeMembership()
setRelationshipTypeMembership
public void setRelationshipTypeMembership(String relationshipTypeMembership)
getRelationshipTypeRole
public String getRelationshipTypeRole()
setRelationshipTypeRole
public void setRelationshipTypeRole(String relationshipTypeRole)
createIdentityStoreSession
public org.picketlink.idm.spi.store.IdentityStoreSession createIdentityStoreSession(Map<String,Object> sessionOptions)
throws org.picketlink.idm.common.exception.IdentityException
- Specified by:
createIdentityStoreSession
in interface org.picketlink.idm.spi.store.IdentityStoreSessionFactory
- Throws:
org.picketlink.idm.common.exception.IdentityException
createIdentityObject
public org.picketlink.idm.spi.model.IdentityObject createIdentityObject(org.picketlink.idm.spi.store.IdentityStoreInvocationContext invocationCtx,
String name,
org.picketlink.idm.spi.model.IdentityObjectType identityObjectType)
throws org.picketlink.idm.common.exception.IdentityException
- Specified by:
createIdentityObject
in interface org.picketlink.idm.spi.store.IdentityStore
- Throws:
org.picketlink.idm.common.exception.IdentityException
lookupIdentityType
protected Object lookupIdentityType(String identityType,
EntityManager em)
createIdentityObject
public org.picketlink.idm.spi.model.IdentityObject createIdentityObject(org.picketlink.idm.spi.store.IdentityStoreInvocationContext ctx,
String name,
org.picketlink.idm.spi.model.IdentityObjectType identityObjectType,
Map<String,String[]> attributes)
throws org.picketlink.idm.common.exception.IdentityException
- Specified by:
createIdentityObject
in interface org.picketlink.idm.spi.store.IdentityStore
- Throws:
org.picketlink.idm.common.exception.IdentityException
createRelationship
public org.picketlink.idm.spi.model.IdentityObjectRelationship createRelationship(org.picketlink.idm.spi.store.IdentityStoreInvocationContext invocationCtx,
org.picketlink.idm.spi.model.IdentityObject fromIdentity,
org.picketlink.idm.spi.model.IdentityObject toIdentity,
org.picketlink.idm.spi.model.IdentityObjectRelationshipType relationshipType,
String relationshipName,
boolean createNames)
throws org.picketlink.idm.common.exception.IdentityException
- Specified by:
createRelationship
in interface org.picketlink.idm.spi.store.IdentityStore
- Throws:
org.picketlink.idm.common.exception.IdentityException
lookupIdentity
protected Object lookupIdentity(org.picketlink.idm.spi.model.IdentityObject obj,
EntityManager em)
lookupCredentialTypeEntity
protected Object lookupCredentialTypeEntity(String name,
EntityManager em)
lookupRelationshipType
protected Object lookupRelationshipType(org.picketlink.idm.spi.model.IdentityObjectRelationshipType relationshipType,
EntityManager em)
createRelationshipName
public String createRelationshipName(org.picketlink.idm.spi.store.IdentityStoreInvocationContext ctx,
String name)
throws org.picketlink.idm.common.exception.IdentityException,
org.picketlink.idm.spi.exception.OperationNotSupportedException
- Specified by:
createRelationshipName
in interface org.picketlink.idm.spi.store.IdentityStore
- Throws:
org.picketlink.idm.common.exception.IdentityException
org.picketlink.idm.spi.exception.OperationNotSupportedException
getEntityManager
public EntityManager getEntityManager(org.picketlink.idm.spi.store.IdentityStoreInvocationContext invocationContext)
findIdentityObject
public org.picketlink.idm.spi.model.IdentityObject findIdentityObject(org.picketlink.idm.spi.store.IdentityStoreInvocationContext invocationContext,
String id)
throws org.picketlink.idm.common.exception.IdentityException
- Specified by:
findIdentityObject
in interface org.picketlink.idm.spi.store.IdentityStore
- Throws:
org.picketlink.idm.common.exception.IdentityException
findIdentityObject
public org.picketlink.idm.spi.model.IdentityObject findIdentityObject(org.picketlink.idm.spi.store.IdentityStoreInvocationContext invocationContext,
String name,
org.picketlink.idm.spi.model.IdentityObjectType identityObjectType)
throws org.picketlink.idm.common.exception.IdentityException
- Specified by:
findIdentityObject
in interface org.picketlink.idm.spi.store.IdentityStore
- Throws:
org.picketlink.idm.common.exception.IdentityException
findIdentityObject
public Collection<org.picketlink.idm.spi.model.IdentityObject> findIdentityObject(org.picketlink.idm.spi.store.IdentityStoreInvocationContext ctx,
org.picketlink.idm.spi.model.IdentityObjectType identityType,
org.picketlink.idm.spi.search.IdentityObjectSearchCriteria searchCriteria)
throws org.picketlink.idm.common.exception.IdentityException
- Specified by:
findIdentityObject
in interface org.picketlink.idm.spi.store.IdentityStore
- Throws:
org.picketlink.idm.common.exception.IdentityException
getId
public String getId()
- Specified by:
getId
in interface org.picketlink.idm.spi.store.AttributeStore
- Specified by:
getId
in interface org.picketlink.idm.spi.store.IdentityStore
getRelationshipNames
public Set<String> getRelationshipNames(org.picketlink.idm.spi.store.IdentityStoreInvocationContext ctx,
org.picketlink.idm.spi.search.IdentityObjectSearchCriteria searchCriteria)
throws org.picketlink.idm.common.exception.IdentityException,
org.picketlink.idm.spi.exception.OperationNotSupportedException
- Specified by:
getRelationshipNames
in interface org.picketlink.idm.spi.store.IdentityStore
- Throws:
org.picketlink.idm.common.exception.IdentityException
org.picketlink.idm.spi.exception.OperationNotSupportedException
getRelationshipNames
public Set<String> getRelationshipNames(org.picketlink.idm.spi.store.IdentityStoreInvocationContext ctx,
org.picketlink.idm.spi.model.IdentityObject identity,
org.picketlink.idm.spi.search.IdentityObjectSearchCriteria searchCriteria)
throws org.picketlink.idm.common.exception.IdentityException,
org.picketlink.idm.spi.exception.OperationNotSupportedException
- Specified by:
getRelationshipNames
in interface org.picketlink.idm.spi.store.IdentityStore
- Throws:
org.picketlink.idm.common.exception.IdentityException
org.picketlink.idm.spi.exception.OperationNotSupportedException
getRelationshipProperties
public Map<String,String> getRelationshipProperties(org.picketlink.idm.spi.store.IdentityStoreInvocationContext ctx,
org.picketlink.idm.spi.model.IdentityObjectRelationship relationship)
throws org.picketlink.idm.common.exception.IdentityException,
org.picketlink.idm.spi.exception.OperationNotSupportedException
- Specified by:
getRelationshipProperties
in interface org.picketlink.idm.spi.store.IdentityStore
- Throws:
org.picketlink.idm.common.exception.IdentityException
org.picketlink.idm.spi.exception.OperationNotSupportedException
getSupportedFeatures
public org.picketlink.idm.spi.store.FeaturesMetaData getSupportedFeatures()
- Specified by:
getSupportedFeatures
in interface org.picketlink.idm.spi.store.IdentityStore
removeIdentityObject
public void removeIdentityObject(org.picketlink.idm.spi.store.IdentityStoreInvocationContext ctx,
org.picketlink.idm.spi.model.IdentityObject identity)
throws org.picketlink.idm.common.exception.IdentityException
- Specified by:
removeIdentityObject
in interface org.picketlink.idm.spi.store.IdentityStore
- Throws:
org.picketlink.idm.common.exception.IdentityException
removeRelationship
public void removeRelationship(org.picketlink.idm.spi.store.IdentityStoreInvocationContext ctx,
org.picketlink.idm.spi.model.IdentityObject fromIdentity,
org.picketlink.idm.spi.model.IdentityObject toIdentity,
org.picketlink.idm.spi.model.IdentityObjectRelationshipType relationshipType,
String relationshipName)
throws org.picketlink.idm.common.exception.IdentityException
- Specified by:
removeRelationship
in interface org.picketlink.idm.spi.store.IdentityStore
- Throws:
org.picketlink.idm.common.exception.IdentityException
removeRelationshipName
public String removeRelationshipName(org.picketlink.idm.spi.store.IdentityStoreInvocationContext ctx,
String name)
throws org.picketlink.idm.common.exception.IdentityException,
org.picketlink.idm.spi.exception.OperationNotSupportedException
- Specified by:
removeRelationshipName
in interface org.picketlink.idm.spi.store.IdentityStore
- Throws:
org.picketlink.idm.common.exception.IdentityException
org.picketlink.idm.spi.exception.OperationNotSupportedException
removeRelationships
public void removeRelationships(org.picketlink.idm.spi.store.IdentityStoreInvocationContext ctx,
org.picketlink.idm.spi.model.IdentityObject identity1,
org.picketlink.idm.spi.model.IdentityObject identity2,
boolean named)
throws org.picketlink.idm.common.exception.IdentityException
- Specified by:
removeRelationships
in interface org.picketlink.idm.spi.store.IdentityStore
- Throws:
org.picketlink.idm.common.exception.IdentityException
resolveRelationships
public Set<org.picketlink.idm.spi.model.IdentityObjectRelationship> resolveRelationships(org.picketlink.idm.spi.store.IdentityStoreInvocationContext ctx,
org.picketlink.idm.spi.model.IdentityObject fromIdentity,
org.picketlink.idm.spi.model.IdentityObject toIdentity,
org.picketlink.idm.spi.model.IdentityObjectRelationshipType relationshipType)
throws org.picketlink.idm.common.exception.IdentityException
- Specified by:
resolveRelationships
in interface org.picketlink.idm.spi.store.IdentityStore
- Throws:
org.picketlink.idm.common.exception.IdentityException
resolveRelationships
public Set<org.picketlink.idm.spi.model.IdentityObjectRelationship> resolveRelationships(org.picketlink.idm.spi.store.IdentityStoreInvocationContext ctx,
org.picketlink.idm.spi.model.IdentityObject identity,
org.picketlink.idm.spi.model.IdentityObjectRelationshipType relationshipType,
boolean parent,
boolean named,
String name)
throws org.picketlink.idm.common.exception.IdentityException
- Specified by:
resolveRelationships
in interface org.picketlink.idm.spi.store.IdentityStore
- Throws:
org.picketlink.idm.common.exception.IdentityException
updateCredential
public void updateCredential(org.picketlink.idm.spi.store.IdentityStoreInvocationContext ctx,
org.picketlink.idm.spi.model.IdentityObject identityObject,
org.picketlink.idm.spi.model.IdentityObjectCredential credential)
throws org.picketlink.idm.common.exception.IdentityException
- Specified by:
updateCredential
in interface org.picketlink.idm.spi.store.IdentityStore
- Throws:
org.picketlink.idm.common.exception.IdentityException
validateCredential
public boolean validateCredential(org.picketlink.idm.spi.store.IdentityStoreInvocationContext ctx,
org.picketlink.idm.spi.model.IdentityObject identityObject,
org.picketlink.idm.spi.model.IdentityObjectCredential credential)
throws org.picketlink.idm.common.exception.IdentityException
- Specified by:
validateCredential
in interface org.picketlink.idm.spi.store.IdentityStore
- Throws:
org.picketlink.idm.common.exception.IdentityException
addAttributes
public void addAttributes(org.picketlink.idm.spi.store.IdentityStoreInvocationContext ctx,
org.picketlink.idm.spi.model.IdentityObject identityObject,
org.picketlink.idm.spi.model.IdentityObjectAttribute[] attributes)
throws org.picketlink.idm.common.exception.IdentityException
- Specified by:
addAttributes
in interface org.picketlink.idm.spi.store.AttributeStore
- Throws:
org.picketlink.idm.common.exception.IdentityException
getAttribute
public org.picketlink.idm.spi.model.IdentityObjectAttribute getAttribute(org.picketlink.idm.spi.store.IdentityStoreInvocationContext ctx,
org.picketlink.idm.spi.model.IdentityObject identity,
String name)
throws org.picketlink.idm.common.exception.IdentityException
- Specified by:
getAttribute
in interface org.picketlink.idm.spi.store.AttributeStore
- Throws:
org.picketlink.idm.common.exception.IdentityException
getAttributes
public Map<String,org.picketlink.idm.spi.model.IdentityObjectAttribute> getAttributes(org.picketlink.idm.spi.store.IdentityStoreInvocationContext ctx,
org.picketlink.idm.spi.model.IdentityObject identityObject)
throws org.picketlink.idm.common.exception.IdentityException
- Specified by:
getAttributes
in interface org.picketlink.idm.spi.store.AttributeStore
- Throws:
org.picketlink.idm.common.exception.IdentityException
removeAttributes
public void removeAttributes(org.picketlink.idm.spi.store.IdentityStoreInvocationContext ctx,
org.picketlink.idm.spi.model.IdentityObject identityObject,
String[] attributeNames)
throws org.picketlink.idm.common.exception.IdentityException
- Specified by:
removeAttributes
in interface org.picketlink.idm.spi.store.AttributeStore
- Throws:
org.picketlink.idm.common.exception.IdentityException
updateAttributes
public void updateAttributes(org.picketlink.idm.spi.store.IdentityStoreInvocationContext ctx,
org.picketlink.idm.spi.model.IdentityObject identityObject,
org.picketlink.idm.spi.model.IdentityObjectAttribute[] attributes)
throws org.picketlink.idm.common.exception.IdentityException
- Specified by:
updateAttributes
in interface org.picketlink.idm.spi.store.AttributeStore
- Throws:
org.picketlink.idm.common.exception.IdentityException
createIdentityStoreSession
public org.picketlink.idm.spi.store.IdentityStoreSession createIdentityStoreSession()
throws org.picketlink.idm.common.exception.IdentityException
- Specified by:
createIdentityStoreSession
in interface org.picketlink.idm.spi.store.IdentityStoreSessionFactory
- Throws:
org.picketlink.idm.common.exception.IdentityException
findIdentityObject
public Collection<org.picketlink.idm.spi.model.IdentityObject> findIdentityObject(org.picketlink.idm.spi.store.IdentityStoreInvocationContext invocationCxt,
org.picketlink.idm.spi.model.IdentityObject identity,
org.picketlink.idm.spi.model.IdentityObjectRelationshipType relationshipType,
boolean parent,
org.picketlink.idm.spi.search.IdentityObjectSearchCriteria criteria)
throws org.picketlink.idm.common.exception.IdentityException
- Specified by:
findIdentityObject
in interface org.picketlink.idm.spi.store.IdentityStore
- Throws:
org.picketlink.idm.common.exception.IdentityException
findIdentityObjectByUniqueAttribute
public org.picketlink.idm.spi.model.IdentityObject findIdentityObjectByUniqueAttribute(org.picketlink.idm.spi.store.IdentityStoreInvocationContext invocationCtx,
org.picketlink.idm.spi.model.IdentityObjectType identityObjectType,
org.picketlink.idm.spi.model.IdentityObjectAttribute attribute)
throws org.picketlink.idm.common.exception.IdentityException
- Specified by:
findIdentityObjectByUniqueAttribute
in interface org.picketlink.idm.spi.store.AttributeStore
- Throws:
org.picketlink.idm.common.exception.IdentityException
getAttributesMetaData
public Map<String,org.picketlink.idm.spi.configuration.metadata.IdentityObjectAttributeMetaData> getAttributesMetaData(org.picketlink.idm.spi.store.IdentityStoreInvocationContext invocationContext,
org.picketlink.idm.spi.model.IdentityObjectType identityType)
- Specified by:
getAttributesMetaData
in interface org.picketlink.idm.spi.store.AttributeStore
getSupportedAttributeNames
public Set<String> getSupportedAttributeNames(org.picketlink.idm.spi.store.IdentityStoreInvocationContext invocationContext,
org.picketlink.idm.spi.model.IdentityObjectType identityType)
throws org.picketlink.idm.common.exception.IdentityException
- Specified by:
getSupportedAttributeNames
in interface org.picketlink.idm.spi.store.AttributeStore
- Throws:
org.picketlink.idm.common.exception.IdentityException
getIdentityObjectsCount
public int getIdentityObjectsCount(org.picketlink.idm.spi.store.IdentityStoreInvocationContext invocationCtx,
org.picketlink.idm.spi.model.IdentityObjectType identityType)
throws org.picketlink.idm.common.exception.IdentityException
- Specified by:
getIdentityObjectsCount
in interface org.picketlink.idm.spi.store.IdentityStore
- Throws:
org.picketlink.idm.common.exception.IdentityException
getRelationshipNameProperties
public Map<String,String> getRelationshipNameProperties(org.picketlink.idm.spi.store.IdentityStoreInvocationContext ctx,
String name)
throws org.picketlink.idm.common.exception.IdentityException,
org.picketlink.idm.spi.exception.OperationNotSupportedException
- Specified by:
getRelationshipNameProperties
in interface org.picketlink.idm.spi.store.IdentityStore
- Throws:
org.picketlink.idm.common.exception.IdentityException
org.picketlink.idm.spi.exception.OperationNotSupportedException
setRelationshipNameProperties
public void setRelationshipNameProperties(org.picketlink.idm.spi.store.IdentityStoreInvocationContext ctx,
String name,
Map<String,String> properties)
throws org.picketlink.idm.common.exception.IdentityException,
org.picketlink.idm.spi.exception.OperationNotSupportedException
- Specified by:
setRelationshipNameProperties
in interface org.picketlink.idm.spi.store.IdentityStore
- Throws:
org.picketlink.idm.common.exception.IdentityException
org.picketlink.idm.spi.exception.OperationNotSupportedException
setRelationshipProperties
public void setRelationshipProperties(org.picketlink.idm.spi.store.IdentityStoreInvocationContext ctx,
org.picketlink.idm.spi.model.IdentityObjectRelationship relationship,
Map<String,String> properties)
throws org.picketlink.idm.common.exception.IdentityException,
org.picketlink.idm.spi.exception.OperationNotSupportedException
- Specified by:
setRelationshipProperties
in interface org.picketlink.idm.spi.store.IdentityStore
- Throws:
org.picketlink.idm.common.exception.IdentityException
org.picketlink.idm.spi.exception.OperationNotSupportedException
removeRelationshipNameProperties
public void removeRelationshipNameProperties(org.picketlink.idm.spi.store.IdentityStoreInvocationContext ctx,
String name,
Set<String> properties)
throws org.picketlink.idm.common.exception.IdentityException,
org.picketlink.idm.spi.exception.OperationNotSupportedException
- Specified by:
removeRelationshipNameProperties
in interface org.picketlink.idm.spi.store.IdentityStore
- Throws:
org.picketlink.idm.common.exception.IdentityException
org.picketlink.idm.spi.exception.OperationNotSupportedException
removeRelationshipProperties
public void removeRelationshipProperties(org.picketlink.idm.spi.store.IdentityStoreInvocationContext ctx,
org.picketlink.idm.spi.model.IdentityObjectRelationship relationship,
Set<String> properties)
throws org.picketlink.idm.common.exception.IdentityException,
org.picketlink.idm.spi.exception.OperationNotSupportedException
- Specified by:
removeRelationshipProperties
in interface org.picketlink.idm.spi.store.IdentityStore
- Throws:
org.picketlink.idm.common.exception.IdentityException
org.picketlink.idm.spi.exception.OperationNotSupportedException
Copyright © 2011 Seam Framework. All Rights Reserved.