LogicalNodeRouter
addOrganizer(contextUid, id) |
Adds a new dynamic service organizer @type contextUid: string @param contextUid: Not used but sent by the client @type id: string @param id: unique identifier of the organizer @rtype: DirectResponse |
gzip_b64(string) |
gzip an arbitrary string, base64 encode it, and return it |
deleteNode(uid) |
Remove a node. |
asyncGetTree(**additionalKeys, **id) |
Server side method for asynchronous tree calls. Retrieves the immediate children of the node specified by "id" NOTE: our convention on the UI side is if we are asking for the root node then return the root and its children otherwise just return the children @type id: string @param id: The uid of the node we are getting the children for @rtype: [dictionary] @return: Object representing the immediate children |
addNode(contextUid, id) |
Adds a new services designated by the id field. @type contextUid: string @param contextUid: organizer for the new service @type id: string @param id: unique id for our new logical node @rtype: LogicalNode @return: Our newly created logical node |
getInfo(uid) |
@return the details of a single info object as well as the form describing its schema |
moveNode(uids, targetUid) |
Accepts a list of uids, and moves those to be under the target Uid @type uids: [string] @param uids: List of uids to be moved, can be either organizers or dynamic services @type targetUid: string @param targetUid: Uid of a LogicalNodeOrganizer @rtype: DirectResponse |
getInfoFromGuid(guid) |
@return the details of a single info object as well as the form describing its schema |
getTree(**id) |
Returns the dynamic services tree. @rtype: dict @return: Tree designed to be used by ExtJS |
setInfo() |
|
objectExists(uid) |
@rtype: DirectResponse @return: - Properties: - B{exists} - Returns true if we can find the object specified by the uid |
gunzip_b64(string) |
Base 64 decode a string, then gunzip it and return the result as JSON. The input to this method should be gzipped, base 64 encoded JSON. Base 64 encoded strings are allowed to have up to 2 '='s of padding. The zenoss Ext router eats these, so there is some logic to try padding them back into the string should initial decoding fail. |
moveOrganizer(targetUid, organizerUid) |
Move the organizer uid to be underneath the organizer specified by the targetUid. @type targetUid: string @param targetUid: New parent of the organizer @type organizerUid: string @param organizerUid: The organizer to move @rtype: DirectResponse @return: B{Properties}: - data: (dictionary) Moved organizer |
setInfoFromGuid() |