content::symlink::new (public)

 content::symlink::new [ -name name ] [ -label label ] \
    -target_id target_id -parent_id parent_id \
    [ -symlink_id symlink_id ] [ -creation_date creation_date ] \
    [ -creation_user creation_user ] [ -creation_ip creation_ip ]

Defined in packages/acs-content-repository/tcl/content-symlink-procs.tcl

This procedure allows you to create a new Symlink

Switches:
-name
(optional)
Name of the new content item. Used instead of "symlink_to_item target_id"
-label
(optional)
-target_id
(required)
Item_id of the item to which the link should point
-parent_id
(required)
item_id (preferably folder_id) of the parent (folder) where the link is associated and shown in.
-symlink_id
(optional)
-creation_date
(optional)
-creation_user
(optional)
-creation_ip
(optional)
Returns:
NUMBER(38)

Partial Call Graph (max 5 caller/called nodes):
%3 test_fs_publish_file fs_publish_file (test file-storage) content::symlink::new content::symlink::new test_fs_publish_file->content::symlink::new package_exec_plsql package_exec_plsql (public) content::symlink::new->package_exec_plsql fs::file_copy fs::file_copy (public) fs::file_copy->content::symlink::new

Testcases:
fs_publish_file
Source code:
    set var_list [list  [list name $name ]  [list label $label ]  [list target_id $target_id ]  [list parent_id $parent_id ]  [list symlink_id $symlink_id ]  [list creation_user $creation_user ]  [list creation_ip $creation_ip ]  ]
    if {[info exists creation_date] && $creation_date ne ""} {
        lappend var_list [list creation_date $creation_date ]
    }
    return [package_exec_plsql -var_list $var_list content_symlink new]
XQL Not present:
Generic, PostgreSQL, Oracle
[ hide source ] | [ make this the default ]
Show another procedure: