I did not do this on purpose and I did not notice until Alain pointed
it out. 'iHerve' if you pronounce it in Spanish means 'it boils'. So I
guess my web site is a hot one, huh? :-)
Web crawler built with Oracle
Technology
Web crawling: Oracle has plans for a new product (built on interMedia)
called iSearch. No commitment yet to integrate that with Portal.
Try isearch.us.oracle.com for more info.
Portal 3.0. Tips and Tricks
set head off
set pages 1000
set lines 140
col f_title format a50
spool list_f.txt
select crn.siteid site, crn.id fol_id, LPAD(crn.title,length(crn.title)+(level-1)*4,'.')
f_title
from wwv_corners crn
where crn.siteid >10 -- only user defined folders
start with crn.parentid = 0 and -- for optimizer
crn.id = 1 and -- for optimizer
crn.siteid > 10
connect by crn.parentid = prior crn.id and
crn.siteid = prior crn.siteid and
crn.language = prior crn.language;
spool out
select otype.name, privilege_code, sec.name
from wwsec_privilege$ sec,
wwsec_priv_object_type$ otype
where otype.id = sec.object_type_id
order by 1,2
The results are in the table below.
FOLDER | 100 | VIEW |
FOLDER | 200 | STYLE |
FOLDER | 300 | CREATE_WITH_APPROVAL |
FOLDER | 400 | CREATE_WITH_APP_AND_STYLE |
FOLDER | 500 | MANAGE |
FOLDER | 600 | MANAGE_AND_STYLE |
FOLDER | 700 | OWN |
Pushing this a step further I have included a query that I used times and
times again. It provides a list of folders to which a given Portal
user has at least a 'Create With Approval' clearance through
any Role granted to that user as long as the role name ends in '_PUBLISH'
or '_APPROVE'. Let me know if you want the util package.
cursor get_dest (p_user_id number) is
select id, siteid, title, language
from wwv_corners
where (id, siteid) in
(
select
to_number(util.snip_between(priv.name,'/', null)) folder_id,
to_number(util.snip_between(priv.name,null,'/')) site_id
from wwsec_sys_priv$ priv
where priv.grantee_group_id in (
select prs_grp.group_id
from wwsec_flat$ prs_grp,
wwsec_group$ grp
where prs_grp.person_id = p_user_id and
prs_grp.person_id != 0 and
grp.id = prs_grp.group_id and
(grp.name like '%_PUBLISH' or
grp.name like '%_APPROVE')
) and
priv.object_type_name = 'FOLDER' and
priv.privilege_code >= 300
)
order by title;