Class ExoLegacyFallbackIdentityStoreRepository

java.lang.Object
org.picketlink.idm.impl.repository.AbstractIdentityStoreRepository
org.picketlink.idm.impl.repository.FallbackIdentityStoreRepository
org.gatein.portal.idm.impl.repository.ExoLegacyFallbackIdentityStoreRepository
All Implemented Interfaces:
Serializable, org.picketlink.idm.spi.repository.IdentityStoreRepository, org.picketlink.idm.spi.store.AttributeStore, org.picketlink.idm.spi.store.IdentityStore, org.picketlink.idm.spi.store.IdentityStoreSessionFactory

public class ExoLegacyFallbackIdentityStoreRepository extends org.picketlink.idm.impl.repository.FallbackIdentityStoreRepository
extends the class FallbackIdentityStoreRepository from PicketLink Idm in order to customize the PortalRepository and to work with the mandatoryStoredObjects option which is added in the LDAP configuration
See Also:
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
     

    Fields inherited from class org.picketlink.idm.impl.repository.FallbackIdentityStoreRepository

    ALLOW_NOT_DEFINED_ATTRIBUTES, OPTION_READ_ONLY

    Fields inherited from class org.picketlink.idm.impl.repository.AbstractIdentityStoreRepository

    ALLOW_NOT_DEFINED_IDENTITY_OBJECT_TYPES_OPTION, attributeStoreMappings, CACHE_CONFIG_FILE_OPTION, CACHE_OPTION, CACHE_PROVIDER_CLASS_OPTION, CACHE_PROVIDER_REGISTRY_NAME, CACHE_SCOPE, configurationContext, configuredAttributeStores, defaultAttributeStore, defaultIdentityStore, identityStoreMappings
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    bootstrap(org.picketlink.idm.spi.configuration.IdentityRepositoryConfigurationContext configurationContext, Map<String,org.picketlink.idm.spi.store.IdentityStore> bootstrappedIdentityStores, Map<String,org.picketlink.idm.spi.store.AttributeStore> bootstrappedAttributeStores)
    override bootstrap() method in order to add the mandatoryStoredObjects option of the new LDAP configuration into consideration
    org.picketlink.idm.spi.model.IdentityObject
    findIdentityObject(org.picketlink.idm.spi.store.IdentityStoreInvocationContext invocationContext, String id)
    override findIdentityObjectByUniqueAttribute() method in order to add the mandatoryStoredObjects option of the new LDAP configuration into consideration
    org.picketlink.idm.spi.model.IdentityObject
    findIdentityObject(org.picketlink.idm.spi.store.IdentityStoreInvocationContext invocationContext, String name, org.picketlink.idm.spi.model.IdentityObjectType identityObjectType)
    override findIdentityObjectByUniqueAttribute() method in order to add the mandatoryStoredObjects option of the new LDAP configuration into consideration
    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, Collection<org.picketlink.idm.spi.model.IdentityObjectType> excludes, boolean parent, org.picketlink.idm.spi.search.IdentityObjectSearchCriteria criteria)
    Override findIdentityObject() method in order to add an inconsidered case in Original implementation which is mappedStores greater than 1 and identityObjectType is not explicitely managed by default store (Hibernate)
    Collection<org.picketlink.idm.spi.model.IdentityObject>
    findIdentityObject(org.picketlink.idm.spi.store.IdentityStoreInvocationContext invocationCtx, org.picketlink.idm.spi.model.IdentityObjectType identityType, org.picketlink.idm.spi.search.IdentityObjectSearchCriteria criteria)
    override findIdentityObjectByUniqueAttribute() method in order to add the mandatoryStoredObjects option of the new LDAP configuration into consideration
    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)
    override findIdentityObjectByUniqueAttribute() method in order to add the mandatoryStoredObjects option of the new LDAP configuration into consideration

    Methods inherited from class org.picketlink.idm.impl.repository.FallbackIdentityStoreRepository

    addAttributes, bootstrap, createIdentityObject, createIdentityObject, createIdentityStoreSession, createIdentityStoreSession, createRelationship, createRelationshipName, findIdentityObject, getAttribute, getAttributes, getAttributesMetaData, getId, getIdentityObjectCount, getIdentityObjectCount, getIdentityObjectsCount, getRelationshipNameProperties, getRelationshipNames, getRelationshipNames, getRelationshipProperties, getRelationshipsCount, getSupportedAttributeNames, getSupportedFeatures, isAllowNotDefinedAttributes, isIdentityStoreReadOnly, removeAttributes, removeIdentityObject, removeRelationship, removeRelationshipName, removeRelationshipNameProperties, removeRelationshipProperties, removeRelationships, resolveRelationships, resolveRelationships, setRelationshipNameProperties, setRelationshipProperties, updateAttributes, updateCredential, validateCredential

    Methods inherited from class org.picketlink.idm.impl.repository.AbstractIdentityStoreRepository

    getAttributeStore, getAttributeStoreMappings, getAttributeStores, getConfiguredAttributeStores, getConfiguredIdentityStores, getIdentityStore, getIdentityStoreMappings, getIdentityStores, getMappedIdentityStores, hasIdentityObject, isAllowNotDefinedIdentityObjectTypes

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Constructor Details

    • ExoLegacyFallbackIdentityStoreRepository

      public ExoLegacyFallbackIdentityStoreRepository(String id)
  • Method Details

    • bootstrap

      public void bootstrap(org.picketlink.idm.spi.configuration.IdentityRepositoryConfigurationContext configurationContext, Map<String,org.picketlink.idm.spi.store.IdentityStore> bootstrappedIdentityStores, Map<String,org.picketlink.idm.spi.store.AttributeStore> bootstrappedAttributeStores) throws org.picketlink.idm.common.exception.IdentityException
      override bootstrap() method in order to add the mandatoryStoredObjects option of the new LDAP configuration into consideration
      Specified by:
      bootstrap in interface org.picketlink.idm.spi.repository.IdentityStoreRepository
      Overrides:
      bootstrap in class org.picketlink.idm.impl.repository.FallbackIdentityStoreRepository
      Parameters:
      configurationContext -
      bootstrappedIdentityStores -
      bootstrappedAttributeStores -
      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, Collection<org.picketlink.idm.spi.model.IdentityObjectType> excludes, boolean parent, org.picketlink.idm.spi.search.IdentityObjectSearchCriteria criteria) throws org.picketlink.idm.common.exception.IdentityException
      Override findIdentityObject() method in order to add an inconsidered case in Original implementation which is mappedStores greater than 1 and identityObjectType is not explicitely managed by default store (Hibernate)
      Specified by:
      findIdentityObject in interface org.picketlink.idm.spi.store.IdentityStore
      Overrides:
      findIdentityObject in class org.picketlink.idm.impl.repository.FallbackIdentityStoreRepository
      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
      override findIdentityObjectByUniqueAttribute() method in order to add the mandatoryStoredObjects option of the new LDAP configuration into consideration
      Specified by:
      findIdentityObject in interface org.picketlink.idm.spi.store.IdentityStore
      Overrides:
      findIdentityObject in class org.picketlink.idm.impl.repository.FallbackIdentityStoreRepository
      Parameters:
      invocationContext -
      name -
      identityObjectType -
      Returns:
      Throws:
      org.picketlink.idm.common.exception.IdentityException
    • 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
      override findIdentityObjectByUniqueAttribute() method in order to add the mandatoryStoredObjects option of the new LDAP configuration into consideration
      Specified by:
      findIdentityObject in interface org.picketlink.idm.spi.store.IdentityStore
      Overrides:
      findIdentityObject in class org.picketlink.idm.impl.repository.FallbackIdentityStoreRepository
      Parameters:
      invocationContext -
      id -
      Returns:
      Throws:
      org.picketlink.idm.common.exception.IdentityException
    • findIdentityObject

      public Collection<org.picketlink.idm.spi.model.IdentityObject> findIdentityObject(org.picketlink.idm.spi.store.IdentityStoreInvocationContext invocationCtx, org.picketlink.idm.spi.model.IdentityObjectType identityType, org.picketlink.idm.spi.search.IdentityObjectSearchCriteria criteria) throws org.picketlink.idm.common.exception.IdentityException
      override findIdentityObjectByUniqueAttribute() method in order to add the mandatoryStoredObjects option of the new LDAP configuration into consideration
      Specified by:
      findIdentityObject in interface org.picketlink.idm.spi.store.IdentityStore
      Overrides:
      findIdentityObject in class org.picketlink.idm.impl.repository.FallbackIdentityStoreRepository
      Parameters:
      invocationCtx -
      identityType -
      criteria -
      Returns:
      Collection<IdentityObject>
      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
      override findIdentityObjectByUniqueAttribute() method in order to add the mandatoryStoredObjects option of the new LDAP configuration into consideration
      Specified by:
      findIdentityObjectByUniqueAttribute in interface org.picketlink.idm.spi.store.AttributeStore
      Overrides:
      findIdentityObjectByUniqueAttribute in class org.picketlink.idm.impl.repository.FallbackIdentityStoreRepository
      Parameters:
      invocationCtx -
      identityObjectType -
      attribute -
      Returns:
      Throws:
      org.picketlink.idm.common.exception.IdentityException