GetRepoParams

Syntax

RepoParamsResult GetRepoParams(MbId tMb, GetRepoParamsArg tArg)

Parameters

tMb. Repository connection moniker.

tArg. Operation execution parameters.

Description

The GetRepoParams operation gets repository parameters.

Comments

The operation enables the user to get following parameters:

To execute the operation, in the tMb field specify the repository connection moniker, and in the tArg.pattern field specify the pattern, according to which various parameters are obtained. The moniker can be obtained on executing the OpenMetabase operation. The operation results in the requested parameters.

Example

The example of getting repository parameters. The request contains repository connection moniker and the pattern indicating whether it is necessary to get repository parameters. The response contains values of various parameters, except for the information about custom classes/events/methods.

SOAP request:

<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<GetRepoParams xmlns="http://www.fsight.ru/PP.SOM.Som">
<tMb xmlns="">
  <id>S1!M</id>
  </tMb>
<tArg xmlns="">
<pattern>
  <obInst>true</obInst>
  <all>true</all>
  </pattern>
  </tArg>
  </GetRepoParams>
  </s:Body>
  </s:Envelope>

SOAP response:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Body>
<GetRepoParamsResult xmlns="http://www.fsight.ru/PP.SOM.Som" xmlns:q1="http://www.fsight.ru/PP.SOM.Som" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<id xmlns="">
  <id>S1!M</id>
  </id>
<meta xmlns="">
<sharedParams>
  <IsShared>1</IsShared>
  <Url>http://v-shp-development.dev.fs.fsight.world</Url>
<params>
<it>
  <k>1</k>
  <id>GLOBAL_INT</id>
  <n>Constraint</n>
  <vis>1</vis>
  <value>600</value>
  <dt>2</dt>
  <binding>UI="IntegerEdit"</binding>
  </it>
  </params>
  </sharedParams>
<defParams>
<database ds="" isShortcut="0" isLink="0" ver="0" hf="0">
  <i>DB</i>
  <n>Database</n>
  <k>56</k>
  <c>513</c>
  <p>12363</p>
  <h>0</h>
  <hasPrv>0</hasPrv>
  <ic>0</ic>
  </database>
<rdsDatabase ds="" isShortcut="0" isLink="0" ver="0" hf="0">
  <i>RDS</i>
  <n>MDM repository</n>
  <k>159</k>
  <c>4353</c>
  <p>51</p>
  <h>0</h>
  <hasPrv>0</hasPrv>
  <ic>0</ic>
  </rdsDatabase>
<modelSpace ds="" isShortcut="0" isLink="0" ver="6" hf="0">
  <i>MS_DEFAULT</i>
  <n>Modeling container (default)</n>
  <k>20639</k>
  <c>5121</c>
  <p>14212</p>
  <h>0</h>
  <hasPrv>0</hasPrv>
  <ic>0</ic>
  </modelSpace>
<topobase ds="" isShortcut="0" isLink="0" ver="0" hf="0">
  <i>OBJ36625</i>
  <n>Russian Federation_FO_en.svg.tbs</n>
  <k>36625</k>
  <c>3330</c>
  <p>36624</p>
  <h>0</h>
  <hasPrv>0</hasPrv>
  <ic>0</ic>
  </topobase>
<dimensionImageList ds="" isShortcut="0" isLink="0" ver="0" hf="0">
  <i>OBJ1532</i>
  <n>Element icons</n>
  <k>1532</k>
  <c>3329</c>
  <p>51</p>
  <h>0</h>
  <hasPrv>0</hasPrv>
  <ic>0</ic>
  </dimensionImageList>
  <emptySelectionAsFull>0</emptySelectionAsFull>
  <rdsElementCard>PropertyList</rdsElementCard>
  <defLocale>1049</defLocale>
  </defParams>
<errorParams>
  <mailAddress>suppport@fsight.ru</mailAddress>
  <handler />
  </errorParams>
  <usersMetaData />
<eventHandling>
  <eventHandlers>0</eventHandlers>
  <updateHandler>OBJ71270.UpdateHandlerClass</updateHandler>
  </eventHandling>
<cacheParams>
  <autoClear>1</autoClear>
  <threshold>70</threshold>
  </cacheParams>
  </meta>
  </GetRepoParamsResult>
  </soapenv:Body>
  </soapenv:Envelope>

JSON request:

{
"GetRepoParams" :
{
"tMb" :
{
"id" : "S1!M"
},
"tArg" :
{
"pattern" :
{
"obInst" : "true",
"all" : "true"
}
}
}
}

JSON response:

{
"GetRepoParamsResult" :
{
"id" :
{
"id" : "S1!M"
},
"meta" :
{
"sharedParams" :
{
"IsShared" : "1",
"Url" : "http:\/\/v-shp-development.dev.fs.fsight.world",
"params" :
{
"it" :
{
"k" : "1",
"id" : "GLOBAL_INT",
"n" : "Constraint",
"vis" : "1",
"value" : "600",
"dt" : "2",
"binding" : "UI="IntegerEdit""
}
}
},
"defParams" :
{
"database" :
{
"@ds" : "",
"@isShortcut" : "0",
"@isLink" : "0",
"@ver" : "0",
"@hf" : "0",
"i" : "DB",
"n" : "Database",
"k" : "56",
"c" : "513",
"p" : "12363",
"h" : "0",
"hasPrv" : "0",
"ic" : "0"
},
"rdsDatabase" :
{
"@ds" : "",
"@isShortcut" : "0",
"@isLink" : "0",
"@ver" : "0",
"@hf" : "0",
"i" : "RDS",
"n" : "MDM repository",
"k" : "159",
"c" : "4353",
"p" : "51",
"h" : "0",
"hasPrv" : "0",
"ic" : "0"
},
"modelSpace" :
{
"@ds" : "",
"@isShortcut" : "0",
"@isLink" : "0",
"@ver" : "6",
"@hf" : "0",
"i" : "MS_DEFAULT",
"n" : "Modeling container (default)",
"k" : "20639",
"c" : "5121",
"p" : "14212",
"h" : "0",
"hasPrv" : "0",
"ic" : "0"
},
"topobase" :
{
"@ds" : "",
"@isShortcut" : "0",
"@isLink" : "0",
"@ver" : "0",
"@hf" : "0",
"i" : "OBJ36625",
"n" : "Russian Federation_FO_en.svg.tbs",
"k" : "36625",
"c" : "3330",
"p" : "36624",
"h" : "0",
"hasPrv" : "0",
"ic" : "0"
},
"dimensionImageList" :
{
"@ds" : "",
"@isShortcut" : "0",
"@isLink" : "0",
"@ver" : "0",
"@hf" : "0",
"i" : "OBJ1532",
"n" : "Element icons",
"k" : "1532",
"c" : "3329",
"p" : "51",
"h" : "0",
"hasPrv" : "0",
"ic" : "0"
},
"emptySelectionAsFull" : "0",
"rdsElementCard" : "PropertyList",
"defLocale" : "1049"
},
"errorParams" :
{
"mailAddress" : "suppport@fsight.ru",
"handler" : ""
},
"usersMetaData" : "",
"eventHandling" :
{
"eventHandlers" : "0",
"updateHandler" : "OBJ71270.UpdateHandlerClass"
},
"cacheParams" :
{
"autoClear" : "1",
"threshold" : "70"
}
}
}
}
public static RepoParamsResult GetMBParameters(string moniker)
{
var somClient = new SomPortTypeClient(); //Proxy object for operation execution
//Operation execution parameters
var tGet = new GetRepoParams()
{
tArg = new GetRepoParamsArg()
{
pattern = new RepoParamsMdPattern()
{
all = true
}
},
tMb = new MbId() { id = moniker }
};
//Get repository parameters
var result = somClient.GetRepoParams(tGet);
return result;
}

See also:

Operations for Working with Repository