org.jasig.schedassist.web.security
Class DelegateCalendarAccountUserDetailsImpl
java.lang.Object
org.jasig.schedassist.web.security.DelegateCalendarAccountUserDetailsImpl
- All Implemented Interfaces:
- Serializable, CalendarAccountUserDetails, org.springframework.security.core.userdetails.UserDetails
public class DelegateCalendarAccountUserDetailsImpl
- extends Object
- implements CalendarAccountUserDetails
CalendarAccountUserDetails implementation for IDelegateCalendarAccounts.
- Version:
- $Id: DelegateCalendarAccountUserDetailsImpl.java 2306 2010-07-28 17:20:12Z npblair $
- Author:
- Nicholas Blair, nblair@doit.wisc.edu
- See Also:
- Serialized Form
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DelegateCalendarAccountUserDetailsImpl
public DelegateCalendarAccountUserDetailsImpl(IDelegateCalendarAccount delegateCalendarAccount)
- Parameters:
delegateCalendarAccount -
DelegateCalendarAccountUserDetailsImpl
public DelegateCalendarAccountUserDetailsImpl(IDelegateCalendarAccount delegateCalendarAccount,
IScheduleOwner delegateScheduleOwner)
- Parameters:
delegateCalendarAccount - delegateScheduleOwner -
getAuthorities
public Collection<org.springframework.security.core.GrantedAuthority> getAuthorities()
- Specified by:
getAuthorities in interface org.springframework.security.core.userdetails.UserDetails
getPassword
public String getPassword()
- Specified by:
getPassword in interface org.springframework.security.core.userdetails.UserDetails
getUsername
public String getUsername()
- Specified by:
getUsername in interface org.springframework.security.core.userdetails.UserDetails
isAccountNonExpired
public boolean isAccountNonExpired()
- Specified by:
isAccountNonExpired in interface org.springframework.security.core.userdetails.UserDetails
isAccountNonLocked
public boolean isAccountNonLocked()
- Specified by:
isAccountNonLocked in interface org.springframework.security.core.userdetails.UserDetails
isCredentialsNonExpired
public boolean isCredentialsNonExpired()
- Specified by:
isCredentialsNonExpired in interface org.springframework.security.core.userdetails.UserDetails
isEnabled
public boolean isEnabled()
- Specified by:
isEnabled in interface org.springframework.security.core.userdetails.UserDetails
getActiveDisplayName
public String getActiveDisplayName()
- Specified by:
getActiveDisplayName in interface CalendarAccountUserDetails
- Returns:
- a friendly display name for this account
getCalendarAccount
public ICalendarAccount getCalendarAccount()
- Specified by:
getCalendarAccount in interface CalendarAccountUserDetails
- Returns:
- the
ICalendarAccount for this account
getDelegateCalendarAccount
public IDelegateCalendarAccount getDelegateCalendarAccount()
- Returns:
- the
IDelegateCalendarAccount
getScheduleOwner
public IScheduleOwner getScheduleOwner()
throws NotRegisteredException
- Specified by:
getScheduleOwner in interface CalendarAccountUserDetails
- Returns:
- the
IScheduleOwner for this account (if registered)
- Throws:
NotRegisteredException - if the is account is not yet registered
isDelegate
public final boolean isDelegate()
- Specified by:
isDelegate in interface CalendarAccountUserDetails
- Returns:
- true if this account is a delegate
updateScheduleOwner
public void updateScheduleOwner(IScheduleOwner owner)
- Description copied from interface:
CalendarAccountUserDetails
- Update the
IScheduleOwner instance stored internally.
Future calls to CalendarAccountUserDetails.getScheduleOwner() should retrieve this new instance.
- Specified by:
updateScheduleOwner in interface CalendarAccountUserDetails
Copyright © 2011 Jasig. All Rights Reserved.