Class AssociatedContentService.CfParams
- java.lang.Object
-
- com.adobe.cq.cif.common.associatedcontent.AssociatedContentService.CfParams
-
- Enclosing interface:
- AssociatedContentService
@ProviderType public static final class AssociatedContentService.CfParams extends java.lang.ObjectDefines the parameters used to queryContentFragments as associated content.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Collection<java.lang.String>identifiers()Returns the product or category identifiers.java.lang.Stringmodel()Returns the content fragment model path.AssociatedContentService.CfParamsmodel(java.lang.String model)Sets the content fragment model path.static AssociatedContentService.CfParamsof(java.lang.String identifier)Creates aCfParamsinstance with a product or category identifier.static AssociatedContentService.CfParamsof(java.util.Collection<java.lang.String> identifiers)Creates aCfParamsinstance with a collection of product identifiers or category identifiers.java.lang.Stringpath()Returns the search path.Ppath(java.lang.String path)Sets the search path for associated content queries.java.lang.Stringproperty()Returns the content fragment model property to match the identifier.AssociatedContentService.CfParamsproperty(java.lang.String property)Sets the content fragment model property to match the identifier.java.lang.StringtoString()
-
-
-
Method Detail
-
model
public java.lang.String model()
Returns the content fragment model path.- Returns:
- content fragment model path
-
model
public AssociatedContentService.CfParams model(java.lang.String model)
Sets the content fragment model path.- Parameters:
model- content fragment model path- Returns:
- the parameters instance
-
property
public java.lang.String property()
Returns the content fragment model property to match the identifier.- Returns:
- content fragment model property
-
property
public AssociatedContentService.CfParams property(java.lang.String property)
Sets the content fragment model property to match the identifier.- Parameters:
property- content fragment model property- Returns:
- the parameters instance
-
of
public static AssociatedContentService.CfParams of(java.lang.String identifier)
Creates aCfParamsinstance with a product or category identifier.- Parameters:
identifier- product identifier or category identifier- Returns:
- the new instance
- Throws:
java.lang.IllegalArgumentException- for null or empty identifier
-
of
public static AssociatedContentService.CfParams of(java.util.Collection<java.lang.String> identifiers)
Creates aCfParamsinstance with a collection of product identifiers or category identifiers.- Parameters:
identifiers- the product identifiers or category identifiers- Returns:
- the new instance
- Throws:
java.lang.IllegalArgumentException- for null or empty identifiers collection
-
identifiers
public java.util.Collection<java.lang.String> identifiers()
Returns the product or category identifiers.- Returns:
- the product or category identifiers
-
path
public java.lang.String path()
Returns the search path.- Returns:
- search path
-
path
public P path(java.lang.String path)
Sets the search path for associated content queries.- Parameters:
path- associated content search path- Returns:
- this params instance
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-