Skip to content

ACTIVATE_READONLY_COMMANDS_FOR_ADOxx ModellingTK ​

ACTIVATE_READONLY_COMMANDS_FOR_ADOxx ModellingTK allows to activate commands which usually are restricted to users with administration rights only.

Syntax ​

leo-grammar
CC "UserMgt" ACTIVATE_READONLY_COMMANDS_FOR_ADOxx ModellingTK yes | no

# --> RESULT ecode:intValue .
CC "UserMgt" ACTIVATE_READONLY_COMMANDS_FOR_ADOxx ModellingTK yes | no

# --> RESULT ecode:intValue .

Parameters ​

  • <main-parameter> (modifier) - the modifier to update the access rights, yes or no.

Returns ​

  • ecode (intValue) - contains the error code or is 0 in case of success.

Details ​

As default several GET_** commands of the UserMgt messageport in the ADOxx Modelling Toolkit can only be called by users with administration rights.
Calling the command with the option "yes" activates these GET_** commands also for any other user with access to the ADOxx Modelling Toolkit.
Calling the command with the option "no" sets the state back (i.e. only administrators can call the commands).

This command is available within both the ADOxx Development Toolkit and the ADOxx Modelling Toolkit.
However, calling it in the ADOxx Develpoment Toolkit makes no sense as there is no calling restriction anyway!

Examples ​

asc
CC "UserMgt" ACTIVATE_READONLY_COMMANDS_FOR_ADOxx ModellingTK yes 
# now the following command can be called
CC "UserMgt" GET_ALL_USERGROUPS
CC "UserMgt" ACTIVATE_READONLY_COMMANDS_FOR_ADOxx ModellingTK no
# now the following command can not be called anymore
CC "UserMgt" GET_ALL_USERGROUPS
CC "UserMgt" ACTIVATE_READONLY_COMMANDS_FOR_ADOxx ModellingTK yes 
# now the following command can be called
CC "UserMgt" GET_ALL_USERGROUPS
CC "UserMgt" ACTIVATE_READONLY_COMMANDS_FOR_ADOxx ModellingTK no
# now the following command can not be called anymore
CC "UserMgt" GET_ALL_USERGROUPS

See Also ​

none

Versions and Changes ​

Available since ADOxx 1.3