@Override protected T doPopulateEntry(Map<String, Serializable> properties) throws Exception { T attributedType = doCreateInstance(properties); attributedType.setId(properties.get("id").toString()); for (Property<Serializable> property: getAttributedProperties(attributedType)) { Serializable value = properties.get(property.getName()); if (value != null) { property.setValue(attributedType, value); } } return attributedType; }
@Override protected T doPopulateEntry(Map<String, Serializable> properties) throws Exception { T attributedType = doCreateInstance(properties); attributedType.setId(properties.get("id").toString()); for (Property<Serializable> property: getAttributedProperties(attributedType)) { Serializable value = properties.get(property.getName()); if (value != null) { property.setValue(attributedType, value); } } return attributedType; }
@Override public void addAttributedType(IdentityContext context, AttributedType attributedType) { // id will be assigned by the ldap server attributedType.setId(null); if (Relationship.class.isInstance(attributedType)) { addRelationship((Relationship) attributedType); } else { this.operationManager.createSubContext(getBindingDN(attributedType, true), extractAttributes(attributedType, true)); addToParentAsMember(attributedType); attributedType.setId(getEntryIdentifier(attributedType)); } }
@Override public void addAttributedType(IdentityContext context, AttributedType attributedType) { // id will be assigned by the ldap server attributedType.setId(null); if (Relationship.class.isInstance(attributedType)) { addRelationship((Relationship) attributedType); } else { this.operationManager.createSubContext(getBindingDN(attributedType, true), extractAttributes(attributedType, true)); addToParentAsMember(attributedType); attributedType.setId(getEntryIdentifier(attributedType)); } }
attributedType.setId(this.operationManager.decodeEntryUUID(attributeValue)); } else { String attributeName = findAttributeName(mappingConfig.getMappedProperties(), ldapAttributeName);
attributedType.setId(this.operationManager.decodeEntryUUID(attributeValue)); } else { String attributeName = findAttributeName(mappingConfig.getMappedProperties(), ldapAttributeName);
@Override public void add(IdentityContext context, AttributedType attributedType) { attributedType.setId(context.getIdGenerator().generate()); if (IdentityType.class.isInstance(attributedType)) { IdentityType identityType = (IdentityType) attributedType; identityType.setPartition(context.getPartition()); if (isTraceEnabled()) { IDENTITY_STORE_LOGGER.tracef("Type with identifier [%s] belongs to partition [%s][%s]", attributedType.getId(), context.getPartition().getName(), context.getPartition()); } } addAttributedType(context, attributedType); if (isTraceEnabled()) { IDENTITY_STORE_LOGGER.tracef("Type with identifier [%s] successfully added to identity store [%s].", attributedType.getId(), this); } }
clonedAttributedType.setId(attributedType.getId());
clonedAttributedType.setId(attributedType.getId());
@Override public void add(IdentityContext context, AttributedType attributedType) { attributedType.setId(context.getIdGenerator().generate()); if (IdentityType.class.isInstance(attributedType)) { IdentityType identityType = (IdentityType) attributedType; identityType.setPartition(context.getPartition()); if (isTraceEnabled()) { IDENTITY_STORE_LOGGER.tracef("Type with identifier [%s] belongs to partition [%s][%s]", attributedType.getId(), context.getPartition().getName(), context.getPartition()); } } addAttributedType(context, attributedType); if (isTraceEnabled()) { IDENTITY_STORE_LOGGER.tracef("Type with identifier [%s] successfully added to identity store [%s].", attributedType.getId(), this); } }