org.jasig.schedassist.portlet.visitors
Class DefaultPortletScheduleVisitorFactoryImpl

java.lang.Object
  extended by org.jasig.schedassist.portlet.visitors.DefaultPortletScheduleVisitorFactoryImpl
All Implemented Interfaces:
IPortletScheduleVisitorFactory

public class DefaultPortletScheduleVisitorFactoryImpl
extends Object
implements IPortletScheduleVisitorFactory

Default IPortletScheduleVisitorFactory implementation. The AccountId returned on the IPortletScheduleVisitor is sourced from PortletRequest.getRemoteUser().

Author:
Nicholas Blair

Constructor Summary
DefaultPortletScheduleVisitorFactoryImpl()
           
 
Method Summary
protected  IPortletScheduleVisitor doConstructVisitor(String accountId)
          Invoke PortletSchedulingAssistantService.isEligible(String) and construct a DefaultPortletScheduleVisitorImpl with the accountId and eligible result.
 IPortletScheduleVisitor getPortletScheduleVisitor(javax.portlet.PortletRequest portletRequest)
          Implementations should never return null.
 PortletSchedulingAssistantService getSchedulingAssistantService()
           
 void setSchedulingAssistantService(PortletSchedulingAssistantService schedulingAssistantService)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultPortletScheduleVisitorFactoryImpl

public DefaultPortletScheduleVisitorFactoryImpl()
Method Detail

setSchedulingAssistantService

public void setSchedulingAssistantService(@Qualifier(value="portlet")
                                          PortletSchedulingAssistantService schedulingAssistantService)
Parameters:
schedulingAssistantService - the schedulingAssistantService to set

getSchedulingAssistantService

public PortletSchedulingAssistantService getSchedulingAssistantService()
Returns:
the schedulingAssistantService

getPortletScheduleVisitor

public IPortletScheduleVisitor getPortletScheduleVisitor(javax.portlet.PortletRequest portletRequest)
Description copied from interface: IPortletScheduleVisitorFactory
Implementations should never return null.

Specified by:
getPortletScheduleVisitor in interface IPortletScheduleVisitorFactory
Returns:
the IPortletScheduleVisitor associated with the request

doConstructVisitor

protected IPortletScheduleVisitor doConstructVisitor(String accountId)
Invoke PortletSchedulingAssistantService.isEligible(String) and construct a DefaultPortletScheduleVisitorImpl with the accountId and eligible result.

Parameters:
accountId -
Returns:
the IPortletScheduleVisitor.


Copyright © 2012 Jasig. All Rights Reserved.