fs::get_folder_objects (public)

 fs::get_folder_objects -folder_id folder_id -user_id user_id

Defined in packages/file-storage/tcl/file-storage-procs.tcl

Return a list the object_ids contained by a file storage folder.

Switches:
-folder_id (required)
The folder for which to retrieve contents
-user_id (required)
The viewer of the contents (to make sure they have permission)

Partial Call Graph (max 5 caller/called nodes):
%3 test_fs_publish_file fs_publish_file (test file-storage) fs::get_folder_objects fs::get_folder_objects test_fs_publish_file->fs::get_folder_objects db_list db_list (public) fs::get_folder_objects->db_list

Testcases:
fs_publish_file
Source code:
    return [db_list select_folder_contents {
        select item_id
          from cr_items
         where parent_id = :folder_id
           and acs_permission.permission_p(item_id, :user_id, 'read') = 't'
    }]
Generic XQL file:
packages/file-storage/tcl/file-storage-procs.xql

PostgreSQL XQL file:
packages/file-storage/tcl/file-storage-procs-postgresql.xql

Oracle XQL file:
packages/file-storage/tcl/file-storage-procs-oracle.xql

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