Content Repository : content_symlink
Symlinks are pointers to items within the content repository. They are simply used to create links between content items.
Determines if the item is a symlink
Author: | Karl Goldstein | |||
---|---|---|---|---|
Returns: | 't' if the item is a symlink, 'f' otherwise | |||
Parameters: | ||||
| ||||
Declaration: | ||||
function is_symlink ( item_id in cr_items.item_id%TYPE ) return char; | ||||
See Also: | content_symlink.new, content_symlink.resolve |
Create a new symlink, linking two items
Author: | Karl Goldstein | ||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Returns: | The id of the newly created symlink | ||||||||||||||||||||||||
Parameters: | |||||||||||||||||||||||||
| |||||||||||||||||||||||||
Declaration: | |||||||||||||||||||||||||
function new ( name in cr_items.name%TYPE default null, label in cr_symlinks.label%TYPE default null, target_id in cr_items.item_id%TYPE, parent_id in acs_objects.context_id%TYPE, symlink_id in cr_symlinks.symlink_id%TYPE default null, creation_date in acs_objects.creation_date%TYPE default sysdate, creation_user in acs_objects.creation_user%TYPE default null, creation_ip in acs_objects.creation_ip%TYPE default null ) return cr_symlinks.symlink_id%TYPE; | |||||||||||||||||||||||||
See Also: | acs_object.new, content_item.new, content_symlink.resolve |
Resolves the symlink and returns the target item id.
Author: | Karl Goldstein | |||
---|---|---|---|---|
Returns: | The target item of the symlink, or the original item id if the item is not in fact a symlink | |||
Parameters: | ||||
| ||||
Declaration: | ||||
function resolve ( item_id in cr_items.item_id%TYPE ) return cr_items.item_id%TYPE; | ||||
See Also: | content_symlink.new, content_symlink.is_symlink |
Gets the content type of the target item.
Author: | Michael Pih | |||
---|---|---|---|---|
Returns: | The content type of the symlink target, otherwise null. the item is not in fact a symlink | |||
Parameters: | ||||
| ||||
Declaration: | ||||
function resolve_content_type ( item_id in cr_items.item_id%TYPE ) return cr_items.content_type%TYPE; | ||||
See Also: | content_symlink.resolve |
Copies the symlink itself to another folder, without resolving the symlink
Author: | Karl Goldstein | ||||||
---|---|---|---|---|---|---|---|
Parameters: | |||||||
| |||||||
Declaration: | |||||||
procedure copy ( symlink_id in cr_symlinks.symlink_id%TYPE, target_folder_id in cr_folders.folder_id%TYPE ); | |||||||
See Also: | content_symlink.new, content_item.copy |
Deletes the symlink
Author: | Karl Goldstein | |||
---|---|---|---|---|
Parameters: | ||||
| ||||
Declaration: | ||||
procedure delete ( symlink_id in cr_symlinks.symlink_id%TYPE ); | ||||
See Also: | content_symlink.new, acs_object.delete |
Last Modified: $Id: symlink.html,v 1.2.2.2 2016/06/22 07:40:41 gustafn Exp $