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 ABAP 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 SHARE_FLAG 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 CHECK_AUTH Static method Private Method Check authority before any modification 20090909
2 CHECK_I_HAVE_EXCLUSIVE_LOCK Static method Public Method Check that I own an exclusive lock 20090909
3 CHECK_I_HAVE_SHAREABLE_LOCK Static method Public Method Check that I own a sharable lock or an exclusive lock 20090909
4 CHECK_I_MAY_READ Static method Public Method Check that I own any lock or that nobody else owns a lock. 20090930
5 CHECK_MYSELF Static method Private Method Look whether I am in the DB table myself 20090909
6 CHECK_SHAREABLE Static method Private Method Look whether a shaerable flag is present 20090909
7 DROP_MYSELF Static method Private Method Remove my own name from DB table 20090909
8 DROP_SHAREABLE Static method Private Method Remove the shareable flag from DB table 20090909
9 ENTER_MYSELF Static method Private Method Enter my own name into DB table 20090909
10 ENTER_SHAREABLE Static method Private Method Enter shareable flag into DB table 20090909
11 KICK_OUT Static method Public Method Kick other users out to release the lock by force 20090909
12 LOCK_EXCLUSIVE Static method Public Method Get an exclusive lock 20090909
13 LOCK_SHAREABLE Static method Public Method Get a shareable lock 20090909
14 RELEASE_EXCLUSIVE_LOCK Static method Public Method Release an exclusive lock 20090909
15 RELEASE_SHAREABLE_LOCK Static method Public Method Release a shareable lock 20090909
16 REMOVE_FLAGS_FROM_ITAB Static method Private Method Remove all flags from a mixed list with user names 20090909
17 SHOW_LOCK 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 Returning 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_DONT_HAVE_IT 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_DONT_HAVE_IT 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_DONT_HAVE_IT 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 Returning I_AM_IN Value transfer Type reference (TYPE) ABAP_BOOL Boolean Variable (X=True, Space=False) 20090909
2 Importing 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 Returning IS_SHARABLE Value transfer Type reference (TYPE) ABAP_BOOL Boolean Variable (X=True, Space=False) 20090909
2 Importing 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 Importing OTHER_USER Value transfer Type reference (TYPE) SYUNAME Name of the other user to be kicked out 20090909
2 Exporting 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 I_MAY_NOT_TRY_IT 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 Exporting I_HAD_EXCLUSIVE Value transfer Type reference (TYPE) ABAP_BOOL I already had an exclusive lock before 20090930
2 Exporting I_HAD_SHAREABLE Value transfer Type reference (TYPE) ABAP_BOOL I had a shareable lock before 20090930
# Exception Resumable Description Created on
1 I_CANNOT_GET_IT It is currently not possible to get the requested lock 20090909
2 I_MAY_NOT_TRY_IT 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 Exporting I_HAD_EXCLUSIVE Value transfer Type reference (TYPE) ABAP_BOOL I already had an exclusive lock before 20090930
2 Exporting I_HAD_SHAREABLE Value transfer Type reference (TYPE) ABAP_BOOL I had a shareable lock before 20090930
# Exception Resumable Description Created on
1 I_CANNOT_GET_IT It is currently not possible to get the requested lock 20090909
2 I_MAY_NOT_TRY_IT 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_DONT_HAVE_IT I do not own the requested lock 20090909
2 I_MAY_NOT_TRY_IT 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_DONT_HAVE_IT I do not own the requested lock 20090909
2 I_MAY_NOT_TRY_IT 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 Changing 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 Exporting LOCKED_BY_ME Call by reference Type reference (TYPE) ABAP_BOOL Boolean Variable (X=True, Space=False) 20090909
2 Exporting LOCKED_EXCLUSIVE Call by reference Type reference (TYPE) ABAP_BOOL Boolean Variable (X=True, Space=False) 20090909
3 Exporting LOCKED_SHAREABLE Call by reference Type reference (TYPE) ABAP_BOOL Boolean Variable (X=True, Space=False) 20090909
4 Exporting LOCK_IS_OPEN Call by reference Type reference (TYPE) ABAP_BOOL Boolean Variable (X=True, Space=False) 20090909
5 Exporting OWNERS Call by reference Type reference (TYPE) UMGTESTERTAB Boolean Variable (X=True, Space=False) 20090909
6 Exporting 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