Vitro Utilities taglib
1.0
Library of JSP utility tags for Vitro
confirmLoginStatus
Confirm that the user is logged in as required
Check to see that the user is logged in (optionally at a certain minimum level).
If not, then redirect them to the login page, with the current request stored as
a post-login destination.
If "level" is specified, then the user must be logged in at least at that level
in order to avoid being redirected. "level" may be a String like "DBA" or "EDITOR",
or it may be an integer like 50 or 4.
If "bean" is specified, it is taken as the name of a request attribute where the
LoginStatusBean will be stored.
edu.cornell.mannlib.vitro.webapp.web.jsptags.ConfirmLoginStatus
empty
level
false
true
allowSelfEditing
false
true
bean
false
true
requiresAuthorizationFor
Confirm that the user is authorized for the actions that this page requires.
Confirm that the user is authorized to perform all of the RequestedActions that
this page requires. A check is done for each such action, to see whether the
current policy will authorize that action for the current user. If any of the
actions is not authorized, the user will be redirected to the appropriate page.
If the user is not authorized because he is not logged in, he will be directed
to the login page, with the current request stored as a post-login destination.
If the user is logged in but without sufficient authorization, he will be
directed to the home page, which will display an "insufficient authorization"
message.
The requested actions are specified as a comma delimited list of class names.
These must be RequestedAction classes, each with a no-argument public
constructor.
edu.cornell.mannlib.vitro.webapp.web.jsptags.RequiresAuthorizationFor
empty
classNames
true
true