Class AssociatedContentService.CfParams

  • Enclosing interface:
    AssociatedContentService

    @ProviderType
    public static final class AssociatedContentService.CfParams
    extends java.lang.Object
    Defines the parameters used to query ContentFragments 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.String model()
      Returns the content fragment model path.
      AssociatedContentService.CfParams model​(java.lang.String model)
      Sets the content fragment model path.
      static AssociatedContentService.CfParams of​(java.lang.String identifier)
      Creates a CfParams instance with a product or category identifier.
      static AssociatedContentService.CfParams of​(java.util.Collection<java.lang.String> identifiers)
      Creates a CfParams instance with a collection of product identifiers or category identifiers.
      java.lang.String path()
      Returns the search path.
      P path​(java.lang.String path)
      Sets the search path for associated content queries.
      java.lang.String property()
      Returns the content fragment model property to match the identifier.
      AssociatedContentService.CfParams property​(java.lang.String property)
      Sets the content fragment model property to match the identifier.
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • 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 a CfParams instance 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 a CfParams instance 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:
        toString in class java.lang.Object