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

            luca.pellizzon Luca Pellizzon
            drew.brokke Drew Brokke
            Product Team User and System Mngt Product Team User and System Mngt (Inactive)
            Kiyoshi Lee Kiyoshi Lee
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Packages

                Version Package
                7.4.13 DXP GA1
                7.4.3.4 CE GA4
                Master