org.kuali.student.r2.common.infc
Interface Context

All Superinterfaces:
HasAttributes
All Known Implementing Classes:
ContextInfo

public interface Context
extends HasAttributes


Method Summary
 String getAuthenticatedPrincipalId()
          The Principal Id of the currently authenticated user.
 Date getCurrentDate()
          The current date in this context.
 Locale getLocale()
          The locale information requested by the user.
 String getPrincipalId()
          The Principal Id of the principal on whose behalf the authenticated principal is acting.
 String getTimeZone()
          The time zone requested by the user.
 
Methods inherited from interface org.kuali.student.r2.common.infc.HasAttributes
getAttributes
 

Method Detail

getAuthenticatedPrincipalId

String getAuthenticatedPrincipalId()
The Principal Id of the currently authenticated user.


getPrincipalId

String getPrincipalId()
The Principal Id of the principal on whose behalf the authenticated principal is acting. If the authenticated principal is not acting on behalf of a different user, then this Id should be the same as the Authenticated Principal Id. (1) User is authorized to only act on behalf of itself. Principal Id must equal the Authenticated Principal Id and the authorization is performed on that Id. If the Principal Id differs from the Authenticated Principal Id, then the user is not authorized to perform the requested operation. (2) User is authorized to act on behalf of another user. The Principal Id differs from the Authentication Principal Id. Authorization is checked to see if Authenticated Principal Id can perform the operation on behalf of Principal Id. Then, authorization is checked to see if Principal Id can perform the operation.


getCurrentDate

Date getCurrentDate()
The current date in this context. This date is used to instruct the provider to peform operations as if this date were the current date.


getLocale

Locale getLocale()
The locale information requested by the user.


getTimeZone

String getTimeZone()
The time zone requested by the user.



Copyright © 2004-2012 The Kuali Foundation. All Rights Reserved.