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 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 modeljava.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 modelresolver
- - 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 modelresolver
- - resource resolvermaxRef
- - 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 pathresolver
- - resource resolvermaxRef
- - the maximum number of results to be extracted- Returns:
- the list of paths associated to matched content fragments
-
-