/AWS1/IF_DIR=>GETFACET()¶
About GetFacet¶
Gets details of the Facet, such as facet name, attributes, Rules, or ObjectType. You can call this on all kinds of schema
facets -- published, development, or applied.
Method Signature¶
METHODS /AWS1/IF_DIR~GETFACET
IMPORTING
!IV_SCHEMAARN TYPE /AWS1/DIRARN OPTIONAL
!IV_NAME TYPE /AWS1/DIRFACETNAME OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_dirgetfacetresponse
RAISING
/AWS1/CX_DIRACCESSDENIEDEX
/AWS1/CX_DIRFACETNOTFOUNDEX
/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_schemaarn TYPE /AWS1/DIRARN /AWS1/DIRARN¶
The Amazon Resource Name (ARN) that is associated with the Facet. For more information, see arns.
iv_name TYPE /AWS1/DIRFACETNAME /AWS1/DIRFACETNAME¶
The name of the facet to retrieve.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_dirgetfacetresponse /AWS1/CL_DIRGETFACETRESPONSE¶
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->getfacet(
iv_name = |string|
iv_schemaarn = |string|
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
lo_facet = lo_result->get_facet( ).
IF lo_facet IS NOT INITIAL.
lv_facetname = lo_facet->get_name( ).
lv_objecttype = lo_facet->get_objecttype( ).
lv_facetstyle = lo_facet->get_facetstyle( ).
ENDIF.
ENDIF.
To get information about a facet¶
DATA(lo_result) = lo_client->getfacet(
iv_name = |node2|
iv_schemaarn = |arn:aws:clouddirectory:us-west-2:45132example:directory/AYb8AOV81kHNgdj8mAO3dNY/schema/org/1|
).