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

ai.stapi.graphsystem.aggregatedefinition.model.ResourceAggregateDefinitionMapper Maven / Gradle / Ivy

package ai.stapi.graphsystem.aggregatedefinition.model;

import ai.stapi.schema.structureSchema.ResourceStructureType;
import ai.stapi.schema.structuredefinition.StructureDefinitionId;

public class ResourceAggregateDefinitionMapper {

  public AggregateDefinitionDTO map(ResourceStructureType resourceStructureType) {
    var resourceName = resourceStructureType.getDefinitionType();
    return new AggregateDefinitionDTO(
        String.format("%sAggregate", resourceName),
        resourceName,
        resourceStructureType.getDescription(),
        new StructureDefinitionId(resourceName)
    );
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy