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
FieldsFields inherited from class org.picketlink.idm.impl.repository.FallbackIdentityStoreRepository
ALLOW_NOT_DEFINED_ATTRIBUTES, OPTION_READ_ONLYFields 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 -
Method Summary
Modifier and TypeMethodDescriptionvoidbootstrap(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 considerationorg.picketlink.idm.spi.model.IdentityObjectfindIdentityObject(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 considerationorg.picketlink.idm.spi.model.IdentityObjectfindIdentityObject(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 considerationCollection<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 considerationorg.picketlink.idm.spi.model.IdentityObjectfindIdentityObjectByUniqueAttribute(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 considerationMethods 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, validateCredentialMethods inherited from class org.picketlink.idm.impl.repository.AbstractIdentityStoreRepository
getAttributeStore, getAttributeStoreMappings, getAttributeStores, getConfiguredAttributeStores, getConfiguredIdentityStores, getIdentityStore, getIdentityStoreMappings, getIdentityStores, getMappedIdentityStores, hasIdentityObject, isAllowNotDefinedIdentityObjectTypes
-
Field Details
-
OPTION_MANDATORY_OBJECTS
- See Also:
-
-
Constructor Details
-
ExoLegacyFallbackIdentityStoreRepository
-
-
Method Details
-
bootstrap
public void bootstrap(org.picketlink.idm.spi.configuration.IdentityRepositoryConfigurationContext configurationContext, Map<String, org.picketlink.idm.spi.store.IdentityStore> bootstrappedIdentityStores, Map<String, throws org.picketlink.idm.common.exception.IdentityExceptionorg.picketlink.idm.spi.store.AttributeStore> bootstrappedAttributeStores) override bootstrap() method in order to add the mandatoryStoredObjects option of the new LDAP configuration into consideration- Specified by:
bootstrapin interfaceorg.picketlink.idm.spi.repository.IdentityStoreRepository- Overrides:
bootstrapin classorg.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:
findIdentityObjectin interfaceorg.picketlink.idm.spi.store.IdentityStore- Overrides:
findIdentityObjectin classorg.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:
findIdentityObjectin interfaceorg.picketlink.idm.spi.store.IdentityStore- Overrides:
findIdentityObjectin classorg.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:
findIdentityObjectin interfaceorg.picketlink.idm.spi.store.IdentityStore- Overrides:
findIdentityObjectin classorg.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:
findIdentityObjectin interfaceorg.picketlink.idm.spi.store.IdentityStore- Overrides:
findIdentityObjectin classorg.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:
findIdentityObjectByUniqueAttributein interfaceorg.picketlink.idm.spi.store.AttributeStore- Overrides:
findIdentityObjectByUniqueAttributein classorg.picketlink.idm.impl.repository.FallbackIdentityStoreRepository- Parameters:
invocationCtx-identityObjectType-attribute-- Returns:
- Throws:
org.picketlink.idm.common.exception.IdentityException
-