Package com.adobe.cq.dam.cfm.extensions
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 List<String>
getReferences(@NotNull String modelPath, @NotNull ResourceResolver resolver, String maxRef)
Find the content fragments created based on a given content fragment model path.List<String>
getReferences(@NotNull Resource model, @NotNull ResourceResolver resolver)
Find the content fragments created based on a given content fragment modelList<String>
getReferences(@NotNull Resource model, @NotNull ResourceResolver resolver, String maxRef)
Find 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 modelresolver
- - 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 modelresolver
- - resource resolvermaxRef
- - 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 pathresolver
- - resource resolvermaxRef
- - the maximum number of results to be extracted- Returns:
- the list of paths associated to matched content fragments
-
-