• Publicity: Public Only All

content-symlink-procs.tcl

Procedures for content symlink

Location:
packages/acs-content-repository/tcl/content-symlink-procs.tcl
Created:
2004-06-09
Author:
Dave Bauer <dave@thedesignexperience.org>
CVS Identification:
$Id: content-symlink-procs.tcl,v 1.8 2018/08/15 16:24:28 gustafn Exp $

Procedures in this file

Detailed information

content::symlink::copy (public)

 content::symlink::copy -symlink_id symlink_id \
    -target_folder_id target_folder_id -creation_user creation_user \
    [ -creation_ip creation_ip ]
Switches:
-symlink_id (required)
-target_folder_id (required)
-creation_user (required)
-creation_ip (optional)

Partial Call Graph (max 5 caller/called nodes):
%3 package_exec_plsql package_exec_plsql (public) content::symlink::copy content::symlink::copy content::symlink::copy->package_exec_plsql

Testcases:
No testcase defined.

content::symlink::delete (public)

 content::symlink::delete -symlink_id symlink_id
Switches:
-symlink_id (required)

Partial Call Graph (max 5 caller/called nodes):
%3 package_exec_plsql package_exec_plsql (public) content::symlink::delete content::symlink::delete content::symlink::delete->package_exec_plsql

Testcases:
No testcase defined.

content::symlink::is_symlink (public)

 content::symlink::is_symlink -item_id item_id
Switches:
-item_id (required)
Returns:
CHAR

Partial Call Graph (max 5 caller/called nodes):
%3 package_exec_plsql package_exec_plsql (public) content::symlink::is_symlink content::symlink::is_symlink content::symlink::is_symlink->package_exec_plsql

Testcases:
No testcase defined.

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 ]

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

content::symlink::resolve (public)

 content::symlink::resolve -item_id item_id

Return the item_id of the target item to which the symlink points

Switches:
-item_id (required)
item_id of the symlink
Returns:
NUMBER(38)

Partial Call Graph (max 5 caller/called nodes):
%3 fs::publish_object_to_file_system fs::publish_object_to_file_system (public) content::symlink::resolve content::symlink::resolve fs::publish_object_to_file_system->content::symlink::resolve packages/file-storage/www/folder-chunk.tcl packages/file-storage/ www/folder-chunk.tcl packages/file-storage/www/folder-chunk.tcl->content::symlink::resolve package_exec_plsql package_exec_plsql (public) content::symlink::resolve->package_exec_plsql

Testcases:
No testcase defined.

content::symlink::resolve_content_type (public)

 content::symlink::resolve_content_type -item_id item_id
Switches:
-item_id (required)
Returns:
VARCHAR2(100)

Partial Call Graph (max 5 caller/called nodes):
%3 package_exec_plsql package_exec_plsql (public) content::symlink::resolve_content_type content::symlink::resolve_content_type content::symlink::resolve_content_type->package_exec_plsql

Testcases:
No testcase defined.
[ hide source ] | [ make this the default ]

Content File Source

ad_library {
    
    Procedures for content symlink
    
    @author Dave Bauer (dave@thedesignexperience.org)
    @creation-date 2004-06-09
    @cvs-id $Id: content-symlink-procs.tcl,v 1.8 2018/08/15 16:24:28 gustafn Exp $
}

namespace eval ::content::symlink {}

d_proc -public content::symlink::copy {
    -symlink_id:required
    -target_folder_id:required
    -creation_user:required
    {-creation_ip ""}
} {
    @param symlink_id
    @param target_folder_id
    @param creation_user
    @param creation_ip
} {
    return [package_exec_plsql -var_list [list \
        [list symlink_id $symlink_id ] \
        [list target_folder_id $target_folder_id ] \
        [list creation_user $creation_user ] \
        [list creation_ip $creation_ip ] \
    ] content_symlink copy]
}


d_proc -public content::symlink::delete {
    -symlink_id:required
} {
    @param symlink_id
} {
    return [package_exec_plsql -var_list [list \
        [list symlink_id $symlink_id ] \
    ] content_symlink delete]
}


d_proc -public content::symlink::is_symlink {
    -item_id:required
} {
    @param item_id

    @return CHAR
} {
    return [package_exec_plsql -var_list [list \
        [list item_id $item_id ] \
    ] content_symlink is_symlink]
}


d_proc -public content::symlink::new {
    {-name ""}
    {-label ""}
    -target_id:required
    -parent_id:required
    {-symlink_id ""}
    -creation_date
    {-creation_user ""}
    {-creation_ip ""}
} {
    This procedure allows you to create a new Symlink
    @param name Name of the new content item. Used instead of "symlink_to_item target_id"
    @param label 
    @param target_id Item_id of the item to which the link should point
    @param parent_id item_id (preferably folder_id) of the parent (folder) where the link is associated and shown in. 
    @param symlink_id
    @param creation_date
    @param creation_user
    @param creation_ip

    @return NUMBER(38)
} {
    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]
}


d_proc -public content::symlink::resolve {
    -item_id:required
} {
    Return the item_id of the target item to which the symlink points
    @param item_id item_id of the symlink

    @return NUMBER(38)
} {
    return [package_exec_plsql -var_list [list \
        [list item_id $item_id ] \
    ] content_symlink resolve]
}


d_proc -public content::symlink::resolve_content_type {
    -item_id:required
} {
    @param item_id

    @return VARCHAR2(100)
} {
    return [package_exec_plsql -var_list [list \
        [list item_id $item_id ] \
    ] content_symlink resolve_content_type]
}

# Local variables:
#    mode: tcl
#    tcl-indent-level: 4
#    indent-tabs-mode: nil
# End: