All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.apicurio.registry.utils.export.mappers.ArtifactReferenceMapper Maven / Gradle / Ivy

There is a newer version: 3.0.4
Show newest version
package io.apicurio.registry.utils.export.mappers;

import io.apicurio.registry.rest.v2.beans.ArtifactReference;
import io.confluent.kafka.schemaregistry.client.rest.entities.SchemaReference;
import jakarta.inject.Singleton;

@Singleton
public class ArtifactReferenceMapper implements Mapper {

    @Override
    public ArtifactReference map(SchemaReference entity) {
        ArtifactReference artifactReference = new ArtifactReference();
        artifactReference.setGroupId(null);
        artifactReference.setName(entity.getName());
        artifactReference.setVersion(entity.getVersion().toString());
        artifactReference.setArtifactId(entity.getSubject());
        return artifactReference;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy