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

As a developer using account-rest, I want to retrieve an Account's available actions

    Details

      Description

      See https://docs.google.com/spreadsheets/d/1rcIXKuFwV176ui3EQUc7FMdfbJ6kIlhOj45edtSN99k/edit?ts=60d1fa52#gid=0

      Schema example: 

      actions:     additionalProperties:         additionalProperties:             type: string
              type: object
          # @review
          description:         Block of actions allowed by the user making the request.
          readOnly: true
          type: object
      

      Action map creation example:

      return HashMapBuilder.<String, Map<String, String>>put(
      	"delete",
      	addAction(
      		ActionKeys.DELETE, cpOptionId, "deleteOption",
      		_cpOptionModelResourcePermission)
      ).put(
      	"get",
      	addAction(
      		ActionKeys.VIEW, cpOptionId, "getOption",
      		_cpOptionModelResourcePermission)
      ).put(
      	"update",
      	addAction(
      		ActionKeys.UPDATE, cpOptionId, "patchOption",
      		_cpOptionModelResourcePermission)
      ).build();
      

       

        Attachments

          Activity

            People

            Assignee:
            luca.pellizzon Luca Pellizzon
            Reporter:
            drew.brokke Drew Brokke
            Engineering Assignee:
            Product Team User and System Mngt
            Recent user:
            Luca Pellizzon
            Participants of an Issue:
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Packages

                Version Package
                Master