Loading...
 

CX_MESSAGE_SECURITY - Access rights for messages

CX_MESSAGE_SECURITY

Class hierarchy
Description:

This class can be used to control access to certain parts of an application. If the access object is registered (directly or as part of a CX_SECURITY_SET object), all messages whose name is mentioned in messages are locked/unlocked (see Flags). This also applies to the definition of new messages. Whether a message is locked can be determined with TestMsg.

225646
The messages defined in messages can now also contain wildcards (*, # and ?). This allows entire areas to be blocked with very few security policies.
Ex:

  • "*_EDIT" - All edit messages
  • "*ORDER*" - All messages containing "ORDER".
  • "*" - All messages
Code example:

...

List of methods (MDI)
Function MA* Parameters Return Brief description
Register Register security object
TestClass
225901
INTEGERCX_BIT_PATTERNReturns the class access for a specific class.
TestMessage
225661
INTEGERTRUE/FALSETest whether message is allowed or blocked
TestObject
225901
OBJECT, STRINGCX_BIT_PATTERNReturns the object access for a specific object (+ path).
TestOption
225735
INTEGERTRUE/FALSETest whether option is allowed or blocked.

* MA = Member Access Function

Data directory (DDI)
Data field Type Reference class I* Brief description
flags INTEGER 0 = Lock the specified messages
1 = Allow the specified messages
messages COLL CX_STRING Blocked/allowed messages
name STRING Name of the security policy

* I = Indexable data field

Use in AppsWH
Module Brief description
secmessg.mod Access rights for news editing module