/AWS1/IF_WKR=>UPDATESECURITYGROUP()¶
About UpdateSecurityGroup¶
Updates the properties of an existing security group in a Wickr network, such as its name or settings.
Method Signature¶
METHODS /AWS1/IF_WKR~UPDATESECURITYGROUP
IMPORTING
!IV_NETWORKID TYPE /AWS1/WKRNETWORKID OPTIONAL
!IV_GROUPID TYPE /AWS1/WKRGENERICSTRING OPTIONAL
!IV_NAME TYPE /AWS1/WKRGENERICSTRING OPTIONAL
!IO_SECURITYGROUPSETTINGS TYPE REF TO /AWS1/CL_WKRSECURITYGROUPSTGS OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_wkrupdatesecgrouprsp
RAISING
/AWS1/CX_WKRBADREQUESTERROR
/AWS1/CX_WKRFORBIDDENERROR
/AWS1/CX_WKRINTSERVERERROR
/AWS1/CX_WKRRATELIMITERROR
/AWS1/CX_WKRRESNOTFOUNDERROR
/AWS1/CX_WKRUNAUTHORIZEDERROR
/AWS1/CX_WKRVALIDATIONERROR
/AWS1/CX_WKRCLIENTEXC
/AWS1/CX_WKRSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_networkid TYPE /AWS1/WKRNETWORKID /AWS1/WKRNETWORKID¶
The ID of the Wickr network containing the security group to update.
iv_groupid TYPE /AWS1/WKRGENERICSTRING /AWS1/WKRGENERICSTRING¶
The unique identifier of the security group to update.
Optional arguments:¶
iv_name TYPE /AWS1/WKRGENERICSTRING /AWS1/WKRGENERICSTRING¶
The new name for the security group.
io_securitygroupsettings TYPE REF TO /AWS1/CL_WKRSECURITYGROUPSTGS /AWS1/CL_WKRSECURITYGROUPSTGS¶
The updated configuration settings for the security group.
Federation mode - 0 (Local federation), 1 (Restricted federation), 2 (Global federation)
RETURNING¶
oo_output TYPE REF TO /aws1/cl_wkrupdatesecgrouprsp /AWS1/CL_WKRUPDATESECGROUPRSP¶
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->updatesecuritygroup(
io_securitygroupsettings = new /aws1/cl_wkrsecuritygroupstgs(
io_calling = new /aws1/cl_wkrcallingsettings(
iv_canstart11call = ABAP_TRUE
iv_canvideocall = ABAP_TRUE
iv_forcetcpcall = ABAP_TRUE
)
io_passwordrequirements = new /aws1/cl_wkrpasswordreqs(
iv_lowercase = 123
iv_minlength = 123
iv_numbers = 123
iv_symbols = 123
iv_uppercase = 123
)
io_shredder = new /aws1/cl_wkrshreddersettings(
iv_canprocessmanually = ABAP_TRUE
iv_intensity = 123
)
it_atakpackagevalues = VALUE /aws1/cl_wkrsecgroupstrlist_w=>tt_securitygroupstringlist(
( new /aws1/cl_wkrsecgroupstrlist_w( |string| ) )
)
it_permittednetworks = VALUE /aws1/cl_wkrpermittednetslst_w=>tt_permittednetworkslist(
( new /aws1/cl_wkrpermittednetslst_w( |string| ) )
)
it_permittedwickrawsnetworks = VALUE /aws1/cl_wkrwickrawsnetworks=>tt_wickrawsnetworkslist(
(
new /aws1/cl_wkrwickrawsnetworks(
iv_networkid = |string|
iv_region = |string|
)
)
)
it_permittedwickrentrpnets = VALUE /aws1/cl_wkrpermittedwickren00=>tt_permittedwickrentrpnetslist(
(
new /aws1/cl_wkrpermittedwickren00(
iv_domain = |string|
iv_networkid = |string|
)
)
)
it_quickresponses = VALUE /aws1/cl_wkrsecgroupstrlist_w=>tt_securitygroupstringlist(
( new /aws1/cl_wkrsecgroupstrlist_w( |string| ) )
)
iv_alwaysreauthenticate = ABAP_TRUE
iv_checkforupdates = ABAP_TRUE
iv_enableatak = ABAP_TRUE
iv_enablecrashreports = ABAP_TRUE
iv_enablefiledownload = ABAP_TRUE
iv_enableguestfederation = ABAP_TRUE
iv_enablenotificationpreview = ABAP_TRUE
iv_enableopenaccessoption = ABAP_TRUE
iv_enablerestrictedglbfedr8n = ABAP_TRUE
iv_federationmode = 123
iv_filesenabled = ABAP_TRUE
iv_forcedevicelockout = 123
iv_forceopenaccess = ABAP_TRUE
iv_forcereadreceipts = ABAP_TRUE
iv_globalfederation = ABAP_TRUE
iv_isatoenabled = ABAP_TRUE
iv_islinkpreviewenabled = ABAP_TRUE
iv_locationallowmaps = ABAP_TRUE
iv_locationenabled = ABAP_TRUE
iv_lockoutthreshold = 123
iv_maxautodownloadsize = 123
iv_maxbor = 123
iv_maxttl = 123
iv_messageforwardingenabled = ABAP_TRUE
iv_presenceenabled = ABAP_TRUE
iv_showmasterrecoverykey = ABAP_TRUE
iv_ssomaxidleminutes = 123
)
iv_groupid = |string|
iv_name = |string|
iv_networkid = |string|
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
lo_securitygroup = lo_result->get_securitygroup( ).
IF lo_securitygroup IS NOT INITIAL.
lv_integer = lo_securitygroup->get_activemembers( ).
lv_integer = lo_securitygroup->get_botmembers( ).
lv_genericstring = lo_securitygroup->get_activedirectoryguid( ).
lv_genericstring = lo_securitygroup->get_id( ).
lv_boolean = lo_securitygroup->get_isdefault( ).
lv_genericstring = lo_securitygroup->get_name( ).
lv_integer = lo_securitygroup->get_modified( ).
lo_securitygroupsettings = lo_securitygroup->get_securitygroupsettings( ).
IF lo_securitygroupsettings IS NOT INITIAL.
lv_boolean = lo_securitygroupsettings->get_alwaysreauthenticate( ).
LOOP AT lo_securitygroupsettings->get_atakpackagevalues( ) into lo_row.
lo_row_1 = lo_row.
IF lo_row_1 IS NOT INITIAL.
lv_genericstring = lo_row_1->get_value( ).
ENDIF.
ENDLOOP.
lo_callingsettings = lo_securitygroupsettings->get_calling( ).
IF lo_callingsettings IS NOT INITIAL.
lv_boolean = lo_callingsettings->get_canstart11call( ).
lv_boolean = lo_callingsettings->get_canvideocall( ).
lv_boolean = lo_callingsettings->get_forcetcpcall( ).
ENDIF.
lv_boolean = lo_securitygroupsettings->get_checkforupdates( ).
lv_boolean = lo_securitygroupsettings->get_enableatak( ).
lv_boolean = lo_securitygroupsettings->get_enablecrashreports( ).
lv_boolean = lo_securitygroupsettings->get_enablefiledownload( ).
lv_boolean = lo_securitygroupsettings->get_enableguestfederation( ).
lv_boolean = lo_securitygroupsettings->get_enablenotifpreview( ).
lv_boolean = lo_securitygroupsettings->get_enableopenaccessoption( ).
lv_boolean = lo_securitygroupsettings->get_enbrestrictedglbfedr8n( ).
lv_boolean = lo_securitygroupsettings->get_filesenabled( ).
lv_integer = lo_securitygroupsettings->get_forcedevicelockout( ).
lv_boolean = lo_securitygroupsettings->get_forceopenaccess( ).
lv_boolean = lo_securitygroupsettings->get_forcereadreceipts( ).
lv_boolean = lo_securitygroupsettings->get_globalfederation( ).
lv_boolean = lo_securitygroupsettings->get_isatoenabled( ).
lv_boolean = lo_securitygroupsettings->get_islinkpreviewenabled( ).
lv_boolean = lo_securitygroupsettings->get_locationallowmaps( ).
lv_boolean = lo_securitygroupsettings->get_locationenabled( ).
lv_long = lo_securitygroupsettings->get_maxautodownloadsize( ).
lv_integer = lo_securitygroupsettings->get_maxbor( ).
lv_long = lo_securitygroupsettings->get_maxttl( ).
lv_boolean = lo_securitygroupsettings->get_messageforwardingenabled( ).
lo_passwordrequirements = lo_securitygroupsettings->get_passwordrequirements( ).
IF lo_passwordrequirements IS NOT INITIAL.
lv_integer = lo_passwordrequirements->get_lowercase( ).
lv_integer = lo_passwordrequirements->get_minlength( ).
lv_integer = lo_passwordrequirements->get_numbers( ).
lv_integer = lo_passwordrequirements->get_symbols( ).
lv_integer = lo_passwordrequirements->get_uppercase( ).
ENDIF.
lv_boolean = lo_securitygroupsettings->get_presenceenabled( ).
LOOP AT lo_securitygroupsettings->get_quickresponses( ) into lo_row.
lo_row_1 = lo_row.
IF lo_row_1 IS NOT INITIAL.
lv_genericstring = lo_row_1->get_value( ).
ENDIF.
ENDLOOP.
lv_boolean = lo_securitygroupsettings->get_showmasterrecoverykey( ).
lo_shreddersettings = lo_securitygroupsettings->get_shredder( ).
IF lo_shreddersettings IS NOT INITIAL.
lv_boolean = lo_shreddersettings->get_canprocessmanually( ).
lv_integer = lo_shreddersettings->get_intensity( ).
ENDIF.
lv_integer = lo_securitygroupsettings->get_ssomaxidleminutes( ).
lv_integer = lo_securitygroupsettings->get_federationmode( ).
lv_integer = lo_securitygroupsettings->get_lockoutthreshold( ).
LOOP AT lo_securitygroupsettings->get_permittednetworks( ) into lo_row_2.
lo_row_3 = lo_row_2.
IF lo_row_3 IS NOT INITIAL.
lv_networkid = lo_row_3->get_value( ).
ENDIF.
ENDLOOP.
LOOP AT lo_securitygroupsettings->get_permittedwickrawsnets( ) into lo_row_4.
lo_row_5 = lo_row_4.
IF lo_row_5 IS NOT INITIAL.
lv_genericstring = lo_row_5->get_region( ).
lv_networkid = lo_row_5->get_networkid( ).
ENDIF.
ENDLOOP.
LOOP AT lo_securitygroupsettings->get_permittedwickrentrpnets( ) into lo_row_6.
lo_row_7 = lo_row_6.
IF lo_row_7 IS NOT INITIAL.
lv_genericstring = lo_row_7->get_domain( ).
lv_networkid = lo_row_7->get_networkid( ).
ENDIF.
ENDLOOP.
ENDIF.
ENDIF.
ENDIF.
Update security group successfully¶
Update security group successfully
DATA(lo_result) = lo_client->updatesecuritygroup(
io_securitygroupsettings = new /aws1/cl_wkrsecuritygroupstgs( iv_lockoutthreshold = 15 )
iv_groupid = |abc12345|
iv_name = |Updated Group Name|
iv_networkid = |12345678|
).
Update security group - not found¶
Update security group - not found
DATA(lo_result) = lo_client->updatesecuritygroup(
iv_groupid = |invalid99|
iv_name = |New Name|
iv_networkid = |12345678|
).