CX_MESSAGE_SECURITY
Class hierarchy
- CX_CLASS
- CX_SECURITY
- CX_MESSAGE_SECURITY
- CX_SECURITY
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:
...
Function | MA* | Parameters | Return | Brief description |
---|---|---|---|---|
Register | Register security object | |||
TestClass 225901 | INTEGER | CX_BIT_PATTERN | Returns the class access for a specific class. | |
TestMessage 225661 | INTEGER | TRUE/FALSE | Test whether message is allowed or blocked | |
TestObject 225901 | OBJECT, STRING | CX_BIT_PATTERN | Returns the object access for a specific object (+ path). | |
TestOption 225735 | INTEGER | TRUE/FALSE | Test whether option is allowed or blocked. |
* MA = Member Access Function
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
Module | Brief description |
---|---|
secmessg.mod | Access rights for news editing module |