UserManagementTag
Corresponds to <ugm:getGroupNamesForUser>
.
The <ugm:getGroupNamesForUser>
tag retrieves
a String array that contains the group names corresponding to groups
to which the provided user immediately belongs. The tag has no
enclosed body.
Tag Attribute |
Required |
Type |
Description |
atnProvider |
no |
String |
The name of the authentication provider containing the user. The default provider will be used if not specified. Example: " |
username |
yes |
String |
The name of the user whose matching groups are sought. Example: " |
id |
yes |
String |
A variable name to which the resultant group names are assigned. Example: "myGroups" |
Object
TagSupport
UserManagementTag
GetGroupNamesForUserTag
IterationTag
, Serializable
, Tag
, UserManagementTagConstants
Field Summary |
Fields from javax.servlet.jsp.tagext. |
id, pageContext |
Fields from interface javax.servlet.jsp.tagext. |
EVAL_BODY_AGAIN |
Fields from interface javax.servlet.jsp.tagext. |
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE |
Constructor Summary |
Method Summary |
public int |
|
public |
|
public |
|
public void |
|
public void |
|
public void |
|
Methods from com.bea.p13n.usermgmt.taglib. |
|
Methods from javax.servlet.jsp.tagext. |
doAfterBody, doEndTag, findAncestorWithClass, getId, getParent, getValue, getValues, release, removeValue, setId, setPageContext, setParent, setValue |
Methods from class java.lang. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods from interface javax.servlet.jsp.tagext. |
doAfterBody |
Methods from interface javax.servlet.jsp.tagext. |
doEndTag, doStartTag, getParent, release, setPageContext, setParent |
Constructor Detail |
public GetGroupNamesForUserTag()
Method Detail |
public int doStartTag()Go through the UserManager session bean to retrieve the list of groups that the given user belongs to.
throwsJspException
TagSupport.doStartTag()
JspException
public String
getAtnProvider()
Get the name of the authentication provider
public String
getUsername()
Get the username to query
public void release()Reset the tag attributes
UserManagementTag.release()
public void setAtnProvider(String
atnProvider)
Set the name of the authentication provider
public void setUsername(String
username)
Set the username to query