Premise Tree

The premise tree displays a hierarchical list of the components within a premise. You must also identify the URL associated with your premise tree. The following premise tree components are delivered with the solution.

  • ASSOC_ACCT: oj-ux-ico-file

  • COMPONENT: oj-ux-ico-chart-bar

  • DEVICE: oj-ux-ico-odometer

  • METER: oj-ux-ico-odometer

  • PREMISE: oj-ux-ico-city

  • SPCOMP: oj-ux-ico-chart-bar

  • SPDEV: oj-ux-ico-odometer

  • SVC_CONT: oj-ux-ico-outage

  • SVC_POINT: oj-ux-ico-location-pin

  • treeName: C1-CX-PremiseTree

  • UNLINK_SP: oj-ux-ico-location-pin

  • HIST_PREM: oj-ux-ico-city
  • HIST_PREMS: oj-ux-ico-city
  • TRANSFORMER: oj-ux-ico-timeline
  • FEEDER: oj-ux-ico-divert
  • SUBSTATION: oj-ux-ico-industry

The table below provides additional details on the tasks you need to complete.

Task Configuration Comments
Fetch a premise tree record

GET /utilitiesAdmin/v1/premiseTree

Example:

GET https://<hostname>/api/utilitiesAdmin/v1/premiseTree

A specific premise tree record can be fetched using:

GET /utilitiesAdmin/v1/premiseTree/{id}

Example:

GET https://<hostname>/api/utilitiesAdmin/v1/premiseTree/PREMISE

Specify your URL

POST /CXIPlatformService/v1/CXIReferenceEntity/premiseTree

Example:

POST https://<hostname>/api/CXIPlatformService/v1/CXIReferenceEntity/premiseTree

{

"items": [

{

"operation": "create",

"data": {

"id": "premiseViewInCISUrl",

"name": "premiseViewInCISUrl",

"value": "https://<server>:<port>/<context>/ccs/web/cis.jsp?script=C1-CCByAcct&ACCT ID={{accountId}}"

}

}

]

}
Oracle recommends using the same value for 'id' and 'name'.
Edit a URL

POST /CXIPlatformService/v1/CXIReferenceEntity/premiseTree

Example:

POST https://<hostname>/api/CXIPlatformService/v1/CXIReferenceEntity/premiseTree

{

"items": [

{

"operation": "update",

"data": {

"id": "premiseViewInCISUrl",

"name": "premiseViewInCISUrl",

"value": "https://<server>:<port>/<context>/ccs/web/cis.jsp?script=C1-CCByAcct&ACCT ID={{accountId}}"

}

}

]

}

Oracle recommends using the same value for 'id' and 'name'.

Multiple premise tree records can be edited together by adding them to the “items" list.

Delete a URL

POST /CXIPlatformService/v1/CXIReferenceEntity/premiseTree

Example:

POST https://<hostname>/api/CXIPlatformService/v1/CXIReferenceEntity/premiseTree

{

"items": [

{

"operation": "delete",

"data": {

"id": "premiseViewInCISUrl"

}

}

]

}
Add inactive node type for premise

POST

/CXIPlatformService/v1/CXIReferenceEntity/premiseTree

{

"items": [

{

"operation": "create",

"data":{

"name": "HIST_PREM",

"id": "HIST_PREM",

"value": "oj-ux-ico-city"

}

},

{

"operation": "create",

"data":{

"name": " HIST_PREMS",

"id": " HIST_PREMS",

"value": " oj-ux-ico-city "

}

}

]

}