Skip to content

/AWS1/CL_WSW=>UPDATEUSERSETTINGS()

About UpdateUserSettings

Updates the user settings.

Method Signature

IMPORTING

Required arguments:

iv_usersettingsarn TYPE /AWS1/WSWARN /AWS1/WSWARN

The ARN of the user settings.

Optional arguments:

iv_copyallowed TYPE /AWS1/WSWENABLEDTYPE /AWS1/WSWENABLEDTYPE

Specifies whether the user can copy text from the streaming session to the local device.

iv_pasteallowed TYPE /AWS1/WSWENABLEDTYPE /AWS1/WSWENABLEDTYPE

Specifies whether the user can paste text from the local device to the streaming session.

iv_downloadallowed TYPE /AWS1/WSWENABLEDTYPE /AWS1/WSWENABLEDTYPE

Specifies whether the user can download files from the streaming session to the local device.

iv_uploadallowed TYPE /AWS1/WSWENABLEDTYPE /AWS1/WSWENABLEDTYPE

Specifies whether the user can upload files from the local device to the streaming session.

iv_printallowed TYPE /AWS1/WSWENABLEDTYPE /AWS1/WSWENABLEDTYPE

Specifies whether the user can print to the local device.

iv_discncttimeoutinminutes TYPE /AWS1/WSWDISCNCTTMOUTINMINUTES /AWS1/WSWDISCNCTTMOUTINMINUTES

The amount of time that a streaming session remains active after users disconnect.

iv_idlediscncttmoutinminutes TYPE /AWS1/WSWIDLEDISCNCTTOINMINS /AWS1/WSWIDLEDISCNCTTOINMINS

The amount of time that users can be idle (inactive) before they are disconnected from their streaming session and the disconnect timeout interval begins.

iv_clienttoken TYPE /AWS1/WSWCLIENTTOKEN /AWS1/WSWCLIENTTOKEN

A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. Idempotency ensures that an API request completes only once. With an idempotent request, if the original request completes successfully, subsequent retries with the same client token return the result from the original successful request.

If you do not specify a client token, one is automatically generated by the Amazon Web Services SDK.

io_cookiesynchronizationconf TYPE REF TO /AWS1/CL_WSWCOOKIESYNCHRONIZ00 /AWS1/CL_WSWCOOKIESYNCHRONIZ00

The configuration that specifies which cookies should be synchronized from the end user's local browser to the remote browser.

If the allowlist and blocklist are empty, the configuration becomes null.

iv_deeplinkallowed TYPE /AWS1/WSWENABLEDTYPE /AWS1/WSWENABLEDTYPE

Specifies whether the user can use deep links that open automatically when connecting to a session.

io_toolbarconfiguration TYPE REF TO /AWS1/CL_WSWTOOLBARCONF /AWS1/CL_WSWTOOLBARCONF

The configuration of the toolbar. This allows administrators to select the toolbar type and visual mode, set maximum display resolution for sessions, and choose which items are visible to end users during their sessions. If administrators do not modify these settings, end users retain control over their toolbar preferences.

RETURNING

oo_output TYPE REF TO /aws1/cl_wswupdateuserstgsrsp /AWS1/CL_WSWUPDATEUSERSTGSRSP

Domain /AWS1/RT_ACCOUNT_ID
Primitive Type NUMC

Examples

Syntax Example

This is an example of the syntax for calling the method. It includes every possible argument and initializes every possible value. The data provided is not necessarily semantically accurate (for example the value "string" may be provided for something that is intended to be an instance ID, or in some cases two arguments may be mutually exclusive). The syntax shows the ABAP syntax for creating the various data structures.

DATA(lo_result) = lo_client->/aws1/if_wsw~updateusersettings(
  io_cookiesynchronizationconf = new /aws1/cl_wswcookiesynchroniz00(
    it_allowlist = VALUE /aws1/cl_wswcookiespec=>tt_cookiespecifications(
      (
        new /aws1/cl_wswcookiespec(
          iv_domain = |string|
          iv_name = |string|
          iv_path = |string|
        )
      )
    )
    it_blocklist = VALUE /aws1/cl_wswcookiespec=>tt_cookiespecifications(
      (
        new /aws1/cl_wswcookiespec(
          iv_domain = |string|
          iv_name = |string|
          iv_path = |string|
        )
      )
    )
  )
  io_toolbarconfiguration = new /aws1/cl_wswtoolbarconf(
    it_hiddentoolbaritems = VALUE /aws1/cl_wswhiddentoolbarite00=>tt_hiddentoolbaritemlist(
      ( new /aws1/cl_wswhiddentoolbarite00( |string| ) )
    )
    iv_maxdisplayresolution = |string|
    iv_toolbartype = |string|
    iv_visualmode = |string|
  )
  iv_clienttoken = |string|
  iv_copyallowed = |string|
  iv_deeplinkallowed = |string|
  iv_discncttimeoutinminutes = 123
  iv_downloadallowed = |string|
  iv_idlediscncttmoutinminutes = 123
  iv_pasteallowed = |string|
  iv_printallowed = |string|
  iv_uploadallowed = |string|
  iv_usersettingsarn = |string|
).

This is an example of reading all possible response values

lv_arn = lo_usersettings->get_usersettingsarn( ).
LOOP AT lo_usersettings->get_associatedportalarns( ) into lo_row.
  lv_arn = lo_row_1->get_value( ).
ENDLOOP.
lv_enabledtype = lo_usersettings->get_copyallowed( ).
lv_enabledtype = lo_usersettings->get_pasteallowed( ).
lv_enabledtype = lo_usersettings->get_downloadallowed( ).
lv_enabledtype = lo_usersettings->get_uploadallowed( ).
lv_enabledtype = lo_usersettings->get_printallowed( ).
lv_disconnecttimeoutinminu = lo_usersettings->get_discncttimeoutinminutes( ).
lv_idledisconnecttimeoutin = lo_usersettings->get_idlediscncttmoutinmins( ).
LOOP AT lo_cookiesynchronizationco->get_allowlist( ) into lo_row_2.
  lv_cookiedomain = lo_row_3->get_domain( ).
  lv_cookiename = lo_row_3->get_name( ).
  lv_cookiepath = lo_row_3->get_path( ).
ENDLOOP.
LOOP AT lo_cookiesynchronizationco->get_blocklist( ) into lo_row_2.
  lv_cookiedomain = lo_row_3->get_domain( ).
  lv_cookiename = lo_row_3->get_name( ).
  lv_cookiepath = lo_row_3->get_path( ).
ENDLOOP.
lv_keyarn = lo_usersettings->get_customermanagedkey( ).
LOOP AT lo_usersettings->get_additionalenccontext( ) into ls_row_4.
  lv_key = ls_row_4-key.
  lv_stringtype = lo_value->get_value( ).
ENDLOOP.
lv_enabledtype = lo_usersettings->get_deeplinkallowed( ).
lv_toolbartype = lo_toolbarconfiguration->get_toolbartype( ).
lv_visualmode = lo_toolbarconfiguration->get_visualmode( ).
LOOP AT lo_toolbarconfiguration->get_hiddentoolbaritems( ) into lo_row_5.
  lv_toolbaritem = lo_row_6->get_value( ).
ENDLOOP.
lv_maxdisplayresolution = lo_toolbarconfiguration->get_maxdisplayresolution( ).