/** * <p>Maps a type property to a specific LDAP attribute and mark it as an identifier.</p> * * @param propertyName * @param ldapAttributeName * @param identifier * * @return */ public LDAPMappingConfigurationBuilder attribute(@ParameterConfigID(name = "propertyName") String propertyName, @ParameterConfigID(name = "ldapAttributeName") String ldapAttributeName, @ParameterConfigID(name = "identifier") boolean identifier) { attribute(propertyName, ldapAttributeName); if (identifier) { this.idPropertyName = propertyName; } return this; }
/** * <p>Maps a type property to a specific LDAP attribute and mark it as an identifier.</p> * * @param propertyName * @param ldapAttributeName * @param identifier * * @return */ public LDAPMappingConfigurationBuilder attribute(@ParameterConfigID(name = "propertyName") String propertyName, @ParameterConfigID(name = "ldapAttributeName") String ldapAttributeName, @ParameterConfigID(name = "identifier") boolean identifier) { attribute(propertyName, ldapAttributeName); if (identifier) { this.idPropertyName = propertyName; } return this; }
.baseDN(ldapConfig.get(LDAPConstants.USER_DN_SUFFIX)) .objectClasses(userObjectClasses) .attribute("loginName", ldapLoginNameMapping, true) .attribute("firstName", ldapFirstNameMapping) .attribute("lastName", SN) .attribute("email", EMAIL) .readOnlyAttribute("createdDate", createTimestampMapping) .readOnlyAttribute("modifyDate", modifyTimestampMapping);
storeMapping.attribute(name, ldapName, isIdentifier);
boolean isIdentifier = LDAPStoreAttributeResourceDefinition.IS_IDENTIFIER .resolveModelAttribute(context, attribute).asBoolean(); storeMapping.attribute(name, ldapName, isIdentifier);
boolean isIdentifier = LDAPStoreAttributeResourceDefinition.IS_IDENTIFIER .resolveModelAttribute(context, attribute).asBoolean(); storeMapping.attribute(name, ldapName, isIdentifier);