Class DefaultExcerptProjector

java.lang.Object
org.springframework.data.rest.webmvc.support.DefaultExcerptProjector
All Implemented Interfaces:
ExcerptProjector
Direct Known Subclasses:
PersistentEntityProjector

public class DefaultExcerptProjector extends Object implements ExcerptProjector
DefaultedPageable implementation of ExcerptProjector that uses the given ProjectionFactory and considers the given ResourceMappings.
Since:
2.5
Author:
Oliver Gierke
  • Constructor Details

  • Method Details

    • projectExcerpt

      public Object projectExcerpt(Object source)
      Description copied from interface: ExcerptProjector
      Creates a excerpt projection for the given source. If no excerpt projection is available, the object will be returned as is. If you completely wish to skip handling the object, check for the presence of an excerpt projection using ExcerptProjector.hasExcerptProjection(Class).
      Specified by:
      projectExcerpt in interface ExcerptProjector
      Parameters:
      source - must not be null.
      Returns:
    • hasExcerptProjection

      public boolean hasExcerptProjection(Class<?> type)
      Description copied from interface: ExcerptProjector
      Returns whether an excerpt projection has been registered for the given type.
      Specified by:
      hasExcerptProjection in interface ExcerptProjector
      Parameters:
      type - must not be null.
      Returns: