Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »


 
Connecting a new EDMuser/EDMgroup without disconnecting the existing connection.>
Provided the new connected EDMuser/EDMgroup has sufficient access rights, all repositories and models will remain in the same open mode. Otherwise, access modes will be reduced to the highest access available.
 
Related functions: edmiChangeMyUserBN
Header:
#include "sdai.h"
Prototype:
EdmiError edmiChangeMyUser(SdaiUnsignedInt sessionUserKey);
Arguments:

SessionUserKey

The session key returned from edmiChangeMyUserBN.

Returns:
A completion code of datatype EdmiError is the returned function value. The completion code has the following values:
Completion code = 0: Operation successfully performed.
Completion code != 0: Error in operation. Completion code is an EDMinterface error code. Use edmiGetErrorText to get the error text corresponding to the error code.
EXAMPLE
EdmiError rstat;
SdaiUser myUserId;
SdaiUnsignedInt myKey, superKey;
edmiChangeMyUserBN("superuser", NULL, "LotR1953", &msg, &superKey);
edmiChangeMyUserBN("Gabriel", "Genesis", "abacab", &msg, &myKey);
. . .
if (modId = edmiGetModelBN("myRepository", "myModel")) {
edmiGetMyUserId(&myUserId); 
edmiChangeMyUser(superKey); 
edmiChangeInstanceOwner(modId, myUserId, SET_OWNER | REPLACE_CURRENT); 
edmiChangeMyUser(myKey); 
}
. . .

  • No labels