Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

 

 

Code Block
languagecpp
themeConfluence
EdmiError edmiRemoteCreateRepository(SdaiServerContext serverContextId,
                                     SdaiString        repositoryName,                                     
                                     SdaiInvocationId  *edmiInvocationId);


Creates a persistent data repository in a remote EDMdatabase

...

. A data repository is a container for data models. Any number of data repositories may be created in an EDMdatabase

...

. Only EDMusers that have their 'creating_repository_permission' attribute set to sdaiTRUE may create repositories.

...

Arguments

...

TypeNameComment
 SdaiServerContext

serverContextId

Context identification, from edmiDefineServerContext

 SdaiString

repositoryName

The name to assign to the new repository in the remote _EDMdatabase{_}remote  EDMdatabase . Repository names are case sensitive and must be unique within the _EDMdatabase{_}.the  EDMdatabase

 SdaiInvocationId

edmiInvocationId

Currently not used.

...

Return Value

...

Insert excerpt
US:_r_EDMInterface
US:_r_EDMInterface
nopaneltrue

 

Options

...

  

 

Example

...

 

Code Block
languagecpp
 EdmiError rstat;
 SdaiServerContext myContext;
 SdaiModel modId, copyModId;
 SdaiRepository repositoryId;
 /* Create Server Context */
 rstat = edmiDefineServerContext("MyContext",

...


 "Johnny", "Supervisor", "cf37ftr",

...

 
 "TCP", "9090", "MyServerHost",

...

 
 NULL, NULL, NULL, NULL, NULL, &myContext);

...

 
  
 /* Get the modelId of MyModel */

...


 rstat = edmiRemoteGetModelBN(myContext, "DataRepository",

...


 "MyModel", &modId, NULL);

...

 
  
 /* Create a repository for

...


 containing my copy of MyModel */

...

  
 rstat = edmiRemoteCreateRepository(myContext,

...


 "MyCopyRepository", NULL);

...

 
  
 /* Get the repositoryId */

...


 rstat = edmiRemoteGetRepository(myContext,

...


 "MyCopyRepository", &repositoryId, NULL);

...

 
  
 /* Copy MyModel to MyCopy in MyCopyRepository */

...


 rstat = edmiRemoteCopyModel(myContext, modId,

...


 repositoryId, "MyCopy", &copyModId, NULL);

...

 
 . . .
  

 

See also

Filter by label (Content by label)
showLabelsfalse
showSpacefalse
cqllabel = "model" and parent = "6062220"