SAP ABAP Class CL_ESH_TREX_QUERY_HANDLER (Handle Query Transformation)
Hierarchy
☛
SAP_BASIS (Software Component) SAP Basis Component
⤷
BC-EIM-ESH (Application Component) NetWeaver Enterprise Search
⤷
S_ESH_ENG_SEARCH (Package) Search (internal)
⤷
⤷
Properties
| Class | CL_ESH_TREX_QUERY_HANDLER | |
| Short Description | Handle Query Transformation | |
| Super Class | ||
| Instantiability of a Class | 2 | Public |
| Final |
General Data
| Message Class | ||
| Program status | ||
| Category | 0 | |
| Package | S_ESH_ENG_SEARCH | Search (internal) |
| Created | 20091230 | SAP |
| Last change | 20141121 | |
| Shared Memory-enabled | ||
| Fixed point arithmetic | ||
| Unicode checks active |
Forward declarations
| # | Type group / Object type | Type | Type Description |
|---|---|---|---|
| 1 | Type group use (TYPE-POOLS tp) | Type group use (TYPE-POOLS tp) | |
| 2 | Forward declaration interface (INTERFACE i DEFINITION DEF... | Forward declaration interface (INTERFACE i DEFINITION DEF... |
Interfaces
Class CL_ESH_TREX_QUERY_HANDLER has no interface implemented.
Friends
| # | Friend | Modeled only | Created on | Description |
|---|---|---|---|---|
| 1 | CL_ESH_SE_SEARCH_REQUEST | 20100607 | Search Request |
Attributes
| # | Attribute | Level | Visibility | Read only | Typing | Associated Type | Initial Value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | Constant | Private | Type reference (TYPE) | CHAR5 | 'FALSE' | False | 20131112 | ||
| 2 | Constant | Private | Type reference (TYPE) | CHAR5 | 'TRUE' | True | 20131112 | ||
| 3 | Instance attribute | Protected | Object reference (TYPE REF TO) | CL_ESH_SE_SEARCH_DEBUGGING | Search debugger | 20100607 | |||
| 4 | Static Attribute | Private | Type reference (TYPE) | TREXT_HINTS | Hints for the optimizer | 20091230 |
Methods
| # | Method | Level | Visibility | Method type | Description | Created on |
|---|---|---|---|---|---|---|
| 1 | Instance method | Private | Method | Build the authorization query without using query parts | 20131112 | |
| 2 | Instance method | Private | Method | Build query parts for the query | 20131112 | |
| 3 | Static method | Private | Method | Build query part | 20091230 | |
| 4 | Static method | Public | Constructor | CLASS_CONSTRUCTOR | 20091230 | |
| 5 | Instance method | Private | Method | Convert the federation query to a common runtime one | 20091230 | |
| 6 | Instance method | Public | Method | Get authorization query | 20100908 | |
| 7 | Instance method | Public | Method | Get the authorization query for the specified request | 20131112 | |
| 8 | Static method | Protected | Method | Get a query line with bracket | 20100601 | |
| 9 | Static method | Private | Method | Get difference from local time to UTC | 20101115 | |
| 10 | Static method | Protected | Method | Get a query line with bracket | 20100601 | |
| 11 | Instance method | Public | Method | Get the query to be passed to TREX | 20091230 | |
| 12 | Instance method | Private | Method | Build query parts for the query | 20091230 | |
| 13 | Instance method | Private | Method | Prepare the query | 20110323 | |
| 14 | Instance method | Private | Method | Process an authorization object | 20131112 | |
| 15 | Instance method | Private | Method | Process expression tokens | 20131112 | |
| 16 | Instance method | Private | Method | Process authorization fix values | 20131112 | |
| 17 | Instance method | Private | Method | Process the logical expression | 20131112 | |
| 18 | Instance method | Private | Method | Reduce logical expression | 20131112 | |
| 19 | Static method | Private | Method | Add the hints for TREX | 20091230 | |
| 20 | Instance method | Public | Method | Set object for search debugging | 20100607 |
Events
Class CL_ESH_TREX_QUERY_HANDLER has no event.
Types
| # | Type | Visibility | Typing | Associated Type | Description | Created on | Type Source |
|---|---|---|---|---|---|---|---|
| 1 | LTY_S_AUTH_QUERY_TYPE | Private | See coding | 20131112 | BEGIN OF lty_s_auth_query_type,
auth_check TYPE esh_e_om_auth_check,
query_entries TYPE hdbt_query_entries,
END OF lty_s_auth_query_type
|
||
| 2 | LTY_S_FULL_AUTH_TYPE | Private | See coding | 20131112 | BEGIN OF lty_s_full_auth_type,
objct TYPE xuobject,
auth TYPE xuauth,
field TYPE xufield,
full_auth TYPE abap_bool,
END OF lty_s_full_auth_type
|
||
| 3 | LTY_T_AUTH_QUERY_TYPE | Private | See coding | 20131112 | LTY_T_AUTH_QUERY_TYPE TYPE SORTED TABLE OF lty_s_auth_query_type WITH UNIQUE KEY auth_check
|
||
| 4 | LTY_T_FULL_AUTH_TYPE | Private | See coding | 20131112 | LTY_T_FULL_AUTH_TYPE TYPE SORTED TABLE OF lty_s_full_auth_type WITH UNIQUE KEY objct auth field
|
Method Signatures
Method BUILD_AUTHORIZATION_QUERY Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | CT_QUERY_ENTRIES | Call by reference | Type reference (TYPE) | HDBT_QUERY_ENTRIES | Search query | 20131112 | |||
| 2 | IT_QUERY_ENTRIES | Call by reference | Type reference (TYPE) | LTY_T_AUTH_QUERY_TYPE | Query entries per attribute | 20131112 | |||
| 3 | IV_LOGICAL_EXPRESSION | Call by reference | Type reference (TYPE) | STRING | Logical expression | 20131112 |
Method BUILD_AUTHORIZATION_QUERY on class CL_ESH_TREX_QUERY_HANDLER has no exception.
Method BUILD_AUTHORIZATION_QUERY_QP Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | CT_HINTS | Call by reference | Type reference (TYPE) | TREXT_HINTS | Hints for the optimizer | 20131112 | |||
| 2 | CT_QUERY_ENTRIES | Call by reference | Type reference (TYPE) | HDBT_QUERY_ENTRIES | Search query | 20131112 | |||
| 3 | IT_QUERY_ENTRIES | Call by reference | Type reference (TYPE) | LTY_T_AUTH_QUERY_TYPE | Query entries per attribute | 20131112 | |||
| 4 | IV_LOGICAL_EXPRESSION | Call by reference | Type reference (TYPE) | STRING | Logical expression | 20131112 |
Method BUILD_AUTHORIZATION_QUERY_QP on class CL_ESH_TREX_QUERY_HANDLER has no exception.
Method BUILD_QUERY_PART Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | ET_EXTENDED_QUERY | Call by reference | Type reference (TYPE) | HDBT_QUERY_ENTRIES | HANA: Search query | 20091230 | |||
| 2 | ET_HINTS | Call by reference | Type reference (TYPE) | TREXT_HINTS | 20091230 | ||||
| 3 | EV_QUERY_PART | Call by reference | Type reference (TYPE) | INT2 | 20091230 | ||||
| 4 | EV_QUERY_PART_STRING | Call by reference | Type reference (TYPE) | STRING | 20091230 | ||||
| 5 | IT_QUERY | Call by reference | Type reference (TYPE) | HDBT_QUERY_ENTRIES | HANA: Search query | 20091230 | |||
| 6 | IT_TOKENS | Call by reference | Type reference (TYPE) | LTY_T_TOKEN_TYPE | 20091230 | ||||
| 7 | IV_AND_AS_QUERY_PART | Call by reference | Type reference (TYPE) | ABAP_BOOL | ABAP_FALSE | 20091230 | |||
| 8 | IV_EXPRESSION_COUNTER | Call by reference | Type reference (TYPE) | NUMC4 | 20091230 | ||||
| 9 | IV_NODE_HASH | Call by reference | Type reference (TYPE) | CHAR24 | 20091230 | ||||
| 10 | IV_QUERY_PART | Call by reference | Type reference (TYPE) | INT2 | 1000 | 20091230 | |||
| 11 | IV_USER_NAME | Call by reference | Type reference (TYPE) | SYUNAME | SYST-UNAME | 20091230 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | 20091230 | |||
| 2 | 20091230 |
Method CLASS_CONSTRUCTOR Signature
Method CLASS_CONSTRUCTOR on class CL_ESH_TREX_QUERY_HANDLER has no parameter.
Method CLASS_CONSTRUCTOR on class CL_ESH_TREX_QUERY_HANDLER has no exception.
Method CONVERT_FED_2_TREX_QUERY Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | ET_QUERY | Call by reference | Type reference (TYPE) | HDBT_QUERY_ENTRIES | HANA: Search query | 20131205 | |||
| 2 | IT_FEDERATION_QUERY | Call by reference | Type reference (TYPE) | ESH_T_FED_QUERY_ENTRY | Query | 20091230 |
Method CONVERT_FED_2_TREX_QUERY on class CL_ESH_TREX_QUERY_HANDLER has no exception.
Method GET_AUTHORIZATION_QUERY Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | ET_CONSTRAINTS | Call by reference | Type reference (TYPE) | TREXT_PLACEHOLDERS | 20100908 | ||||
| 2 | ET_HINTS | Call by reference | Type reference (TYPE) | TREXT_HINTS | 20100908 | ||||
| 3 | ET_INCLUDE_QUERY | Call by reference | Type reference (TYPE) | HDBT_QUERY_ENTRIES | HANA: Search query | 20100908 | |||
| 4 | IS_CONNECTOR_X | Call by reference | Type reference (TYPE) | IF_ESH_SE_RUNTIME_DATA=>S_SEARCH_EXEC_SORTED | 20100908 | ||||
| 5 | IT_QUERY | Call by reference | Type reference (TYPE) | HDBT_QUERY_ENTRIES | HANA: Search query | 20100908 | |||
| 6 | IV_BUILD_BUFFER | Call by reference | Type reference (TYPE) | ABAP_BOOL | ABAP_FALSE | 20100908 | |||
| 7 | IV_CONNECTOR_ID | Call by reference | Type reference (TYPE) | ESH_E_IF_SEARCH_CONNECTOR_ID | 20100908 | ||||
| 8 | IV_REQUEST_TYPE_ID | Call by reference | Type reference (TYPE) | ESH_E_OM_REQUEST | 20100908 |
Method GET_AUTHORIZATION_QUERY on class CL_ESH_TREX_QUERY_HANDLER has no exception.
Method GET_AUTH_QUERY_FOR_REQUEST Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | CT_HINTS | Call by reference | Type reference (TYPE) | TREXT_HINTS | Hints for the optimizer | 20131112 | |||
| 2 | CT_QUERY_ENTRIES | Call by reference | Type reference (TYPE) | HDBT_QUERY_ENTRIES | Search query | 20131112 | |||
| 3 | EV_FULL_AUTH | Call by reference | Type reference (TYPE) | ABAP_BOOL | User has full authorization | 20131112 | |||
| 4 | EV_NO_AUTH | Call by reference | Type reference (TYPE) | ABAP_BOOL | User is not authorized | 20131112 | |||
| 5 | IS_REQUEST_TYPE | Call by reference | Type reference (TYPE) | IF_ESH_SE_RUNTIME_DATA=>S_SEARCH_EXEC_REQU_TYPE | Request data | 20131128 | |||
| 6 | IV_NODE_NAME | Call by reference | Type reference (TYPE) | ESH_E_OM_NODE_NAME | Node Name | 20131112 | |||
| 7 | IV_OBJECT_TYPE | Call by reference | Type reference (TYPE) | ESH_E_OM_OBJECT_TYPE | Object Type | 20131112 | |||
| 8 | IV_REQUEST | Call by reference | Type reference (TYPE) | ESH_E_OM_REQUEST | Request | 20131112 |
Method GET_AUTH_QUERY_FOR_REQUEST on class CL_ESH_TREX_QUERY_HANDLER has no exception.
Method GET_BRACKET Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | ES_SEARCH | Value transfer | Type reference (TYPE) | HDBS_QUERY_ENTRY | Query Entry | 20100601 | |||
| 2 | IV_ROWTYPE | Call by reference | Type reference (TYPE) | TREXD_ROWTYPE | Rowtype (TERM, OPERATOR, ATTRIBUTE,FREESTYLE,...) | 20100601 |
Method GET_BRACKET on class CL_ESH_TREX_QUERY_HANDLER has no exception.
Method GET_LOCAL_TIME_TO_UTC_DIFF Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | EV_UTCDIFF | Call by reference | Type reference (TYPE) | TZNUTCDIFF | Difference of time zone from UTC (w/o Summer time) | 20101115 | |||
| 2 | EV_UTCSIGN | Call by reference | Type reference (TYPE) | TZNUTCSIGN | Sign of the Difference from UTC (+ or -) | 20101115 |
Method GET_LOCAL_TIME_TO_UTC_DIFF on class CL_ESH_TREX_QUERY_HANDLER has no exception.
Method GET_OPERATOR Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | ES_SEARCH | Value transfer | Type reference (TYPE) | HDBS_QUERY_ENTRY | Query Entry | 20100601 | |||
| 2 | IV_OPERATOR | Call by reference | Type reference (TYPE) | STRING | Operator (AND, OR) | 20100601 |
Method GET_OPERATOR on class CL_ESH_TREX_QUERY_HANDLER has no exception.
Method GET_QUERY Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | CT_TREX_AUTH_QUERY | Call by reference | Type reference (TYPE) | HDBT_QUERY_ENTRIES | HANA: Search query | 20091230 | |||
| 2 | CT_TREX_CONSTRAINTS | Call by reference | Type reference (TYPE) | TREXT_PLACEHOLDERS | 20091230 | ||||
| 3 | CT_TREX_HINTS | Call by reference | Type reference (TYPE) | TREXT_HINTS | 20091230 | ||||
| 4 | EV_NO_AUTHORITY | Call by reference | Type reference (TYPE) | ABAP_BOOL | Not authorized | 20131115 | |||
| 5 | IR_PROXY | Call by reference | Object reference (TYPE REF TO) | CL_ESH_TREX_PROXY_RUNTIME | Search Proxy | 20130823 | |||
| 6 | IS_CONNECTOR_EXECUTION | Call by reference | Type reference (TYPE) | IF_ESH_SE_RUNTIME_DATA=>S_SEARCH_EXEC_SORTED | 20091230 | ||||
| 7 | IT_FEDERATION_QUERY | Call by reference | Type reference (TYPE) | ESH_T_FED_QUERY_ENTRY | Query | 20091230 | |||
| 8 | IV_CONNECTOR_ID | Call by reference | Type reference (TYPE) | ESH_E_IF_SEARCH_CONNECTOR_ID | Search Connector ID | 20091230 | |||
| 9 | IV_NO_AUTH_QUERY | Call by reference | Type reference (TYPE) | ABAP_BOOL | ABAP_FALSE | 20101006 | |||
| 10 | IV_REQUEST_TYPE_ID | Call by reference | Type reference (TYPE) | ESH_E_OM_REQUEST | Request Type ID | 20091230 |
Method GET_QUERY on class CL_ESH_TREX_QUERY_HANDLER has no exception.
Method HANDLE_QUERY_QUERY_PARTS Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | CT_HINTS | Call by reference | Type reference (TYPE) | TREXT_HINTS | 20091230 | ||||
| 2 | CT_INCLUDE_QUERY | Call by reference | Type reference (TYPE) | HDBT_QUERY_ENTRIES | HANA: Search query | 20091230 | |||
| 3 | IT_QUERY | Call by reference | Type reference (TYPE) | HDBT_QUERY_ENTRIES | HANA: Search query | 20091230 |
Method HANDLE_QUERY_QUERY_PARTS on class CL_ESH_TREX_QUERY_HANDLER has no exception.
Method PREPARE_QUERY Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | CT_TREX_QUERY | Call by reference | Type reference (TYPE) | HDBT_QUERY_ENTRIES | Search Query | 20110323 | |||
| 2 | IR_PROXY | Call by reference | Object reference (TYPE REF TO) | CL_ESH_TREX_PROXY_RUNTIME | Search Proxy | 20130823 |
Method PREPARE_QUERY on class CL_ESH_TREX_QUERY_HANDLER has no exception.
Method PROCESS_AUTH_OBJECT Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | ET_QUERY_ENTRIES | Call by reference | Type reference (TYPE) | HDBT_QUERY_ENTRIES | Search query | 20131112 | |||
| 2 | EV_FULLY_AUTHORIZED | Call by reference | Type reference (TYPE) | ABAP_BOOL | Fully authorized | 20131112 | |||
| 3 | EV_NOT_AUTHORIZED | Call by reference | Type reference (TYPE) | ABAP_BOOL | Not authorized | 20131112 | |||
| 4 | IT_AUTH_DATA | Call by reference | Type reference (TYPE) | IF_ESH_SE_RUNTIME_DATA=>T_EXEC_REQU_TYPE_AUTHOBJS | Data for Authorization Object | 20131112 | |||
| 5 | IV_AUTH_OBJECT | Call by reference | Type reference (TYPE) | XUOBJECT | Authorization Object | 20131112 | |||
| 6 | IV_UNAME | Call by reference | Type reference (TYPE) | XUBNAME | SYST-UNAME | User Name in User Master Record | 20131112 |
Method PROCESS_AUTH_OBJECT on class CL_ESH_TREX_QUERY_HANDLER has no exception.
Method PROCESS_EXPRESSION_TOKENS Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | CV_LOGICAL_EXPRESSION | Call by reference | Type reference (TYPE) | STRING | Logical expression | 20131112 | |||
| 2 | IT_TOKENS | Call by reference | Type reference (TYPE) | LTY_T_TOKEN_TYPE | Expression tokens | 20131112 | |||
| 3 | IV_AUTH_CHECK | Call by reference | Type reference (TYPE) | ESH_E_OM_AUTH_CHECK | Authorization Check | 20131112 | |||
| 4 | IV_VALUE | Call by reference | Type reference (TYPE) | CHAR5 | Value for authorization check | 20131112 |
Method PROCESS_EXPRESSION_TOKENS on class CL_ESH_TREX_QUERY_HANDLER has no exception.
Method PROCESS_FIX_VALUES Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | EV_NOT_AUTHORIZED | Call by reference | Type reference (TYPE) | ABAP_BOOL | Not authorized | 20131112 | |||
| 2 | IT_AUTH_VALUES | Call by reference | Type reference (TYPE) | SUSR_T_USVALUES | Transfer Table for Authorization Values for Object | 20131112 | |||
| 3 | IT_FIX_VALUES | Call by reference | Type reference (TYPE) | ESH_T_SE_FIX_VALUE | Table Type for Fix Values | 20131112 |
Method PROCESS_FIX_VALUES on class CL_ESH_TREX_QUERY_HANDLER has no exception.
Method PROCESS_LOGICAL_EXPRESSION Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | CV_LOGICAL_EXPRESSION | Call by reference | Type reference (TYPE) | STRING | Logical expression | 20131112 | |||
| 2 | EV_FULLY_AUTHORIZED | Call by reference | Type reference (TYPE) | ABAP_BOOL | Fully authorized | 20131112 | |||
| 3 | EV_NOT_AUTHORIZED | Call by reference | Type reference (TYPE) | ABAP_BOOL | Not authorized | 20131112 | |||
| 4 | IV_AUTH_CHECK | Call by reference | Type reference (TYPE) | ESH_E_OM_AUTH_CHECK | Authorization Check | 20131112 | |||
| 5 | IV_VALUE | Call by reference | Type reference (TYPE) | CHAR5 | Value for authorization check | 20131112 |
Method PROCESS_LOGICAL_EXPRESSION on class CL_ESH_TREX_QUERY_HANDLER has no exception.
Method REDUCE_LOGICAL_EXPRESSION Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | CV_LOGICAL_EXPRESSION | Call by reference | Type reference (TYPE) | STRING | Logical expression | 20131112 | |||
| 2 | IV_AUTH_CHECK | Call by reference | Type reference (TYPE) | ESH_E_OM_AUTH_CHECK | Authorization Check | 20131112 | |||
| 3 | IV_VALUE | Call by reference | Type reference (TYPE) | CHAR5 | Value for authorization check | 20131112 |
Method REDUCE_LOGICAL_EXPRESSION on class CL_ESH_TREX_QUERY_HANDLER has no exception.
Method SET_HINTS Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | CT_HINTS | Call by reference | Type reference (TYPE) | TREXT_HINTS | Hints for the optimizer | 20091230 |
Method SET_HINTS on class CL_ESH_TREX_QUERY_HANDLER has no exception.
Method SET_SEARCH_DEBUGGER Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | IR_SEARCH_DEBUGGER | Call by reference | Object reference (TYPE REF TO) | CL_ESH_SE_SEARCH_DEBUGGING | Search Debugger | 20100607 |
Method SET_SEARCH_DEBUGGER on class CL_ESH_TREX_QUERY_HANDLER has no exception.
History
| Last changed by/on | SAP | 20141121 |
| SAP Release Created in | 730 |