|
publication.create
|
| |
|
description
Create a publication line inside a publication list (set object instance inside a list).
User must have the create privilege (policy create)
on the concerned publication list.
privilege-required
anyone
tx-support
true
|
| |
|
INSTRUCTION
|
|
name
|
type
|
default-value
|
required
|
description
|
| publication-list-name |
string |
none |
true |
Publication list name. |
|
| |
|
PARAMETER
|
|
name
|
type
|
default-value
|
required
|
description
|
| parent-id |
integer |
none |
false |
Publication id of the parent (used to create an hierarchical representation of data). |
| publication-date |
date |
none |
false |
Date from which the pubilication will appear. |
| hidden |
boolean |
none |
false |
Mention if the publication should appear or not. |
| policy-exportable |
integer |
none |
false |
Privilege required for linking this publication to an other site publication list. |
| *create-date |
date |
none |
false |
(Super user privilege required). Creation date. |
| *create-user-id |
integer |
none |
false |
(Super user privilege required). Creator user id. |
| instance-id |
integer |
none |
true |
Id of an object instance. |
| publication-expire-date |
date |
none |
false |
Date from which the pubilication will disappear. |
|
| |
|
ERROR
|
|
|
id
|
msg
|
| 1 |
Insufficient privilege level to publish |
| 2 |
Publication list name unvalid |
|
| |
|
RESULT
|
|
|
name
|
description
|
| id |
Id of new publication. |
|
| |
|
EXAMPLE
|
|
|
example 1
|
<nvd:command name="publication.create" publication-list-name="main-publication-list">
<nvd:parameter name="instance-id">2458</nvd:parameter>
<nvd:parameter name="publication-date" type="date" format="dd-MM-yyyy HH:mm">23-01-2002 13:58</nvd:parameter>
<nvd:parameter name="hidden" type="boolean">true</nvd:parameter>
<nvd:result name="id" variable="pub-id" />
</nvd:command>
|
|