/AWS1/IF_AG2=>GETPORTAL()¶
About GetPortal¶
Gets a portal.
Method Signature¶
METHODS /AWS1/IF_AG2~GETPORTAL
IMPORTING
!IV_PORTALID TYPE /AWS1/AG2__STRING OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_ag2getportalresponse
RAISING
/AWS1/CX_AG2ACCESSDENIEDEX
/AWS1/CX_AG2BADREQUESTEX
/AWS1/CX_AG2NOTFOUNDEXCEPTION
/AWS1/CX_AG2TOOMANYREQUESTSEX
/AWS1/CX_AG2CLIENTEXC
/AWS1/CX_AG2SERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_portalid TYPE /AWS1/AG2__STRING /AWS1/AG2__STRING¶
The portal identifier.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_ag2getportalresponse /AWS1/CL_AG2GETPORTALRESPONSE¶
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->getportal( |string| ).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
lo_authorization = lo_result->get_authorization( ).
IF lo_authorization IS NOT INITIAL.
lo_cognitoconfig = lo_authorization->get_cognitoconfig( ).
IF lo_cognitoconfig IS NOT INITIAL.
lv___stringmin1max256 = lo_cognitoconfig->get_appclientid( ).
lv___stringmin20max2048 = lo_cognitoconfig->get_userpoolarn( ).
lv___stringmin20max2048 = lo_cognitoconfig->get_userpooldomain( ).
ENDIF.
lo_none = lo_authorization->get_none( ).
IF lo_none IS NOT INITIAL.
ENDIF.
ENDIF.
lo_endpointconfigurationre = lo_result->get_endpointconfiguration( ).
IF lo_endpointconfigurationre IS NOT INITIAL.
lv___stringmin10max2048 = lo_endpointconfigurationre->get_certificatearn( ).
lv___stringmin3max256 = lo_endpointconfigurationre->get_domainname( ).
lv___stringmin3max256 = lo_endpointconfigurationre->get_portaldefaultdomainname( ).
lv___stringmin1max64 = lo_endpointconfigurationre->get_portaldomainhostedzoneid( ).
ENDIF.
LOOP AT lo_result->get_incldportalproductarns( ) into lo_row.
lo_row_1 = lo_row.
IF lo_row_1 IS NOT INITIAL.
lv___stringmin20max2048 = lo_row_1->get_value( ).
ENDIF.
ENDLOOP.
lv___timestampiso8601 = lo_result->get_lastmodified( ).
lv___timestampiso8601 = lo_result->get_lastpublished( ).
lv___stringmin0max1024 = lo_result->get_lastpublisheddescription( ).
lv___stringmin20max2048 = lo_result->get_portalarn( ).
lo_portalcontent = lo_result->get_portalcontent( ).
IF lo_portalcontent IS NOT INITIAL.
lv___stringmin0max1024 = lo_portalcontent->get_description( ).
lv___stringmin3max255 = lo_portalcontent->get_displayname( ).
lo_portaltheme = lo_portalcontent->get_theme( ).
IF lo_portaltheme IS NOT INITIAL.
lo_customcolors = lo_portaltheme->get_customcolors( ).
IF lo_customcolors IS NOT INITIAL.
lv___stringmin1max16 = lo_customcolors->get_accentcolor( ).
lv___stringmin1max16 = lo_customcolors->get_backgroundcolor( ).
lv___stringmin1max16 = lo_customcolors->get_errorvalidationcolor( ).
lv___stringmin1max16 = lo_customcolors->get_headercolor( ).
lv___stringmin1max16 = lo_customcolors->get_navigationcolor( ).
lv___stringmin1max16 = lo_customcolors->get_textcolor( ).
ENDIF.
lv___timestampiso8601 = lo_portaltheme->get_logolastuploaded( ).
ENDIF.
ENDIF.
lv___stringmin10max30patte = lo_result->get_portalid( ).
lo_preview = lo_result->get_preview( ).
IF lo_preview IS NOT INITIAL.
lv_previewstatus = lo_preview->get_previewstatus( ).
lv___string = lo_preview->get_previewurl( ).
lo_statusexception = lo_preview->get_statusexception( ).
IF lo_statusexception IS NOT INITIAL.
lv___stringmin1max256 = lo_statusexception->get_exception( ).
lv___stringmin1max2048 = lo_statusexception->get_message( ).
ENDIF.
ENDIF.
lv_publishstatus = lo_result->get_publishstatus( ).
lv___stringmin0max255 = lo_result->get_rumappmonitorname( ).
lo_statusexception = lo_result->get_statusexception( ).
IF lo_statusexception IS NOT INITIAL.
lv___stringmin1max256 = lo_statusexception->get_exception( ).
lv___stringmin1max2048 = lo_statusexception->get_message( ).
ENDIF.
LOOP AT lo_result->get_tags( ) into ls_row_2.
lv_key = ls_row_2-key.
lo_value = ls_row_2-value.
IF lo_value IS NOT INITIAL.
lv_stringwithlengthbetween = lo_value->get_value( ).
ENDIF.
ENDLOOP.
ENDIF.