/AWS1/IF_REK=>DISASSOCIATEFACES()¶
About DisassociateFaces¶
Removes the association between a Face supplied in an array of
FaceIds and the User. If the User is not present already, then a
ResourceNotFound exception is thrown. If successful, an array of faces that are
disassociated from the User is returned. If a given face is already disassociated from the
given UserID, it will be ignored and not be returned in the response. If a given face is
already associated with a different User or not found in the collection it will be returned as
part of UnsuccessfulDisassociations. You can remove 1 - 100 face IDs from a user
at one time.
Method Signature¶
METHODS /AWS1/IF_REK~DISASSOCIATEFACES
IMPORTING
!IV_COLLECTIONID TYPE /AWS1/REKCOLLECTIONID OPTIONAL
!IV_USERID TYPE /AWS1/REKUSERID OPTIONAL
!IV_CLIENTREQUESTTOKEN TYPE /AWS1/REKCLIENTREQUESTTOKEN OPTIONAL
!IT_FACEIDS TYPE /AWS1/CL_REKUSERFACEIDLIST_W=>TT_USERFACEIDLIST OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_rekdisassocfacesrsp
RAISING
/AWS1/CX_REKACCESSDENIEDEX
/AWS1/CX_REKCONFLICTEXCEPTION
/AWS1/CX_REKIDEMPOTENTPRMMIS00
/AWS1/CX_REKINTERNALSERVERERR
/AWS1/CX_REKINVALIDPARAMETEREX
/AWS1/CX_REKPROVTHRUPUTEXCDEX
/AWS1/CX_REKRESOURCENOTFOUNDEX
/AWS1/CX_REKTHROTTLINGEX
/AWS1/CX_REKCLIENTEXC
/AWS1/CX_REKSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_collectionid TYPE /AWS1/REKCOLLECTIONID /AWS1/REKCOLLECTIONID¶
The ID of an existing collection containing the UserID.
iv_userid TYPE /AWS1/REKUSERID /AWS1/REKUSERID¶
ID for the existing UserID.
it_faceids TYPE /AWS1/CL_REKUSERFACEIDLIST_W=>TT_USERFACEIDLIST TT_USERFACEIDLIST¶
An array of face IDs to disassociate from the UserID.
Optional arguments:¶
iv_clientrequesttoken TYPE /AWS1/REKCLIENTREQUESTTOKEN /AWS1/REKCLIENTREQUESTTOKEN¶
Idempotent token used to identify the request to
DisassociateFaces. If you use the same token with multipleDisassociateFacesrequests, the same response is returned. Use ClientRequestToken to prevent the same request from being processed more than once.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_rekdisassocfacesrsp /AWS1/CL_REKDISASSOCFACESRSP¶
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->disassociatefaces(
it_faceids = VALUE /aws1/cl_rekuserfaceidlist_w=>tt_userfaceidlist(
( new /aws1/cl_rekuserfaceidlist_w( |string| ) )
)
iv_clientrequesttoken = |string|
iv_collectionid = |string|
iv_userid = |string|
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
LOOP AT lo_result->get_disassociatedfaces( ) into lo_row.
lo_row_1 = lo_row.
IF lo_row_1 IS NOT INITIAL.
lv_faceid = lo_row_1->get_faceid( ).
ENDIF.
ENDLOOP.
LOOP AT lo_result->get_unsuccfulfacedisassoci00( ) into lo_row_2.
lo_row_3 = lo_row_2.
IF lo_row_3 IS NOT INITIAL.
lv_faceid = lo_row_3->get_faceid( ).
lv_userid = lo_row_3->get_userid( ).
LOOP AT lo_row_3->get_reasons( ) into lo_row_4.
lo_row_5 = lo_row_4.
IF lo_row_5 IS NOT INITIAL.
lv_unsuccessfulfacedisasso = lo_row_5->get_value( ).
ENDIF.
ENDLOOP.
ENDIF.
ENDLOOP.
lv_userstatus = lo_result->get_userstatus( ).
ENDIF.
DisassociateFaces¶
Removes the association between a Face supplied in an array of FaceIds and the User.
DATA(lo_result) = lo_client->disassociatefaces(
it_faceids = VALUE /aws1/cl_rekuserfaceidlist_w=>tt_userfaceidlist(
( new /aws1/cl_rekuserfaceidlist_w( |f5817d37-94f6-4335-bfee-6cf79a3d806e| ) )
( new /aws1/cl_rekuserfaceidlist_w( |c92265d4-5f9c-43af-a58e-12be0ce02bc3| ) )
)
iv_clientrequesttoken = |550e8400-e29b-41d4-a716-446655440003|
iv_collectionid = |MyCollection|
iv_userid = |DemoUser|
).