Interface ModelReferenceResolver


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

      • getReferences

        List<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

        List<String> getReferences​(@NotNull
                                   @NotNull Resource model,
                                   @NotNull
                                   @NotNull ResourceResolver resolver,
                                   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

        List<String> getReferences​(@NotNull
                                   @NotNull String modelPath,
                                   @NotNull
                                   @NotNull ResourceResolver resolver,
                                   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