|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.servlet.jsp.tagext.TagSupport com.pow2.acl.taglib.ACLTag
Base tag for ACL tags.
Field Summary | |
protected static ACLDAO |
acldao
ACL Data Access Object |
protected static org.apache.log4j.Category |
cat
Log4j category; |
protected String |
group
group name |
protected String |
permission
permission name |
protected String |
role
role name |
protected boolean |
userAuthenticated
indicate if the user is authenticated |
protected boolean |
value
|
Fields inherited from class javax.servlet.jsp.tagext.TagSupport |
id, pageContext |
Fields inherited from interface javax.servlet.jsp.tagext.Tag |
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE |
Constructor Summary | |
ACLTag()
Default constructor |
Method Summary | |
protected boolean |
booleanValue(boolean result)
If value is false, return
the negated value of result . |
int |
doEndTag()
Process the end tag. |
protected com.pow2.user.User |
getUser()
Retrieve the user object from the session context. |
boolean |
isValue()
Gets the value attribute of the ACLTag object |
void |
setGroup(String group)
Sets the group attribute of the ACLTag object |
void |
setPermission(String permission)
Sets the permission attribute of the ACLTag object |
void |
setRole(String role)
Sets the role attribute of the ACLTag object |
void |
setValue(boolean value)
Sets the value attribute of the ACLTag object |
Methods inherited from class javax.servlet.jsp.tagext.TagSupport |
doStartTag, findAncestorWithClass, getId, getParent, getValue, getValues, release, 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 |
protected static ACLDAO acldao
protected static org.apache.log4j.Category cat
protected String group
protected String permission
protected String role
protected boolean userAuthenticated
protected boolean value
Constructor Detail |
public ACLTag()
Method Detail |
public int doEndTag() throws JspTagException
JspTagException
- Description of Exceptionprotected com.pow2.user.User getUser() throws JspTagException
JspTagException
- if the user object cannot be retrieved
from the request objectpublic void setGroup(String group)
group
- The new group valuepublic void setPermission(String permission)
permission
- The new permission valuepublic void setRole(String role)
role
- The new role valuepublic void setValue(boolean value)
value
- The new value valuepublic boolean isValue()
protected boolean booleanValue(boolean result)
value
is false, return
the negated value of result
.
value
is false, return
the negated value of result
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |