Interface PostMapper

    • Method Summary

      All Methods Instance Methods Default Methods 
      Modifier and Type Method Description
      default <P,​D>
      void
      transform​(List<P> projections, List<D> entities, ContextInfo contextInfo)
      Perform any required modifications to the list of projections.
      default <P,​D>
      void
      transform​(P projection, D entity, ContextInfo contextInfo)
      Perform any required modifications to the list of projections.
    • Method Detail

      • transform

        default <P,​D> void transform​(List<P> projections,
                                           @Nullable
                                           List<D> entities,
                                           @Nullable
                                           ContextInfo contextInfo)
        Perform any required modifications to the list of projections. This represents an opportunity to transform the entire list of projections in bulk, or perform bulk related queries.
        Type Parameters:
        P - The projection type
        D - The repository instance type
        Parameters:
        projections - List of projections to transform.
        entities - The original list of repository entities from which the projection list was derived.
        contextInfo - The context information used to make tracking determinations relevant to sandboxing and multitenant concerns. See TrackableRepository for more info on persistence behavior based on context.
      • transform

        default <P,​D> void transform​(P projection,
                                           @Nullable
                                           D entity,
                                           @Nullable
                                           ContextInfo contextInfo)
        Perform any required modifications to the list of projections. This represents an opportunity to transform the entire list of projections in bulk, or perform bulk related queries.
        Type Parameters:
        P - The projection type
        D - The repository instance type
        Parameters:
        projection - projection to transform.
        entity - The original repository entity from which the projection was derived.
        contextInfo - The context information used to make tracking determinations relevant to sandboxing and multitenant concerns. See TrackableRepository for more info on persistence behavior based on context.