Interface ModelReferenceResolver


  • @ProviderType
    public interface ModelReferenceResolver
    Reference resolver that extracts the content fragments created based on a given content fragment model
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      java.util.List<java.lang.String> getReferences​(@NotNull java.lang.String modelPath, @NotNull ResourceResolver resolver, java.lang.String maxRef)
      Find the content fragments created based on a given content fragment model path.
      java.util.List<java.lang.String> getReferences​(@NotNull Resource model, @NotNull ResourceResolver resolver)
      Find the content fragments created based on a given content fragment model
      java.util.List<java.lang.String> getReferences​(@NotNull Resource model, @NotNull ResourceResolver resolver, java.lang.String maxRef)
      Find the content fragments created based on a given content fragment model
    • Method Detail

      • getReferences

        java.util.List<java.lang.String> getReferences​(@NotNull
                                                       @NotNull Resource model,
                                                       @NotNull
                                                       @NotNull ResourceResolver resolver)
        Find the content fragments created based on a given content fragment model
        Parameters:
        model - - content fragment model
        resolver - - resource resolver
        Returns:
        the list of paths associated to matched content fragments
      • getReferences

        java.util.List<java.lang.String> getReferences​(@NotNull
                                                       @NotNull Resource model,
                                                       @NotNull
                                                       @NotNull ResourceResolver resolver,
                                                       java.lang.String maxRef)
        Find the content fragments created based on a given content fragment model
        Parameters:
        model - - content fragment model
        resolver - - resource resolver
        maxRef - - the maximum number of results to be extracted
        Returns:
        the list of paths associated to matched content fragments
      • getReferences

        java.util.List<java.lang.String> getReferences​(@NotNull
                                                       @NotNull java.lang.String modelPath,
                                                       @NotNull
                                                       @NotNull ResourceResolver resolver,
                                                       java.lang.String maxRef)
        Find the content fragments created based on a given content fragment model path. It can be used when the model does not exist anymore.
        Parameters:
        modelPath - - content fragment model path
        resolver - - resource resolver
        maxRef - - the maximum number of results to be extracted
        Returns:
        the list of paths associated to matched content fragments