Editing - onion.net Datasource
The editing functions extend the core functions with the following methods. In order for the methods to be used, it is necessary to integrate the namespace http://onionworks.net/2006/data/editing.
Namespace: http://onionworks.net/2006/data/editing
| Name | Parameter | Return type | Description |
|---|---|---|---|
| checkIn | target:xlink [force:boolean] |
boolean | Returns a checked-out element. |
| checkOut | target:xlink | boolean | Checks out the specified element to the logged-in user. |
| createBinary | filename:string mimeType:string |
string | Writes a binary data object on the basis of a physical file or a link to a binary method in onion.net and returns the ReferenceIdentifier as the result. |
| createObject | target:xlink name:string content:nodeset [autoCheckIn:boolean] |
string | Adds new datasets to the content. |
| deleteObject | target:xlink [recursive:boolean] |
boolean | Deletes the object at the specified place. |
| getUser | username:string | nodeset | Returns information about the specified user. |
| renameObject | target:xlink newName:string |
boolean | Makes it possible to rename elements. |
| setObjectPosition | target:xlink position:int |
boolean | Makes it possible to move elements to a position within the structure. |
| shiftObjectPosition | target:xlink position:int |
boolean | Makes it possible to move elements by a number of positions within the structure. |
| undoCheckOut | target:xlink | boolean | Discards changes of the checked-out document. |
| updateObject | target:xlink newContent:nodeset |
boolean | Saves changes to an existing object. |
| updateUsername | userReference:string, username:string | string | Sets the username für a user. |
