oracle8.1.6
begin
:1 := file_storage.new_root_folder(
folder_url => :name,
package_id => :package_id,
folder_name => :pretty_name,
description => :description
);
end;
begin
:1 := file_storage.get_root_folder(
package_id => :package_id
);
end;
begin
content_folder.edit_name(
folder_id => :folder_id,
label => :name
);
end;
begin
:1 := file_storage.get_folder_name(:folder_id);
end;
begin
:1 := file_storage.get_title(:item_id);
end;
select case when file_storage.get_content_type(i.item_id) = 'content_folder'
then :folder_url || '?folder_id='
else :file_url || '?file_id='
end || i.item_id || :extra_vars,
file_storage.get_title(i.item_id)
from cr_items i
where item_id not in (select i2.item_id
from cr_items i2
connect by prior i2.parent_id = i2.item_id
start with i2.item_id = :root_folder_id)
connect by prior i.parent_id = i.item_id
start with item_id = :start_id
order by level desc
begin
:1 := file_storage.new_file (
folder_id => :parent_id,
title => :name,
creation_user => :creation_user,
creation_ip => :creation_ip,
item_id => :item_id,
indb_p => :indbp
);
end;
begin
:1 := file_storage.delete_version(
:item_id,
:version_id
);
end;
begin
file_storage.delete_file(
:item_id
);
end;
select file_storage.delete_folder(:folder_id, :cascade_p ) from dual
select r.package_id,
r.folder_id as root_folder_id
from fs_root_folders r,
(select item_id as folder_id
from cr_items
connect by prior parent_id = item_id
start with item_id = :folder_id) t
where r.folder_id = t.folder_id