SAP ABAP Class CL_UMG_TEST_LOCKS (Locks to protect Uniode Conversion Tools Test Environment)
Hierarchy
☛
SAP_BASIS (Software Component) SAP Basis Component
⤷
BC-I18-UNI (Application Component) I18N Unicode
⤷
SUMIG_TEST (Package) Unicode conversion tool: test cases
⤷
⤷
Properties
| Class | CL_UMG_TEST_LOCKS | |
| Short Description | Locks to protect Uniode Conversion Tools Test Environment | |
| Super Class | ||
| Instantiability of a Class | 2 | Public |
| Final |
General Data
| Message Class | UMG | |
| Program status | T | Test Program |
| Category | 0 | |
| Package | SUMIG_TEST | Unicode conversion tool: test cases |
| Created | 20090909 | SAP |
| Last change | 20110908 | SAP |
| 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) |
Interfaces
Class CL_UMG_TEST_LOCKS has no interface implemented.
Friends
Class CL_UMG_TEST_LOCKS has no friend class.
Attributes
| # | Attribute | Level | Visibility | Read only | Typing | Associated Type | Initial Value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | Constant | Private | Type reference (TYPE) | SYUNAME | '_SHAREABLE_' | A flag hidden as special user name | 20090909 |
Methods
| # | Method | Level | Visibility | Method type | Description | Created on |
|---|---|---|---|---|---|---|
| 1 | Static method | Private | Method | Check authority before any modification | 20090909 | |
| 2 | Static method | Public | Method | Check that I own an exclusive lock | 20090909 | |
| 3 | Static method | Public | Method | Check that I own a sharable lock or an exclusive lock | 20090909 | |
| 4 | Static method | Public | Method | Check that I own any lock or that nobody else owns a lock. | 20090930 | |
| 5 | Static method | Private | Method | Look whether I am in the DB table myself | 20090909 | |
| 6 | Static method | Private | Method | Look whether a shaerable flag is present | 20090909 | |
| 7 | Static method | Private | Method | Remove my own name from DB table | 20090909 | |
| 8 | Static method | Private | Method | Remove the shareable flag from DB table | 20090909 | |
| 9 | Static method | Private | Method | Enter my own name into DB table | 20090909 | |
| 10 | Static method | Private | Method | Enter shareable flag into DB table | 20090909 | |
| 11 | Static method | Public | Method | Kick other users out to release the lock by force | 20090909 | |
| 12 | Static method | Public | Method | Get an exclusive lock | 20090909 | |
| 13 | Static method | Public | Method | Get a shareable lock | 20090909 | |
| 14 | Static method | Public | Method | Release an exclusive lock | 20090909 | |
| 15 | Static method | Public | Method | Release a shareable lock | 20090909 | |
| 16 | Static method | Private | Method | Remove all flags from a mixed list with user names | 20090909 | |
| 17 | Static method | Public | Method | Show current status of the lock | 20090909 |
Events
Class CL_UMG_TEST_LOCKS has no event.
Types
Class CL_UMG_TEST_LOCKS has no local type.
Method Signatures
Method CHECK_AUTH Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | RE_ALLOWED | Value transfer | Type reference (TYPE) | ABAP_BOOL | Am I allowed to switch loack state? | 20090909 |
Method CHECK_AUTH on class CL_UMG_TEST_LOCKS has no exception.
Method CHECK_I_HAVE_EXCLUSIVE_LOCK Signature
Method CHECK_I_HAVE_EXCLUSIVE_LOCK on class CL_UMG_TEST_LOCKS has no parameter.
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | I do not own the requested lock | 20090909 |
Method CHECK_I_HAVE_SHAREABLE_LOCK Signature
Method CHECK_I_HAVE_SHAREABLE_LOCK on class CL_UMG_TEST_LOCKS has no parameter.
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | I do not own the requested lock | 20090909 |
Method CHECK_I_MAY_READ Signature
Method CHECK_I_MAY_READ on class CL_UMG_TEST_LOCKS has no parameter.
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | I do not own the requested lock | 20090930 |
Method CHECK_MYSELF Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | I_AM_IN | Value transfer | Type reference (TYPE) | ABAP_BOOL | Boolean Variable (X=True, Space=False) | 20090909 | |||
| 2 | TESTER_TAB | Call by reference | Type reference (TYPE) | UMGTESTERTAB | List of testers of the Unicode conversion tools | 20090909 |
Method CHECK_MYSELF on class CL_UMG_TEST_LOCKS has no exception.
Method CHECK_SHAREABLE Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | IS_SHARABLE | Value transfer | Type reference (TYPE) | ABAP_BOOL | Boolean Variable (X=True, Space=False) | 20090909 | |||
| 2 | TESTER_TAB | Call by reference | Type reference (TYPE) | UMGTESTERTAB | List of testers of the Unicode conversion tools | 20090909 |
Method CHECK_SHAREABLE on class CL_UMG_TEST_LOCKS has no exception.
Method DROP_MYSELF Signature
Method DROP_MYSELF on class CL_UMG_TEST_LOCKS has no parameter.
Method DROP_MYSELF on class CL_UMG_TEST_LOCKS has no exception.
Method DROP_SHAREABLE Signature
Method DROP_SHAREABLE on class CL_UMG_TEST_LOCKS has no parameter.
Method DROP_SHAREABLE on class CL_UMG_TEST_LOCKS has no exception.
Method ENTER_MYSELF Signature
Method ENTER_MYSELF on class CL_UMG_TEST_LOCKS has no parameter.
Method ENTER_MYSELF on class CL_UMG_TEST_LOCKS has no exception.
Method ENTER_SHAREABLE Signature
Method ENTER_SHAREABLE on class CL_UMG_TEST_LOCKS has no parameter.
Method ENTER_SHAREABLE on class CL_UMG_TEST_LOCKS has no exception.
Method KICK_OUT Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | OTHER_USER | Value transfer | Type reference (TYPE) | SYUNAME | Name of the other user to be kicked out | 20090909 | |||
| 2 | WAS_ALREADY_GONE | Call by reference | Type reference (TYPE) | ABAP_BOOL | User could not be removed from lock, has she did not hold it | 20090911 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | The user has no authorization to modify the lock | 20090909 |
Method LOCK_EXCLUSIVE Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | I_HAD_EXCLUSIVE | Value transfer | Type reference (TYPE) | ABAP_BOOL | I already had an exclusive lock before | 20090930 | |||
| 2 | I_HAD_SHAREABLE | Value transfer | Type reference (TYPE) | ABAP_BOOL | I had a shareable lock before | 20090930 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | It is currently not possible to get the requested lock | 20090909 | ||
| 2 | The user has no authorization to modify the lock | 20090909 |
Method LOCK_SHAREABLE Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | I_HAD_EXCLUSIVE | Value transfer | Type reference (TYPE) | ABAP_BOOL | I already had an exclusive lock before | 20090930 | |||
| 2 | I_HAD_SHAREABLE | Value transfer | Type reference (TYPE) | ABAP_BOOL | I had a shareable lock before | 20090930 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | It is currently not possible to get the requested lock | 20090909 | ||
| 2 | The user has no authorization to modify the lock | 20090909 |
Method RELEASE_EXCLUSIVE_LOCK Signature
Method RELEASE_EXCLUSIVE_LOCK on class CL_UMG_TEST_LOCKS has no parameter.
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | I do not own the requested lock | 20090909 | ||
| 2 | The user has no authorization to modify the lock | 20090909 |
Method RELEASE_SHAREABLE_LOCK Signature
Method RELEASE_SHAREABLE_LOCK on class CL_UMG_TEST_LOCKS has no parameter.
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | I do not own the requested lock | 20090909 | ||
| 2 | The user has no authorization to modify the lock | 20090909 |
Method REMOVE_FLAGS_FROM_ITAB Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | ITAB | Call by reference | Type reference (TYPE) | UMGTESTERTAB | List of testers of the Unicode conversion tools | 20090909 |
Method REMOVE_FLAGS_FROM_ITAB on class CL_UMG_TEST_LOCKS has no exception.
Method SHOW_LOCK Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | LOCKED_BY_ME | Call by reference | Type reference (TYPE) | ABAP_BOOL | Boolean Variable (X=True, Space=False) | 20090909 | |||
| 2 | LOCKED_EXCLUSIVE | Call by reference | Type reference (TYPE) | ABAP_BOOL | Boolean Variable (X=True, Space=False) | 20090909 | |||
| 3 | LOCKED_SHAREABLE | Call by reference | Type reference (TYPE) | ABAP_BOOL | Boolean Variable (X=True, Space=False) | 20090909 | |||
| 4 | LOCK_IS_OPEN | Call by reference | Type reference (TYPE) | ABAP_BOOL | Boolean Variable (X=True, Space=False) | 20090909 | |||
| 5 | OWNERS | Call by reference | Type reference (TYPE) | UMGTESTERTAB | Boolean Variable (X=True, Space=False) | 20090909 | |||
| 6 | STRANGE_ENTRIES | Call by reference | Type reference (TYPE) | UMGTESTERTAB | Boolean Variable (X=True, Space=False) | 20090909 |
Method SHOW_LOCK on class CL_UMG_TEST_LOCKS has no exception.
History
| Last changed by/on | SAP | 20110908 |
| SAP Release Created in | 800 |