public class RequireTag
extends javax.servlet.jsp.tagext.TagSupport
<openmrs:require privilege="Manage Concept Classes" otherwise="/login.htm" redirect="/admin/concepts/conceptClass.form" />This will demand that the user have the "Manage Concept Classes" privilege. If they don't, kick the user back to the "/login.htm" page. Then, after they log in on that page, send the user to "/admin/concepts/conceptClass.form".
Modifier and Type | Field and Description |
---|---|
static long |
serialVersionUID |
Constructor and Description |
---|
RequireTag() |
Modifier and Type | Method and Description |
---|---|
int |
doEndTag() |
int |
doStartTag()
This is where all the magic happens.
|
java.lang.String |
getAllPrivileges() |
java.lang.String |
getAnyPrivilege() |
java.lang.String |
getOtherwise() |
java.lang.String |
getPrivilege() |
java.lang.String |
getRedirect() |
void |
setAllPrivileges(java.lang.String allPrivileges) |
void |
setAnyPrivilege(java.lang.String anyPrivilege) |
void |
setOtherwise(java.lang.String otherwise) |
void |
setPrivilege(java.lang.String privilege) |
void |
setRedirect(java.lang.String redirect) |
public static final long serialVersionUID
public int doStartTag()
doStartTag
in interface javax.servlet.jsp.tagext.Tag
doStartTag
in class javax.servlet.jsp.tagext.TagSupport
TagSupport.doStartTag()
public int doEndTag()
doEndTag
in interface javax.servlet.jsp.tagext.Tag
doEndTag
in class javax.servlet.jsp.tagext.TagSupport
TagSupport.doEndTag()
public java.lang.String getPrivilege()
public void setPrivilege(java.lang.String privilege)
public java.lang.String getAllPrivileges()
public void setAllPrivileges(java.lang.String allPrivileges)
public java.lang.String getAnyPrivilege()
public void setAnyPrivilege(java.lang.String anyPrivilege)
public java.lang.String getOtherwise()
public void setOtherwise(java.lang.String otherwise)
public java.lang.String getRedirect()
public void setRedirect(java.lang.String redirect)
Copyright © 2018 OpenMRS Inc.. All Rights Reserved.