|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.servlet.jsp.tagext.TagSupport
javax.servlet.jsp.tagext.BodyTagSupport
jp.terasoluna.fw.web.taglib.IfAuthorizedBlockTag
public class IfAuthorizedBlockTag
Implementation class of ifAuthorizedBlock
tag.
This tag controls the result of IfAuthorizedTag
for each blockId
.
It is linked with IfAuthorizedTag
through blockId
and
checks whether to display the contents in the body.
Converting this tag into the nested condition enables to easily perform the access control based on each permission.
At the time of converting this tag into nested condition, blockId
attribute of parent tag and parentBlockId
tag of child tag are linked to check whether to display the contents in body.
In IfAuthorizedBlockTag
, following attributes are supported.
Attribute name | Default value | Required | Execution time format | Overview |
blockId |
- | true |
true |
Target blockId .
|
parentBlockId |
- | false |
true |
blockId to link with the IfAuthorizedBlockTag
which is the parent of this tag.
|
There is no scripting variable set by this tag.
<t:ifAthorizedBlock blockId="ABC" >
is displayed only when
IfAuthorizedBlockTag
which is linked with blockId
in the body.
<t:ifAthorizedBlock blockId="EFG" parentBlockId="ABC" >
is displayed only when the IfAuthorizedTag
which is linked with blockId
in the body is displayed.
<t:ifAthorized path="/sample1/test.do blockId="EFG" >
It is output when there is a access authority to the specified path.
</t:ifAthorized>
</t:ifAthorizedBlock>
</t:ifAthorizedBlock>
IfAuthorizedTag
,
Serialized FormField Summary | |
---|---|
private java.lang.String |
blockId
Block ID. |
private static org.apache.commons.logging.Log |
log
Log class |
private java.lang.String |
parentBlockId
Parent block ID. |
private static long |
serialVersionUID
Serial version ID |
Fields inherited from class javax.servlet.jsp.tagext.BodyTagSupport |
---|
bodyContent |
Fields inherited from class javax.servlet.jsp.tagext.TagSupport |
---|
id, pageContext |
Fields inherited from interface javax.servlet.jsp.tagext.BodyTag |
---|
EVAL_BODY_BUFFERED, EVAL_BODY_TAG |
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 | |
---|---|
IfAuthorizedBlockTag()
|
Method Summary | |
---|---|
int |
doAfterBody()
Method which is called at the time of ending tag body. |
int |
doEndTag()
Method which is called at the time of ending the tag evaluation. |
int |
doStartTag()
Method which is called at the time of starting tag evaluation. |
void |
release()
Process at the time of releasing the tag handler. |
void |
setBlockId(java.lang.String blockId)
Sets block ID. |
void |
setParentBlockId(java.lang.String parentBlockId)
Sets parent block ID. |
Methods inherited from class javax.servlet.jsp.tagext.BodyTagSupport |
---|
doInitBody, getBodyContent, getPreviousOut, setBodyContent |
Methods inherited from class javax.servlet.jsp.tagext.TagSupport |
---|
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 |
Methods inherited from interface javax.servlet.jsp.tagext.Tag |
---|
getParent, setPageContext, setParent |
Field Detail |
---|
private static final long serialVersionUID
private static org.apache.commons.logging.Log log
private java.lang.String blockId
private java.lang.String parentBlockId
Constructor Detail |
---|
public IfAuthorizedBlockTag()
Method Detail |
---|
public void setBlockId(java.lang.String blockId)
blockId
- Block IDpublic void setParentBlockId(java.lang.String parentBlockId)
parentBlockId
- Parent block IDpublic int doStartTag() throws javax.servlet.jsp.JspException
doStartTag
in interface javax.servlet.jsp.tagext.Tag
doStartTag
in class javax.servlet.jsp.tagext.BodyTagSupport
javax.servlet.jsp.JspException
- JSP exceptionpublic int doAfterBody() throws javax.servlet.jsp.JspException
doAfterBody
in interface javax.servlet.jsp.tagext.IterationTag
doAfterBody
in class javax.servlet.jsp.tagext.BodyTagSupport
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.BodyTagSupport
javax.servlet.jsp.JspException
- JSP exceptionpublic void release()
release
in interface javax.servlet.jsp.tagext.Tag
release
in class javax.servlet.jsp.tagext.BodyTagSupport
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |