/** * <p>Maps a specific {@link AttributedType}.</p> * * @param attributedType * * @return */ public LDAPMappingConfigurationBuilder mapping(Class<? extends AttributedType> attributedType) { return this.ldapStoreBuilder.mapping(attributedType); }
/** * <p>Maps a specific {@link AttributedType}.</p> * * @param attributedType * * @return */ public LDAPMappingConfigurationBuilder mapping(Class<? extends AttributedType> attributedType) { return this.ldapStoreBuilder.mapping(attributedType); }
storeMapping = storeConfig.mapping((Class<? extends AttributedType>) loadClass(alternativeModule, mappingClass)); } catch (ClassNotFoundException e) { throw new RuntimeException("Could not load LDAP mapped class [" + mappingClass + "].", e);
@Override protected LDAPStoreConfigurationBuilder readFrom(LDAPIdentityStoreConfiguration configuration) { super.readFrom(configuration); this.baseDN = configuration.getBaseDN(); this.bindCredential = configuration.getBindCredential(); this.bindDN = configuration.getBindDN(); this.url = configuration.getLdapURL(); this.activeDirectory = configuration.isActiveDirectory(); this.connectionProperties = configuration.getConnectionProperties(); this.pagination = configuration.isPagination(); this.uniqueIdentifierAttributeName = configuration.getUniqueIdentifierAttributeName(); for (Class<? extends AttributedType> attributedType: configuration.getMappingConfig().keySet()) { LDAPMappingConfiguration mappingConfiguration = configuration.getMappingConfig().get(attributedType); mapping(attributedType).readFrom(mappingConfiguration); } return this; } }
.mapping(User.class) .baseDN(ldapConfig.get(LDAPConstants.USER_DN_SUFFIX)) .objectClasses(userObjectClasses)
@Override protected LDAPStoreConfigurationBuilder readFrom(LDAPIdentityStoreConfiguration configuration) { super.readFrom(configuration); this.baseDN = configuration.getBaseDN(); this.bindCredential = configuration.getBindCredential(); this.bindDN = configuration.getBindDN(); this.url = configuration.getLdapURL(); this.activeDirectory = configuration.isActiveDirectory(); this.connectionProperties = configuration.getConnectionProperties(); this.pagination = configuration.isPagination(); this.uniqueIdentifierAttributeName = configuration.getUniqueIdentifierAttributeName(); for (Class<? extends AttributedType> attributedType: configuration.getMappingConfig().keySet()) { LDAPMappingConfiguration mappingConfiguration = configuration.getMappingConfig().get(attributedType); mapping(attributedType).readFrom(mappingConfiguration); } return this; } }
.mapping(this.<AttributedType>loadClass(moduleNode, typeName)); ModelNode relatesToNode = LDAPStoreMappingResourceDefinition.RELATES_TO.resolveModelAttribute(context, ldapMapping);
.mapping(this.<AttributedType>loadClass(moduleNode, typeName)); ModelNode relatesToNode = LDAPStoreMappingResourceDefinition.RELATES_TO.resolveModelAttribute(context, ldapMapping);