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.
|
String |
getAllPrivileges() |
String |
getAnyPrivilege() |
String |
getOtherwise() |
String |
getPrivilege() |
String |
getRedirect() |
void |
setAllPrivileges(String allPrivileges) |
void |
setAnyPrivilege(String anyPrivilege) |
void |
setOtherwise(String otherwise) |
void |
setPrivilege(String privilege) |
void |
setRedirect(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 String getPrivilege()
public void setPrivilege(String privilege)
public String getAllPrivileges()
public void setAllPrivileges(String allPrivileges)
public String getAnyPrivilege()
public void setAnyPrivilege(String anyPrivilege)
public String getOtherwise()
public void setOtherwise(String otherwise)
public String getRedirect()
public void setRedirect(String redirect)
Copyright © 2015 OpenMRS Inc.. All rights reserved.