public class RequiresAuthorization
extends javax.servlet.jsp.tagext.TagSupport
| Modifier and Type | Field and Description |
|---|---|
protected Action |
action |
protected ApplicationManager |
appManager |
protected Locale |
loc |
protected javax.servlet.http.HttpServletRequest |
req |
protected javax.servlet.http.HttpServletResponse |
res |
protected javax.servlet.http.HttpSession |
session |
| Constructor and Description |
|---|
RequiresAuthorization() |
| Modifier and Type | Method and Description |
|---|---|
int |
doEndTag()
Verify if the parameters of the groups or permissions exist or are not denied for the user
|
int |
doStartTag() |
void |
setBoth(boolean both)
If you want both options to be valid set true for this value
If you want any options to be valid set false for this value
|
void |
setCache(boolean cache) |
void |
setGroup(String group) |
void |
setGroups(String groups) |
void |
setPermission(String permission) |
void |
setPermissions(String permissions) |
protected javax.servlet.http.HttpSession session
protected javax.servlet.http.HttpServletRequest req
protected javax.servlet.http.HttpServletResponse res
protected Action action
protected Locale loc
protected ApplicationManager appManager
public void setCache(boolean cache)
public void setBoth(boolean both)
both - public void setGroups(String groups)
public void setGroup(String group)
public void setPermission(String permission)
public void setPermissions(String permissions)
public int doStartTag()
throws javax.servlet.jsp.JspException
doStartTag in interface javax.servlet.jsp.tagext.TagdoStartTag in class javax.servlet.jsp.tagext.TagSupportjavax.servlet.jsp.JspExceptionpublic int doEndTag()
throws javax.servlet.jsp.JspException
doEndTag in interface javax.servlet.jsp.tagext.TagdoEndTag in class javax.servlet.jsp.tagext.TagSupportjavax.servlet.jsp.JspExceptionCopyright © 2015. All Rights Reserved.