|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.servlet.jsp.tagext.TagSupport
jp.terasoluna.fw.web.taglib.IfAuthorizedTag
public class IfAuthorizedTag
Implementation class of ifAuthorized
tag.
In case of request, body part of tag is output only when there is a access authority for the path
which is specified in the path
attribute.
When there is no access authority, it is ignored.
Access authority check is transferred to
AuthorizationController
.
In IfAuthorizedTag
, following attributes are supported.
Attribute name | Default value | Required | Execution time format | Overview |
path |
- | true |
true |
Target path .
|
blockId |
- | false |
true |
blockId to link with IfAuthorizedBlockTag
which is the parent of this tag.
|
There is no scripting variable set by this tag.
<t:ifAuthorized parh="/pathToSomewhere">
... // Display items only for specific user
</t:ifAuthorized>
IfAuthorizedBlockTag
,
AuthorizationController
,
Serialized FormField Summary | |
---|---|
private java.lang.String |
blockId
Block ID. |
private java.lang.String |
path
Path name. |
private static long |
serialVersionUID
Serial version ID |
Fields inherited from class javax.servlet.jsp.tagext.TagSupport |
---|
id, pageContext |
Fields inherited from interface javax.servlet.jsp.tagext.IterationTag |
---|
EVAL_BODY_AGAIN |
Fields inherited from interface javax.servlet.jsp.tagext.Tag |
---|
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE |
Constructor Summary | |
---|---|
IfAuthorizedTag()
|
Method Summary | |
---|---|
int |
doEndTag()
Method which is called at the time of terminating tag evaluation. |
int |
doStartTag()
Method which is called at the time of starting tag evaluation. Check is transferred to AccessConrol and body part of tag is output when there is access authority
for path .
When there is no access authority, body part is skipped. |
void |
release()
Process at the time of releasing the tag handler. |
void |
setBlockId(java.lang.String blockId)
Sets block ID. |
void |
setPath(java.lang.String path)
Sets path name. |
Methods inherited from class javax.servlet.jsp.tagext.TagSupport |
---|
doAfterBody, findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, setParent, setValue |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static final long serialVersionUID
private java.lang.String path
private java.lang.String blockId
Constructor Detail |
---|
public IfAuthorizedTag()
Method Detail |
---|
public void setPath(java.lang.String path)
path
- Path name.public void setBlockId(java.lang.String blockId)
blockId
- Block IDpublic int doStartTag() throws javax.servlet.jsp.JspException
AccessConrol
and body part of tag is output
when there is access authority for path
.
When there is no access authority, body part is skipped.
doStartTag
in interface javax.servlet.jsp.tagext.Tag
doStartTag
in class javax.servlet.jsp.tagext.TagSupport
javax.servlet.jsp.JspException
- JSP exceptionpublic int doEndTag() throws javax.servlet.jsp.JspException
doEndTag
in interface javax.servlet.jsp.tagext.Tag
doEndTag
in class javax.servlet.jsp.tagext.TagSupport
javax.servlet.jsp.JspException
- JSP exceptionpublic void release()
release
in interface javax.servlet.jsp.tagext.Tag
release
in class javax.servlet.jsp.tagext.TagSupport
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |