org.jasig.schedassist.portlet.visitors
Class DefaultPortletScheduleVisitorImpl

java.lang.Object
  extended by org.jasig.schedassist.portlet.visitors.DefaultPortletScheduleVisitorImpl
All Implemented Interfaces:
IPortletScheduleVisitor

public class DefaultPortletScheduleVisitorImpl
extends Object
implements IPortletScheduleVisitor

Default implementation of IScheduleVisitor.

Author:
Nicholas Blair

Constructor Summary
DefaultPortletScheduleVisitorImpl(String username)
           
DefaultPortletScheduleVisitorImpl(String username, boolean eligible)
           
 
Method Summary
 boolean equals(Object obj)
           
 String getAccountId()
          Return a String that uniquely idenfies this visitor in the remote calendar service.
 int hashCode()
           
 boolean isEligible()
           
 void setEligible(boolean eligible)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DefaultPortletScheduleVisitorImpl

public DefaultPortletScheduleVisitorImpl(String username)
Parameters:
username -

DefaultPortletScheduleVisitorImpl

public DefaultPortletScheduleVisitorImpl(String username,
                                         boolean eligible)
Parameters:
username -
eligible -
Method Detail

getAccountId

public String getAccountId()
Description copied from interface: IPortletScheduleVisitor
Return a String that uniquely idenfies this visitor in the remote calendar service. This could be a username or an email address.

Specified by:
getAccountId in interface IPortletScheduleVisitor
Returns:
a string that uniquely identifies this visitor.

isEligible

public boolean isEligible()
Specified by:
isEligible in interface IPortletScheduleVisitor
Returns:
true if this account is eligible for the remote calendar service

setEligible

public void setEligible(boolean eligible)
Parameters:
eligible - the eligible to set

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2012 Jasig. All Rights Reserved.