insight-publication:create
Index
Main
Spirit
Logicsheet
insight:
operations
insight-topic:
create
rename
fetch
fetch-tree
fetch-list
current
get-id
get-name
get-fqname
insight-publication:
create
make-default
fetch
fetch-list
get-id
get-state
get-format
get-topic
fetch-fragments
get-fragment-path
get-fragment-locator

Description

Namespace : insight-publication="http://shaman.paris5.fr/xsp/insight-publication"

Element name : insight-publication:create

Purpose : Creates a new Publication, with a given parent Topic.

Inner scope

Current Publication node : The newly created Publication is defined inside the creation tag.


Parameters

         Name           Role Mandatory Remarks
topic-id Sets the Id of the parent Topic of the newly created Publication (root Topic has Id '0'). No, if enclosing tag defines a Topic. Exclusive with topic-fqname.
content-path Sets the path of the content to retrieve from the Legend server. Yes
legend-user Sets the User name for connecting to Legend server. Yes
legend-password Sets the User password for connecting to Legend server. Yes
state Sets the initial state of the Publication. No Defaulted to ""
format Sets the format of the Publication. No Defaulted to "RAW"

Examples

Example 1

Create a Publication imported from directory "dir1". This publication is attached to the root Topic.

<insight:operations>

  <insight-publication:create
      topic-id="0"
      content-path="dir1"
      legend-user="root"
      legend-password="root"
  />

</insight:operations>



Copyright 2002 Laurent Caillette and l'Université René Descartes, Paris 5.
All rights reserved.