I've got a servlet which is running inside the same tomcat instance as  
our uPortal instance (v2.5.3). This servlet is being passed a channel  
fname as an argument, and I would like to perform an authorization  
check before allowing the servlet to execute. The check in particular  
is whether the user connected to the servlet is allowed to  
subscribe/render the channel associated with the passed-in fname.

Are there any API calls that provide generic channel lookup? In  
particular by fname?

Not finding a channel lookup API outside of ChannelDefinition  
(requires numeric channel ID), I tried using the  
getAuthorizedChannels() method of the AuthorizationImpl, but found  
this method has never been implemented (even in v3.1.1). So my next  
approach is to use the canPrincipalRender() method but I need a way of  
looking up the a channel ID from an fname (in our environment, all  
channels have a unique fname), preferably via an API and not a DB query.

Any pointers?

Thanks for your help,

Michael

Michael Herring
Information Technology Services
Web Developer
Denison University
740-587-6360
[email protected]


-- 
You are currently subscribed to [email protected] as: 
[email protected]
To unsubscribe, change settings or access archives, see 
http://www.ja-sig.org/wiki/display/JSG/uportal-dev

Reply via email to