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):
- 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