|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jasig.schedassist.web.security.CalendarAccountUserDetailsImpl
public class CalendarAccountUserDetailsImpl
CalendarAccountUserDetails implementation for standard people ICalendarAccounts.
| Method Summary | |
|---|---|
String |
getActiveDisplayName()
|
Collection<org.springframework.security.core.GrantedAuthority> |
getAuthorities()
Returns an array of GrantedAuthoritys based on which fields are set:
if the "unregistered" ICalendarAccount is set and ICalendarAccount.isEligible(), adds SecurityConstants.REGISTER.
if the IScheduleVisitor field is set and is eligible, adds SecurityConstants.VISITOR.
if the IScheduleOwner field is set and is eligible, adds SecurityConstants.OWNER.
|
ICalendarAccount |
getCalendarAccount()
|
String |
getPassword()
|
IScheduleOwner |
getScheduleOwner()
|
IScheduleVisitor |
getScheduleVisitor()
|
String |
getUsername()
|
boolean |
isAccountNonExpired()
|
boolean |
isAccountNonLocked()
|
boolean |
isCredentialsNonExpired()
|
boolean |
isDelegate()
|
boolean |
isEnabled()
|
boolean |
isScheduleOwnerSet()
|
boolean |
isScheduleVisitorSet()
|
String |
toString()
|
void |
updateScheduleOwner(IScheduleOwner scheduleOwner)
Update the IScheduleOwner instance stored internally. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public Collection<org.springframework.security.core.GrantedAuthority> getAuthorities()
GrantedAuthoritys based on which fields are set:
ICalendarAccount is set and ICalendarAccount.isEligible(), adds SecurityConstants.REGISTER.IScheduleVisitor field is set and is eligible, adds SecurityConstants.VISITOR.IScheduleOwner field is set and is eligible, adds SecurityConstants.OWNER.
getAuthorities in interface org.springframework.security.core.userdetails.UserDetailsorg.springframework.security.userdetails.UserDetails#getAuthorities()public String getPassword()
getPassword in interface org.springframework.security.core.userdetails.UserDetailspublic String getUsername()
getUsername in interface org.springframework.security.core.userdetails.UserDetailspublic boolean isAccountNonExpired()
isAccountNonExpired in interface org.springframework.security.core.userdetails.UserDetailspublic boolean isAccountNonLocked()
isAccountNonLocked in interface org.springframework.security.core.userdetails.UserDetailspublic boolean isCredentialsNonExpired()
isCredentialsNonExpired in interface org.springframework.security.core.userdetails.UserDetailspublic boolean isEnabled()
isEnabled in interface org.springframework.security.core.userdetails.UserDetailspublic ICalendarAccount getCalendarAccount()
getCalendarAccount in interface CalendarAccountUserDetailsICalendarAccount for this accountpublic IScheduleVisitor getScheduleVisitor()
public IScheduleOwner getScheduleOwner()
throws NotRegisteredException
getScheduleOwner in interface CalendarAccountUserDetailsIScheduleOwner for this account (if registered)
NotRegisteredException - if the is account is not yet registeredpublic final boolean isDelegate()
isDelegate in interface CalendarAccountUserDetailspublic void updateScheduleOwner(IScheduleOwner scheduleOwner)
CalendarAccountUserDetailsIScheduleOwner instance stored internally.
Future calls to CalendarAccountUserDetails.getScheduleOwner() should retrieve this new instance.
updateScheduleOwner in interface CalendarAccountUserDetailspublic boolean isScheduleOwnerSet()
public boolean isScheduleVisitorSet()
public String getActiveDisplayName()
getActiveDisplayName in interface CalendarAccountUserDetailspublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||