content::item::get_id (public)

 content::item::get_id -item_path item_path \
    [ -root_folder_id root_folder_id ] \
    [ -resolve_index resolve_index ]

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

Looks up the item_path starting with the root folder and returns item_id for that content item or empty, if none exists

Switches:
-item_path
(required)
-root_folder_id
(optional)
-resolve_index
(optional)
Returns:
The item_id of the found item, or the empty string on failure

Partial Call Graph (max 5 caller/called nodes):
%3 test_content_item content_item (test acs-content-repository) content::item::get_id content::item::get_id test_content_item->content::item::get_id test_cr_item_search_triggers cr_item_search_triggers (test acs-content-repository) test_cr_item_search_triggers->content::item::get_id test_image_new image_new (test acs-content-repository) test_image_new->content::item::get_id package_exec_plsql package_exec_plsql (public) content::item::get_id->package_exec_plsql content::init content::init (public) content::init->content::item::get_id fs::get_item_id fs::get_item_id (public) fs::get_item_id->content::item::get_id image::get_size_item_id image::get_size_item_id (private) image::get_size_item_id->content::item::get_id packages/file-storage/www/folder-add.tcl packages/file-storage/ www/folder-add.tcl packages/file-storage/www/folder-add.tcl->content::item::get_id packages/file-storage/www/folder-zip-add.tcl packages/file-storage/ www/folder-zip-add.tcl packages/file-storage/www/folder-zip-add.tcl->content::item::get_id

Testcases:
image_new, content_item, cr_item_search_triggers
Source code:
    return [package_exec_plsql -var_list [list  [list item_path $item_path ]  [list root_folder_id $root_folder_id ]  [list resolve_index $resolve_index ]  ] content_item get_id]
Generic XQL file:
packages/acs-content-repository/tcl/content-item-procs.xql

PostgreSQL XQL file:
packages/acs-content-repository/tcl/content-item-procs-postgresql.xql

Oracle XQL file:
packages/acs-content-repository/tcl/content-item-procs-oracle.xql

[ hide source ] | [ make this the default ]
Show another procedure: