public class WebAuthorizationServiceImpl extends Object implements WebAuthorizationService
| Constructor and Description |
|---|
WebAuthorizationServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
TaskAuthorizationService |
getTaskAuthorizationService() |
protected WebAuthorizer |
getWebAuthorizer(String classname)
Get a Web Authorizer based upon the name of the Struts Action class.
|
Set<String> |
getWebAuthorizerNames() |
List<WebAuthorizer> |
getWebAuthorizers() |
boolean |
isAuthorized(String userId,
Class actionClass,
String methodName,
org.apache.struts.action.ActionForm form,
javax.servlet.http.HttpServletRequest request)
To determine if the user can execute the given Struts Action method, we will use
the Web Authorizers corresponding to the Struts Action classes.
|
void |
setTaskAuthorizationService(TaskAuthorizationService taskAuthorizationService) |
void |
setWebAuthorizerNames(Set<String> webAuthorizerNames) |
void |
setWebAuthorizers(List<WebAuthorizer> webAuthorizers) |
public boolean isAuthorized(String userId, Class actionClass, String methodName, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request)
isAuthorized in interface WebAuthorizationServiceactionClass - the name of the Struts Action classmethodName - the name of the Struts Action Method to be invoked (corresponds to the task)form - the formrequest - the HTTP requestWebAuthorizationService.isAuthorized(java.lang.String, java.lang.Class, java.lang.String,
org.apache.struts.action.ActionForm, javax.servlet.http.HttpServletRequest)protected WebAuthorizer getWebAuthorizer(String classname)
classname - the Struts Action classnamepublic List<WebAuthorizer> getWebAuthorizers()
public void setWebAuthorizers(List<WebAuthorizer> webAuthorizers)
public TaskAuthorizationService getTaskAuthorizationService()
public void setTaskAuthorizationService(TaskAuthorizationService taskAuthorizationService)
Copyright © 2013 The Kuali Foundation. All Rights Reserved.