@@ -190,7 +190,7 @@ func AddUIEndpoints(ws *WebService) {
190190}
191191
192192type APINodeDetails struct {
193- ID engine.ObjectID `json:"id"`
193+ ID engine.NodeID `json:"id"`
194194 Label string `json:"label"`
195195 DistinguishedName string `json:"distinguishedname"`
196196 Attributes map [string ][]string `json:"attributes"`
@@ -284,7 +284,7 @@ func AddDataEndpoints(ws *WebService) {
284284 c .String (500 , "Error parsing ID" )
285285 return
286286 }
287- o , found = ws .SuperGraph .LookupNodeByID (engine .ObjectID (id ))
287+ o , found = ws .SuperGraph .LookupNodeByID (engine .NodeID (id ))
288288 // o, found = ws.SuperGraph.Find(engine.UniqueID, engine.NewAttributeValueGUID(id))
289289 case "dn" , "distinguishedname" :
290290 o , found = ws .SuperGraph .Find (activedirectory .DistinguishedName , engine .AttributeValueString (c .Param ("id" )))
@@ -329,7 +329,7 @@ func AddDataEndpoints(ws *WebService) {
329329 c .String (500 , "Error parsing ID" )
330330 return
331331 }
332- o , found = ws .SuperGraph .LookupNodeByID (engine .ObjectID (thisId ))
332+ o , found = ws .SuperGraph .LookupNodeByID (engine .NodeID (thisId ))
333333 if ! found {
334334 c .AbortWithStatus (404 )
335335 return
@@ -407,7 +407,7 @@ func AddDataEndpoints(ws *WebService) {
407407 return
408408 }
409409
410- if parent , found := ws .SuperGraph .LookupNodeByID (engine .ObjectID (id )); found {
410+ if parent , found := ws .SuperGraph .LookupNodeByID (engine .NodeID (id )); found {
411411 // if parent, found := ws.SuperGraph.Find(engine.UniqueID, engine.NewAttributeValueGUID(id)); found {
412412 children = parent .Children ()
413413 } else {
@@ -416,10 +416,10 @@ func AddDataEndpoints(ws *WebService) {
416416 }
417417 }
418418 type treeData struct {
419- Label string `json:"text"`
420- Type string `json:"type,omitempty"`
421- ID engine.ObjectID `json:"id"`
422- Children bool `json:"children,omitempty"`
419+ Label string `json:"text"`
420+ Type string `json:"type,omitempty"`
421+ ID engine.NodeID `json:"id"`
422+ Children bool `json:"children,omitempty"`
423423 }
424424 var results []treeData
425425 children .Iterate (func (object * engine.Node ) bool {
0 commit comments