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

Accept arbitrary Bean fields in JSON WS requests

    Details

    • Type: Story
    • Status: Open
    • Priority: Critical
    • Resolution: Unresolved
    • Affects Version/s: 6.2.0 CE GA1, 6.2.10 EE GA1
    • Fix Version/s: None
    • Labels:
      None

      Description

      By now it’s possible to limit the results of an invocation to specified fields:

      {
        "$message[messageId,modifiedDate] = /mbmessage/get-message": {
          "messageId": 1234
        }
      }
      

      But ATM it is not possible to retrieve otherwise-impossible-to-get fields like MBMessage’s attachments.

      The expected form is:

      {
        "$message[messageId,modifiedDate,attachments] = /mbmessage/get-message": {
          "messageId": 1234
        }
      }
      

      Currently this happens because once the the service has been called, the resulting JSONObject is filtered. Technically this could reversed: filtered fields could be the result of using BeanUtil or something.

      Don‘t forget services which return lists!

        Attachments

          Activity

            People

            • Assignee:
              support-lep@liferay.com SE Support
              Reporter:
              pierpaolo.ramon Pier Paolo Ramon
              Recent user:
              Shalaka Tendulkar
              Participants of an Issue:
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:

                Packages

                Version Package