Personalization - onion.net Datasource
The personalization function library contains all functions of the application library and provides further methods for personalization. Each operation is executed in the context of the logged-in user.
The functions for the editing of users, groups and profiles often require references. If only the self-explanatory names are known, these can be resolved via the user and group views.
Namespace: http://onionworks.net/2006/data/personalization
| Name | Parameter | Return type | Description |
|---|---|---|---|
| canCreateChild | parent:string | boolean | Checks whether the logged-in user has the authorization to create elements below the specified element. |
| canDelete | target:xlink | boolean | Checks whether the logged-in user has the authorization to delete the specified element. |
| canDeleteChildren | target:xlink | boolean | Checks whether the logged-in user has the authorization to delete the child elements of the specified element. |
| canModify | target:xlink | boolean | Checks whether the logged-in user has the authorization to work on the document. |
| canModifyChildren | target:xlink | boolean | Checks whether the logged-in user has the authorization to work on the child elements of the specified element. |
| canRead | target:xlink | boolean | Checks whether the logged-in user has the authorization to view the specified element. |
| createSettings | schemaLocation:string content:nodeset [instance:string] |
string | Produces a document in the user profile for a user. |
| getCurrentUser | nodeset | Returns some information about the logged in user. | |
| getCurrentUserReference | string | Returns a link to the logged-in user | |
| joinGroup | groupReference:xlink | boolean | Adds a user to the specified group. |
| leaveGroup | groupReference:xlink | boolean | Removes the specified user from the specified group. |
| login | username:string password:string |
boolean | Logs a user into the system. |
| logout | void | Logs out a user who was previously logged in with “login”. | |
| memberOf | userReference:xlink, groupReference:string | boolean | Checks whether a user is a member of a group. |
| setDisplayName | [userReference:xlink] name:string |
void | Sets the display name for a user. |
| updatePassword | newPassword:string | boolean | Sets the password of a user. |
The application-context function can be finde here.
