Class AssociatedContentService.PageParams
- java.lang.Object
-
- com.adobe.cq.cif.common.associatedcontent.AssociatedContentService.PageParams
-
- Enclosing interface:
- AssociatedContentService
@ProviderType public static final class AssociatedContentService.PageParams extends java.lang.ObjectDefines the parameters used to queryPages 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.static AssociatedContentService.PageParamsof(java.lang.String identifier)Creates aPageParamsinstance with a product or category identifier.static AssociatedContentService.PageParamsof(java.util.Collection<java.lang.String> identifiers)Creates aPageParamsinstance 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.StringtoString()
-
-
-
Method Detail
-
of
public static AssociatedContentService.PageParams of(java.lang.String identifier)
Creates aPageParamsinstance 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.PageParams of(java.util.Collection<java.lang.String> identifiers)
Creates aPageParamsinstance 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
-
-