/AWS1/IF_DIR=>GETLINKATTRIBUTES00()¶
About GetLinkAttributes¶
Retrieves attributes that are associated with a typed link.
Method Signature¶
METHODS /AWS1/IF_DIR~GETLINKATTRIBUTES00
IMPORTING
!IV_DIRECTORYARN TYPE /AWS1/DIRARN OPTIONAL
!IO_TYPEDLINKSPECIFIER TYPE REF TO /AWS1/CL_DIRTYPEDLINKSPECIFIER OPTIONAL
!IT_ATTRIBUTENAMES TYPE /AWS1/CL_DIRATTRNAMELIST_W=>TT_ATTRIBUTENAMELIST OPTIONAL
!IV_CONSISTENCYLEVEL TYPE /AWS1/DIRCONSISTENCYLEVEL OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_dirgetlinkattrsrsp
RAISING
/AWS1/CX_DIRACCESSDENIEDEX
/AWS1/CX_DIRDIRECTORYNOTENBDEX
/AWS1/CX_DIRFACETVALIDATIONEX
/AWS1/CX_DIRINTERNALSERVICEEX
/AWS1/CX_DIRINVALIDARNEX
/AWS1/CX_DIRLIMITEXCEEDEDEX
/AWS1/CX_DIRRESOURCENOTFOUNDEX
/AWS1/CX_DIRRETRYABLECONFLIC00
/AWS1/CX_DIRVALIDATIONEX
/AWS1/CX_DIRCLIENTEXC
/AWS1/CX_DIRSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_directoryarn TYPE /AWS1/DIRARN /AWS1/DIRARN¶
The Amazon Resource Name (ARN) that is associated with the Directory where the typed link resides. For more information, see arns or Typed Links.
io_typedlinkspecifier TYPE REF TO /AWS1/CL_DIRTYPEDLINKSPECIFIER /AWS1/CL_DIRTYPEDLINKSPECIFIER¶
Allows a typed link specifier to be accepted as input.
it_attributenames TYPE /AWS1/CL_DIRATTRNAMELIST_W=>TT_ATTRIBUTENAMELIST TT_ATTRIBUTENAMELIST¶
A list of attribute names whose values will be retrieved.
Optional arguments:¶
iv_consistencylevel TYPE /AWS1/DIRCONSISTENCYLEVEL /AWS1/DIRCONSISTENCYLEVEL¶
The consistency level at which to retrieve the attributes on a typed link.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_dirgetlinkattrsrsp /AWS1/CL_DIRGETLINKATTRSRSP¶
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->getlinkattributes00(
io_typedlinkspecifier = new /aws1/cl_dirtypedlinkspecifier(
io_sourceobjectreference = new /aws1/cl_dirobjectreference( |string| )
io_targetobjectreference = new /aws1/cl_dirobjectreference( |string| )
io_typedlinkfacet = new /aws1/cl_dirtypedlinkschandf00(
iv_schemaarn = |string|
iv_typedlinkname = |string|
)
it_identityattributevalues = VALUE /aws1/cl_dirattrnameandvalue=>tt_attributenameandvaluelist(
(
new /aws1/cl_dirattrnameandvalue(
io_value = new /aws1/cl_dirtypedattrvalue(
iv_binaryvalue = '5347567362473873563239796247513D'
iv_booleanvalue = ABAP_TRUE
iv_datetimevalue = '20150101000000.0000000'
iv_numbervalue = |string|
iv_stringvalue = |string|
)
iv_attributename = |string|
)
)
)
)
it_attributenames = VALUE /aws1/cl_dirattrnamelist_w=>tt_attributenamelist(
( new /aws1/cl_dirattrnamelist_w( |string| ) )
)
iv_consistencylevel = |string|
iv_directoryarn = |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_attributes( ) into lo_row.
lo_row_1 = lo_row.
IF lo_row_1 IS NOT INITIAL.
lo_attributekey = lo_row_1->get_key( ).
IF lo_attributekey IS NOT INITIAL.
lv_arn = lo_attributekey->get_schemaarn( ).
lv_facetname = lo_attributekey->get_facetname( ).
lv_attributename = lo_attributekey->get_name( ).
ENDIF.
lo_typedattributevalue = lo_row_1->get_value( ).
IF lo_typedattributevalue IS NOT INITIAL.
lv_stringattributevalue = lo_typedattributevalue->get_stringvalue( ).
lv_binaryattributevalue = lo_typedattributevalue->get_binaryvalue( ).
lv_booleanattributevalue = lo_typedattributevalue->get_booleanvalue( ).
lv_numberattributevalue = lo_typedattributevalue->get_numbervalue( ).
lv_datetimeattributevalue = lo_typedattributevalue->get_datetimevalue( ).
ENDIF.
ENDIF.
ENDLOOP.
ENDIF.