Thanks Eric! The IChannelRegistryStore worked like a charm.

-Michael

Quoting Eric Dalquist <[email protected]>:

> Is it running in the same uPortal instance or just the same Tomcat  
> instance? Servlet applications have classloader boundaries you one  
> servlet app can't call APIs from another servlet app.
>
> In 2.X IChannelRegistryStore will let you look up info about an  
> IChannel by fname which you can then use in the permissions APIs.
>
> -Eric
>
>
>
> Michael Herring wrote:
>> 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]
>>
>>
>>



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