edmiProtectModelBN
Â
EdmiError edmiProtectModelBN(SdaiString repositoryName, SdaiString modelName, SdaiInteger protection);
Defines access rights to the specified model. The available access rights are read, write, or none. Write access implies read access. When a model is created the model protection is set equal to the default model protection of the EDMuser that creates the model. The default model protection can be set by the edmiSetUsersDefaultProtection function. The model protection can be set with respect to three different EDMuser categories: the model owner, EDMusers that are members of the model owner group, and all other users. Only the owner of a model is allowed to change the access rights for the model.
Arguments
Type | Name | Comment |
SdaiString | repositoryName | Specifies the name of the repository in the EDMdatabase that holds the model of interest. Repository names are case sensitive. |
SdaiString | modelName | Specifies the name of the model to define the model protection of. Model names are case sensitive. |
SdaiInteger | protection | Specifies the protection to be defined for the specified model. The value should be a bitwise OR of one symbol from each of the following three lines. OWNER_WRITE, OWNER_READ, OWNER_NONE, GROUP_WRITE, GROUP_READ, GROUP_NONE, PUBLIC_WRITE, PUBLIC_READ, PUBLIC_NONE. GROUP_READ, PUBLIC_NONE |
Return Value
Options
Â
Example
Â
 EdmiError rstat; . . . if (rstat = edmiProtectModelBN( "DataRepository", "Bumper", OWNER_WRITE | GROUP_WRITE | PUBLIC_READ)) { /* Error in operation */ printf("\nError: %s in edmiProtectModelBN\n", edmiGetErrorText(rstat)); goto error; } . . .
Â
See also
Filter by label
There are no items with the selected labels at this time.
Â