Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-85235

As a consumer developer I can retrieve a list of structured content filtered by the value of a custom primitive structure field.

    Details

    • Type: Story
    • Status: Closed
    • Priority: Minor
    • Resolution: Completed
    • Affects Version/s: None
    • Fix Version/s: 7.1.X, Master
    • Component/s: Headless CMS
    • Labels:
      None

      Description

       

      Out of scope:

      Repeateable

      nested

      attachment (image, document, structured content)

      link

      color

       

      API Capabilities
      The consumer of this API will be able to:

      • Retrieve a list of the structured contents whose value in the custom field matches the value of the field introduced in the query.
        • The types of the fields supported are:
          • string fields (radio, select, text, textArea) 3 (support radio datatype)
          • number fields (number, double, integer) 1 
          • boolean fields 3
          • date fields 3
          • html???

      Security requirements

      The list of structured contents should only include contents the current user has permissions to view. If a structured content is requested and the current user doesn't have permission to view it, a 404 error should be returned.

      General requirements
      The API should support at least Plain JSON, JSON-LD and HAL as output formats.

      The consumer developer should be able to control which linked resources are embedded so that they can be retrieved along with a structured content in a single request.

      The consumer developer can specify which fields are desired, to reduce the data transfer when the API is used from a consumer sensitive to it.

       

      Acceptance criteria

      Given A Press release with the fields:

          - Headline (text)

          - Executive summary (text area)

          - Cover image (image)

          - Press brochure (docs&media)

          - Article body (text area)

      And I create a Press release with the values:

          - Headline = “New lowcost car insurance launched”

          - Executive summary = “Insurance4Every1 has launched a new type of car insurance targeting budget minded customers with customized coverage”

          - Cover image = “test.jpg”

          - Press brochure = “press.pdf”

          - Article body = “Insurance4Every1 has launched a new type of car insurance targeting budget minded customers with customized coverage”

          -dateCreated = "10/06/2018"

          -category = "carInsurance"

      And I create a Press release with the values:

          - Headline = “Insurance4Every1 supports integration with Alexa”

          - Executive summary = “Now, you'll be able to report a problem from any Alexa enabled device.”

          - Cover image = “Alexa.jpg”

          - Press brochure = “AlexaIntegration.pdf”

          - Article body = “Now, you'll be able to report a problem from any Alexa enabled device. Insurance4Every1 integrates with the Amazon devices”

         -dateCreated = "12/08/2018"

        -category = "newProduct"

      When I make a request to structuredContents of contentSpace “Insurance4Every1Spain” filtered by executiveSummary  eq "Insurance4Every1 has launched a new type of car insurance targeting budget minded customers with customized coverage" with the user guest

      Then the collection should return 1 press releases:

         - The press release whose headline is “New lowcost car insurance launched”

       

       

      Given A Press release with the fields:

          - Headline (text)

          - Executive summary (text area)

          - Cover image (image)

          - Press brochure (docs&media)

          - Article body (text area)

      And I create a Press release with the values:

          - Headline = “New lowcost car insurance launched”

          - Executive summary = “Insurance4Every1 has launched a new type of car insurance targeting budget minded customers with customized coverage”

          - Cover image = “test.jpg”

          - Press brochure = “press.pdf”

          - Article body = “Insurance4Every1 has launched a new type of car insurance targeting budget minded customers with customized coverage”

          -dateCreated = "10/06/2018"

      And I create a Press release with the values:

          - Headline = “Insurance4Every1 supports integration with Alexa”

          - Executive summary = “Now, you'll be able to report a problem from any Alexa enabled device.”

          - Cover image = “Alexa.jpg”

          - Press brochure = “AlexaIntegration.pdf”

          - Article body = “Now, you'll be able to report a problem from any Alexa enabled device. Insurance4Every1 integrates with the Amazon devices”

         -dateCreated = "12/08/2018"

        -category = "newProduct"

      When I make a request to structuredContents of contentSpace “Insurance4Every1Spain” filtered by executiveSummary  eq  "Now, you'll be able to report a problem from any Alexa enabled device." with the user guest

      Then the collection should return 1 press releases:

         - The press release whose headline is “Insurance4Every1 supports integration with Alexa”

       

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Packages

                  Version Package
                  7.1.X
                  Master