/AWS1/IF_WSW=>UPDATEBROWSERSETTINGS()¶
About UpdateBrowserSettings¶
Updates browser settings.
Method Signature¶
METHODS /AWS1/IF_WSW~UPDATEBROWSERSETTINGS
IMPORTING
!IV_BROWSERSETTINGSARN TYPE /AWS1/WSWARN OPTIONAL
!IV_BROWSERPOLICY TYPE /AWS1/WSWBROWSERPOLICY OPTIONAL
!IV_CLIENTTOKEN TYPE /AWS1/WSWCLIENTTOKEN OPTIONAL
!IO_WEBCONTENTFILTERINGPOLICY TYPE REF TO /AWS1/CL_WSWWEBCONTFILTINGPLY OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_wswupdbrowserstgsrsp
RAISING
/AWS1/CX_WSWACCESSDENIEDEX
/AWS1/CX_WSWINTERNALSERVEREX
/AWS1/CX_WSWRESOURCENOTFOUNDEX
/AWS1/CX_WSWTHROTTLINGEX
/AWS1/CX_WSWVALIDATIONEX
/AWS1/CX_WSWCLIENTEXC
/AWS1/CX_WSWSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_browsersettingsarn TYPE /AWS1/WSWARN /AWS1/WSWARN¶
The ARN of the browser settings.
Optional arguments:¶
iv_browserpolicy TYPE /AWS1/WSWBROWSERPOLICY /AWS1/WSWBROWSERPOLICY¶
A JSON string containing Chrome Enterprise policies that will be applied to all streaming sessions.
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_webcontentfilteringpolicy TYPE REF TO /AWS1/CL_WSWWEBCONTFILTINGPLY /AWS1/CL_WSWWEBCONTFILTINGPLY¶
The policy that specifies which URLs end users are allowed to access or which URLs or domain categories they are restricted from accessing for enhanced security.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_wswupdbrowserstgsrsp /AWS1/CL_WSWUPDBROWSERSTGSRSP¶
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->updatebrowsersettings(
io_webcontentfilteringpolicy = new /aws1/cl_wswwebcontfiltingply(
it_allowedurls = VALUE /aws1/cl_wswurlpatternlist_w=>tt_urlpatternlist(
( new /aws1/cl_wswurlpatternlist_w( |string| ) )
)
it_blockedcategories = VALUE /aws1/cl_wswblockedcats_w=>tt_blockedcategories(
( new /aws1/cl_wswblockedcats_w( |string| ) )
)
it_blockedurls = VALUE /aws1/cl_wswurlpatternlist_w=>tt_urlpatternlist(
( new /aws1/cl_wswurlpatternlist_w( |string| ) )
)
)
iv_browserpolicy = |string|
iv_browsersettingsarn = |string|
iv_clienttoken = |string|
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
lo_browsersettings = lo_result->get_browsersettings( ).
IF lo_browsersettings IS NOT INITIAL.
lv_arn = lo_browsersettings->get_browsersettingsarn( ).
LOOP AT lo_browsersettings->get_associatedportalarns( ) into lo_row.
lo_row_1 = lo_row.
IF lo_row_1 IS NOT INITIAL.
lv_arn = lo_row_1->get_value( ).
ENDIF.
ENDLOOP.
lv_browserpolicy = lo_browsersettings->get_browserpolicy( ).
lv_keyarn = lo_browsersettings->get_customermanagedkey( ).
LOOP AT lo_browsersettings->get_additionalenccontext( ) into ls_row_2.
lv_key = ls_row_2-key.
lo_value = ls_row_2-value.
IF lo_value IS NOT INITIAL.
lv_stringtype = lo_value->get_value( ).
ENDIF.
ENDLOOP.
lo_webcontentfilteringpoli = lo_browsersettings->get_webcontfilteringpolicy( ).
IF lo_webcontentfilteringpoli IS NOT INITIAL.
LOOP AT lo_webcontentfilteringpoli->get_blockedcategories( ) into lo_row_3.
lo_row_4 = lo_row_3.
IF lo_row_4 IS NOT INITIAL.
lv_category = lo_row_4->get_value( ).
ENDIF.
ENDLOOP.
LOOP AT lo_webcontentfilteringpoli->get_allowedurls( ) into lo_row_5.
lo_row_6 = lo_row_5.
IF lo_row_6 IS NOT INITIAL.
lv_urlpattern = lo_row_6->get_value( ).
ENDIF.
ENDLOOP.
LOOP AT lo_webcontentfilteringpoli->get_blockedurls( ) into lo_row_5.
lo_row_6 = lo_row_5.
IF lo_row_6 IS NOT INITIAL.
lv_urlpattern = lo_row_6->get_value( ).
ENDIF.
ENDLOOP.
ENDIF.
ENDIF.
ENDIF.