|
object.create
|
| |
|
description
Create a new object class for the current site.
privilege-required
administrator
tx-support
true
|
| |
|
PARAMETER
|
|
name
|
type
|
default-value
|
required
|
description
|
| policy-read-default |
string |
none |
false |
Default privilege to read the content of each object instance
(owner cannot be applied). |
| name |
string |
none |
true |
Object name (should match a specific regexp defined in the configuration file). |
|
| |
|
ERROR
|
|
|
id
|
msg
|
| 1 |
Object name allready exists |
| 2 |
Incorrect policy |
|
| |
|
RESULT
|
|
|
name
|
description
|
| id |
Id of the new object. |
|
| |
|
EXAMPLE
|
|
|
example 1
|
<nvd:command name="object.create" >
<nvd:parameter name="name">news</nvd:parameter>
<nvd:result name="id" variable="object-id" />
</nvd:command>
|
|