org.jasig.portal.security.xslt
Class XalanAuthorizationHelperBean

java.lang.Object
  extended by org.jasig.portal.security.xslt.XalanAuthorizationHelperBean
All Implemented Interfaces:
IXalanAuthorizationHelper

public class XalanAuthorizationHelperBean
extends Object
implements IXalanAuthorizationHelper

Spring managed version of the Xalan Elements helper class used during portal XSL transformations.

Version:
$Revision$
Author:
Eric Dalquist

Field Summary
protected  org.apache.commons.logging.Log logger
           
 
Constructor Summary
XalanAuthorizationHelperBean()
           
 
Method Summary
 boolean canRender(String userName, String channelFName)
          Checks if the specified user can render the specified channel.
 IChannelRegistryStore getChannelRegistryStore()
           
protected  IAuthorizationPrincipal getUserPrincipal(String userName)
           
 void setChannelRegistryStore(IChannelRegistryStore channelRegistryStore)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

protected final org.apache.commons.logging.Log logger
Constructor Detail

XalanAuthorizationHelperBean

public XalanAuthorizationHelperBean()
Method Detail

getChannelRegistryStore

public IChannelRegistryStore getChannelRegistryStore()
Returns:
the channelRegistryStore

setChannelRegistryStore

public void setChannelRegistryStore(IChannelRegistryStore channelRegistryStore)
Parameters:
channelRegistryStore - the channelRegistryStore to set

canRender

public boolean canRender(String userName,
                         String channelFName)
Description copied from interface: IXalanAuthorizationHelper
Checks if the specified user can render the specified channel.

Specified by:
canRender in interface IXalanAuthorizationHelper
Parameters:
userName - Looks up the user with the matching IPerson.USERNAME
channelFName - Looks up the org.jasig.portal.ChannelDefinition with the matching fname
Returns:
true if the user has permission to render the channel, false for any other case.

getUserPrincipal

protected IAuthorizationPrincipal getUserPrincipal(String userName)


Copyright © 2010 Jasig. All Rights Reserved.