Interface EntityTypeResponseMapper


  • public interface EntityTypeResponseMapper
    • Method Detail

      • toEntityTypeResponse

        EntityTypeResponse toEntityTypeResponse​(EntityType entityType,
                                                boolean flattenAttributes,
                                                boolean i18n)
        Creates an entity type response from an entity type.
        Parameters:
        entityType - entity type to map
        flattenAttributes - whether to include attributes from parents
        i18n - whether to include localized labels and descriptions
        Returns:
        entity types response
      • toEntityTypesResponse

        EntityTypesResponse toEntityTypesResponse​(org.molgenis.api.metadata.v3.EntityTypes entityTypes,
                                                  int size,
                                                  int page)
        Creates an entity types response from entity types.
        Parameters:
        entityTypes - entity types to map
        size - number of entity types
        page - page number
        Returns:
        entity types response