Client Config

On a per client base it can be configured which fields are returned for each object and if a basequery is applied. This expose certain fields only dedicated clients. It also allows to define which rows a client can access. Clients are configured in conf/clients.json

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
[
  {
    "name": "jira",
    "config": {
      "cmdbobject": {
        "basequery": "'Data Set Id' = \"BMC.ASSET\" AND ('Mark As Deleted' = \"No\" OR 'Mark As Deleted' = $NULL$) AND 'Class Id' = \"BMC_COMPUTERSYSTEM\"",
        "fields": [
          "Instance Id",
          "Tag Number",
          "Name",
          "AssetLifecycleStatus",
          "Category",
          "Item",
          "Type",
          "Availability",
          "Confidentiality",
          "Integrity",
          "Authenticity",
          "Model Number",
          "Class Id",
          "Reconciliation Identity"
        ]
      },
      "orgdata": {
        "basequeryPeople": "'Profile Status' = \"Enabled\"",
        "basequeryOrganisation": "'Status'=\"Enabled\"",
        "basequerySupportGroup": "'Status'=\"Enabled\""
      },
      "change": {
        "fields": [
          "Infrastructure Change ID",
          "Categorization Tier 1",
          "Categorization Tier 2",
          "Categorization Tier 3",
          "Product Cat Tier 1",
          "Product Cat Tier 2",
          "Product Cat Tier 3",
          "Product Name (2)",
          "Description",
          "Detailed Description",
          "Status Reason",
          "Change Request Status",
          "Requested Start Date",
          "Requested End Date",
          "Scheduled Start Date",
          "Scheduled End Date",
          "Support Group ID",
          "Support Group ID 2",
          "Customer Person ID"
        ],
        "constants" : [
          {"name": "Location Company", "value" : "Calbro Services"},
          {"name": "Company", "value" : "Calbro Services"},
          {"name": "RequesterLoginID", "value" : "Allen"}
        ]
      }
    }
  }
]

Field Mappings

Field mappings are configured in conf/mapping.json and are used globally for all clients.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
{
  "cmdbobject":[
    {"oldName":"Instance Id", "newName" : "id"},
    {"oldName":"Tag Number", "newName" : "tagNumber"},
    {"oldName":"Name", "newName" : "name"},
    {"oldName":"AssetLifecycleStatus", "newName" : "assetlifecycleStatus"},
    {"oldName":"Category", "newName" : "category"},
    {"oldName":"Item", "newName" : "item"},
    {"oldName":"Type", "newName" : "type"},
    {"oldName":"Availability", "newName" : "availability"},
    {"oldName":"Confidentiality", "newName" : "confidentiality"},
    {"oldName":"Integrity", "newName" : "integrity"},
    {"oldName":"Authenticity", "newName" : "authenticity"},
    {"oldName":"Model Number", "newName" : "model"},
    {"oldName":"Class Id", "newName" : "classId"},
    {"oldName":"Reconciliation Identity", "newName" : "reconId"}
  ],
  "change":[
    {"oldName":"Infrastructure Change ID", "newName" : "id"},
    {"oldName":"Categorization Tier 1", "newName" : "opsCat1"},
    {"oldName":"Categorization Tier 2", "newName" : "opsCat2"},
    {"oldName":"Categorization Tier 3", "newName" : "opsCat3"},
    {"oldName":"Product Cat Tier 1", "newName" : "prodCat1"},
    {"oldName":"Product Cat Tier 2", "newName" : "prodCat2"},
    {"oldName":"Product Cat Tier 3", "newName" : "prodCat3"},
    {"oldName":"Product Name (2)", "newName" : "productName"},
    {"oldName":"Description", "newName" : "summary"},
    {"oldName":"Detailed Description", "newName" : "detailedDescription"},
    {"oldName":"Status Reason", "newName" : "statusReason"},
    {"oldName":"Change Request Status", "newName" : "status"},
    {"oldName":"Requested Start Date", "newName" : "requestedStartDate"},
    {"oldName":"Requested End Date", "newName" : "requestedEndDate"},
    {"oldName":"Scheduled Start Date", "newName" : "scheduledStartDate"},
    {"oldName":"Scheduled End Date", "newName" : "scheduledEndDate"},
    {"oldName":"Support Group ID", "newName" : "managerGroup"},
    {"oldName":"Support Group ID 2", "newName" : "coordinatorGroup"},
    {"oldName":"Customer Person ID", "newName" : "customerId"}
  ],
  "newChange":[
    {"oldName":"Description", "newName" : "summary"},
    {"oldName":"TemplateID", "newName" : "template"}
  ]
}