Class HibernateIdentityStoreImpl

java.lang.Object
org.picketlink.idm.impl.store.hibernate.HibernateIdentityStoreImpl
All Implemented Interfaces:
Serializable, org.picketlink.idm.spi.store.AttributeStore, org.picketlink.idm.spi.store.IdentityStore, org.picketlink.idm.spi.store.IdentityStoreSessionFactory

public class HibernateIdentityStoreImpl extends Object implements org.picketlink.idm.spi.store.IdentityStore
Version:
: 0.1 $
Author:
Boleslaw Dawidowicz
See Also:
  • Field Summary

    Fields
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    addAttributes(org.picketlink.idm.spi.store.IdentityStoreInvocationContext ctx, org.picketlink.idm.spi.model.IdentityObject identity, org.picketlink.idm.spi.model.IdentityObjectAttribute[] attributes)
     
    void
    addIdentityObjectRelationshipType(org.picketlink.idm.spi.store.IdentityStoreInvocationContext ctx, org.picketlink.idm.spi.model.IdentityObjectRelationshipType type)
     
    void
    addIdentityObjectType(org.picketlink.idm.spi.store.IdentityStoreInvocationContext ctx, org.picketlink.idm.spi.model.IdentityObjectType type)
     
    void
    addRealm(org.hibernate.Session hibernateSession, String realmName)
     
    void
    bootstrap(org.picketlink.idm.spi.configuration.IdentityStoreConfigurationContext configurationContext)
     
    protected org.hibernate.SessionFactory
    bootstrapHibernateSessionFactory(org.picketlink.idm.spi.configuration.IdentityStoreConfigurationContext configurationContext)
     
    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
     
    org.picketlink.idm.spi.store.IdentityStoreSession
     
    org.picketlink.idm.spi.model.IdentityObjectRelationship
    createRelationship(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 name, boolean createNames)
     
    createRelationshipName(org.picketlink.idm.spi.store.IdentityStoreInvocationContext ctx, String name)
     
    org.picketlink.idm.spi.model.IdentityObject
    findIdentityObject(org.picketlink.idm.spi.store.IdentityStoreInvocationContext ctx, String id)
     
    org.picketlink.idm.spi.model.IdentityObject
    findIdentityObject(org.picketlink.idm.spi.store.IdentityStoreInvocationContext ctx, String name, org.picketlink.idm.spi.model.IdentityObjectType type)
     
    Collection<org.picketlink.idm.spi.model.IdentityObject>
    findIdentityObject(org.picketlink.idm.spi.store.IdentityStoreInvocationContext ctx, org.picketlink.idm.spi.model.IdentityObject identity, org.picketlink.idm.spi.model.IdentityObjectRelationshipType relationshipType, boolean parent)
     
    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.IdentityObject identity, org.picketlink.idm.spi.model.IdentityObjectRelationshipType relationshipType, Collection<org.picketlink.idm.spi.model.IdentityObjectType> excludes, 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)
     
    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 criteria)
     
    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)
     
    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 identity)
     
    Map<String,org.picketlink.idm.spi.configuration.metadata.IdentityObjectAttributeMetaData>
    getAttributesMetaData(org.picketlink.idm.spi.store.IdentityStoreInvocationContext invocationContext, org.picketlink.idm.spi.model.IdentityObjectType identityType)
     
    protected org.hibernate.Session
    getHibernateSession(org.picketlink.idm.spi.store.IdentityStoreInvocationContext ctx)
     
     
    int
    getIdentityObjectCount(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)
     
    int
    getIdentityObjectCount(org.picketlink.idm.spi.store.IdentityStoreInvocationContext ctx, org.picketlink.idm.spi.model.IdentityObject identity, org.picketlink.idm.spi.model.IdentityObjectRelationshipType relationshipType, Collection<org.picketlink.idm.spi.model.IdentityObjectType> excludes, boolean parent, org.picketlink.idm.spi.search.IdentityObjectSearchCriteria criteria)
     
    int
    getIdentityObjectsCount(org.picketlink.idm.spi.store.IdentityStoreInvocationContext ctx, org.picketlink.idm.spi.model.IdentityObjectType identityType)
     
    getRelationshipNameProperties(org.picketlink.idm.spi.store.IdentityStoreInvocationContext ctx, String name)
     
    getRelationshipNames(org.picketlink.idm.spi.store.IdentityStoreInvocationContext ctx)
     
    getRelationshipNames(org.picketlink.idm.spi.store.IdentityStoreInvocationContext ctx, org.picketlink.idm.spi.model.IdentityObject identity)
     
    getRelationshipNames(org.picketlink.idm.spi.store.IdentityStoreInvocationContext ctx, org.picketlink.idm.spi.model.IdentityObject identity, org.picketlink.idm.spi.search.IdentityObjectSearchCriteria criteria)
     
    getRelationshipNames(org.picketlink.idm.spi.store.IdentityStoreInvocationContext ctx, org.picketlink.idm.spi.search.IdentityObjectSearchCriteria criteria)
     
    getRelationshipProperties(org.picketlink.idm.spi.store.IdentityStoreInvocationContext ctx, org.picketlink.idm.spi.model.IdentityObjectRelationship relationship)
     
    int
    getRelationshipsCount(org.picketlink.idm.spi.store.IdentityStoreInvocationContext ctx, org.picketlink.idm.spi.model.IdentityObject identity, org.picketlink.idm.spi.model.IdentityObjectRelationshipType type, boolean parent, boolean named, String name, org.picketlink.idm.spi.search.IdentityObjectSearchCriteria searchCriteria)
     
    getSupportedAttributeNames(org.picketlink.idm.spi.store.IdentityStoreInvocationContext ctx, org.picketlink.idm.spi.model.IdentityObjectType identityType)
     
    org.picketlink.idm.spi.store.FeaturesMetaData
     
    boolean
     
    protected boolean
     
    boolean
     
    void
    populateCredentialTypes(org.hibernate.Session hibernateSession, String[] typeNames)
     
    void
    populateObjectTypes(org.hibernate.Session hibernateSession, String[] typeNames)
     
    void
    populateRelationshipTypes(org.hibernate.Session hibernateSession, String[] typeNames)
     
    <T> org.hibernate.query.Query<T>
    prepareIdentityObjectQuery(org.picketlink.idm.spi.store.IdentityStoreInvocationContext ctx, org.picketlink.idm.spi.model.IdentityObject identity, org.picketlink.idm.spi.model.IdentityObjectRelationshipType relationshipType, Collection<org.picketlink.idm.spi.model.IdentityObjectType> excludes, boolean parent, org.picketlink.idm.spi.search.IdentityObjectSearchCriteria criteria, boolean count)
     
    <T> org.hibernate.query.Query<T>
    prepareResolveRelationshipsCriteria(org.picketlink.idm.spi.store.IdentityStoreInvocationContext ctx, org.picketlink.idm.spi.model.IdentityObject identity, org.picketlink.idm.spi.model.IdentityObjectRelationshipType type, boolean parent, boolean named, String name, org.picketlink.idm.spi.search.IdentityObjectSearchCriteria searchCriteria, boolean count)
     
    void
    removeAttributes(org.picketlink.idm.spi.store.IdentityStoreInvocationContext ctx, org.picketlink.idm.spi.model.IdentityObject identity, String[] attributes)
     
    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 name)
     
    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 identity, org.picketlink.idm.spi.model.IdentityObjectRelationshipType type, boolean parent, boolean named, String name, org.picketlink.idm.spi.search.IdentityObjectSearchCriteria searchCriteria)
     
    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)
     
    void
     
    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
    updateAttributes(org.picketlink.idm.spi.store.IdentityStoreInvocationContext ctx, org.picketlink.idm.spi.model.IdentityObject identity, 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
  • Field Details

  • Constructor Details

    • HibernateIdentityStoreImpl

      public HibernateIdentityStoreImpl(String id)
  • Method Details

    • 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
    • bootstrapHibernateSessionFactory

      protected org.hibernate.SessionFactory bootstrapHibernateSessionFactory(org.picketlink.idm.spi.configuration.IdentityStoreConfigurationContext configurationContext) throws org.picketlink.idm.common.exception.IdentityException
      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
    • 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
    • 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
    • setId

      public void setId(String id)
    • getSupportedFeatures

      public org.picketlink.idm.spi.store.FeaturesMetaData getSupportedFeatures()
      Specified by:
      getSupportedFeatures in interface org.picketlink.idm.spi.store.IdentityStore
    • 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
    • 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
    • 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
    • getIdentityObjectsCount

      public int getIdentityObjectsCount(org.picketlink.idm.spi.store.IdentityStoreInvocationContext ctx, 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
    • findIdentityObject

      public org.picketlink.idm.spi.model.IdentityObject findIdentityObject(org.picketlink.idm.spi.store.IdentityStoreInvocationContext ctx, String name, org.picketlink.idm.spi.model.IdentityObjectType type) 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 ctx, 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 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 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
    • findIdentityObject

      public Collection<org.picketlink.idm.spi.model.IdentityObject> findIdentityObject(org.picketlink.idm.spi.store.IdentityStoreInvocationContext ctx, org.picketlink.idm.spi.model.IdentityObjectType identityType) throws org.picketlink.idm.common.exception.IdentityException
      Throws:
      org.picketlink.idm.common.exception.IdentityException
    • getIdentityObjectCount

      public int getIdentityObjectCount(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:
      getIdentityObjectCount 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 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
    • getIdentityObjectCount

      public int getIdentityObjectCount(org.picketlink.idm.spi.store.IdentityStoreInvocationContext ctx, org.picketlink.idm.spi.model.IdentityObject identity, org.picketlink.idm.spi.model.IdentityObjectRelationshipType relationshipType, Collection<org.picketlink.idm.spi.model.IdentityObjectType> excludes, boolean parent, org.picketlink.idm.spi.search.IdentityObjectSearchCriteria criteria) throws org.picketlink.idm.common.exception.IdentityException
      Specified by:
      getIdentityObjectCount 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.IdentityObject identity, org.picketlink.idm.spi.model.IdentityObjectRelationshipType relationshipType, Collection<org.picketlink.idm.spi.model.IdentityObjectType> excludes, 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
    • prepareIdentityObjectQuery

      public <T> org.hibernate.query.Query<T> prepareIdentityObjectQuery(org.picketlink.idm.spi.store.IdentityStoreInvocationContext ctx, org.picketlink.idm.spi.model.IdentityObject identity, org.picketlink.idm.spi.model.IdentityObjectRelationshipType relationshipType, Collection<org.picketlink.idm.spi.model.IdentityObjectType> excludes, boolean parent, org.picketlink.idm.spi.search.IdentityObjectSearchCriteria criteria, boolean count) throws org.picketlink.idm.common.exception.IdentityException
      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.IdentityObject identity, org.picketlink.idm.spi.model.IdentityObjectRelationshipType relationshipType, boolean parent) throws org.picketlink.idm.common.exception.IdentityException
      Throws:
      org.picketlink.idm.common.exception.IdentityException
    • createRelationship

      public org.picketlink.idm.spi.model.IdentityObjectRelationship createRelationship(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 name, 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
    • 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 name) 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
    • 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
    • getRelationshipsCount

      public int getRelationshipsCount(org.picketlink.idm.spi.store.IdentityStoreInvocationContext ctx, org.picketlink.idm.spi.model.IdentityObject identity, org.picketlink.idm.spi.model.IdentityObjectRelationshipType type, boolean parent, boolean named, String name, org.picketlink.idm.spi.search.IdentityObjectSearchCriteria searchCriteria) throws org.picketlink.idm.common.exception.IdentityException
      Specified by:
      getRelationshipsCount 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 type, boolean parent, boolean named, String name, org.picketlink.idm.spi.search.IdentityObjectSearchCriteria searchCriteria) 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
    • prepareResolveRelationshipsCriteria

      public <T> org.hibernate.query.Query<T> prepareResolveRelationshipsCriteria(org.picketlink.idm.spi.store.IdentityStoreInvocationContext ctx, org.picketlink.idm.spi.model.IdentityObject identity, org.picketlink.idm.spi.model.IdentityObjectRelationshipType type, boolean parent, boolean named, String name, org.picketlink.idm.spi.search.IdentityObjectSearchCriteria searchCriteria, boolean count) throws org.picketlink.idm.common.exception.IdentityException
      Throws:
      org.picketlink.idm.common.exception.IdentityException
    • createRelationshipName

      public String createRelationshipName(org.picketlink.idm.spi.store.IdentityStoreInvocationContext ctx, String name) throws org.picketlink.idm.common.exception.IdentityException
      Specified by:
      createRelationshipName 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
      Specified by:
      removeRelationshipName in interface org.picketlink.idm.spi.store.IdentityStore
      Throws:
      org.picketlink.idm.common.exception.IdentityException
    • getRelationshipNames

      public Set<String> getRelationshipNames(org.picketlink.idm.spi.store.IdentityStoreInvocationContext ctx, org.picketlink.idm.spi.search.IdentityObjectSearchCriteria criteria) throws org.picketlink.idm.common.exception.IdentityException
      Specified by:
      getRelationshipNames in interface org.picketlink.idm.spi.store.IdentityStore
      Throws:
      org.picketlink.idm.common.exception.IdentityException
    • getRelationshipNames

      public Set<String> getRelationshipNames(org.picketlink.idm.spi.store.IdentityStoreInvocationContext ctx) throws org.picketlink.idm.common.exception.IdentityException
      Throws:
      org.picketlink.idm.common.exception.IdentityException
    • 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 criteria) throws org.picketlink.idm.common.exception.IdentityException
      Specified by:
      getRelationshipNames in interface org.picketlink.idm.spi.store.IdentityStore
      Throws:
      org.picketlink.idm.common.exception.IdentityException
    • getRelationshipNames

      public Set<String> getRelationshipNames(org.picketlink.idm.spi.store.IdentityStoreInvocationContext ctx, org.picketlink.idm.spi.model.IdentityObject identity) throws org.picketlink.idm.common.exception.IdentityException
      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
      Specified by:
      getRelationshipNameProperties in interface org.picketlink.idm.spi.store.IdentityStore
      Throws:
      org.picketlink.idm.common.exception.IdentityException
    • setRelationshipNameProperties

      public void setRelationshipNameProperties(org.picketlink.idm.spi.store.IdentityStoreInvocationContext ctx, String name, Map<String,String> properties) throws org.picketlink.idm.common.exception.IdentityException
      Specified by:
      setRelationshipNameProperties in interface org.picketlink.idm.spi.store.IdentityStore
      Throws:
      org.picketlink.idm.common.exception.IdentityException
    • removeRelationshipNameProperties

      public void removeRelationshipNameProperties(org.picketlink.idm.spi.store.IdentityStoreInvocationContext ctx, String name, Set<String> properties) throws org.picketlink.idm.common.exception.IdentityException
      Specified by:
      removeRelationshipNameProperties in interface org.picketlink.idm.spi.store.IdentityStore
      Throws:
      org.picketlink.idm.common.exception.IdentityException
    • 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
      Specified by:
      getRelationshipProperties in interface org.picketlink.idm.spi.store.IdentityStore
      Throws:
      org.picketlink.idm.common.exception.IdentityException
    • 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
      Specified by:
      setRelationshipProperties in interface org.picketlink.idm.spi.store.IdentityStore
      Throws:
      org.picketlink.idm.common.exception.IdentityException
    • 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
      Specified by:
      removeRelationshipProperties in interface org.picketlink.idm.spi.store.IdentityStore
      Throws:
      org.picketlink.idm.common.exception.IdentityException
    • getSupportedAttributeNames

      public Set<String> getSupportedAttributeNames(org.picketlink.idm.spi.store.IdentityStoreInvocationContext ctx, 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
    • 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 identity) 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
    • 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
    • updateAttributes

      public void updateAttributes(org.picketlink.idm.spi.store.IdentityStoreInvocationContext ctx, org.picketlink.idm.spi.model.IdentityObject identity, 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
    • addAttributes

      public void addAttributes(org.picketlink.idm.spi.store.IdentityStoreInvocationContext ctx, org.picketlink.idm.spi.model.IdentityObject identity, 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
    • removeAttributes

      public void removeAttributes(org.picketlink.idm.spi.store.IdentityStoreInvocationContext ctx, org.picketlink.idm.spi.model.IdentityObject identity, String[] attributes) 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
    • 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
    • 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
    • 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
    • addIdentityObjectType

      public void addIdentityObjectType(org.picketlink.idm.spi.store.IdentityStoreInvocationContext ctx, org.picketlink.idm.spi.model.IdentityObjectType type) throws org.picketlink.idm.common.exception.IdentityException
      Throws:
      org.picketlink.idm.common.exception.IdentityException
    • addIdentityObjectRelationshipType

      public void addIdentityObjectRelationshipType(org.picketlink.idm.spi.store.IdentityStoreInvocationContext ctx, org.picketlink.idm.spi.model.IdentityObjectRelationshipType type) throws org.picketlink.idm.common.exception.IdentityException
      Throws:
      org.picketlink.idm.common.exception.IdentityException
    • getHibernateSession

      protected org.hibernate.Session getHibernateSession(org.picketlink.idm.spi.store.IdentityStoreInvocationContext ctx) throws org.picketlink.idm.common.exception.IdentityException
      Throws:
      org.picketlink.idm.common.exception.IdentityException
    • populateObjectTypes

      public void populateObjectTypes(org.hibernate.Session hibernateSession, String[] typeNames)
    • populateRelationshipTypes

      public void populateRelationshipTypes(org.hibernate.Session hibernateSession, String[] typeNames)
    • populateCredentialTypes

      public void populateCredentialTypes(org.hibernate.Session hibernateSession, String[] typeNames)
    • addRealm

      public void addRealm(org.hibernate.Session hibernateSession, String realmName) throws org.picketlink.idm.common.exception.IdentityException
      Throws:
      org.picketlink.idm.common.exception.IdentityException
    • isAllowNotDefinedIdentityObjectTypes

      protected boolean isAllowNotDefinedIdentityObjectTypes()
    • isManageTransactionDuringBootstrap

      public boolean isManageTransactionDuringBootstrap()
    • isAllowNotCaseSensitiveSearch

      public boolean isAllowNotCaseSensitiveSearch()