ResultTag
Corresponds to <profile:getProfile>
.
The <profile:getProfile>
tag retrieves the
profile corresponding to the provided profile key. The tag has no enclosed body.
Along with the profile key, an explicit successor key can be specified.
This successor will then be used, along with
the retrieved profile, in subsequent invocations of the
<ugm:getProperty>
tag to ensure
property inheritance from the successor. If no successor
is retrieved, standard ConfigurableEntity successor
search patterns will apply to retrieved properties.
As of 8.1 SP3, this tag does not create a profile -- it will return null if none exists.
Use
Tag Attribute |
Required |
Type |
Description |
profileKey |
yes |
String |
A unique identifier that can be used to retrieve the profile which is sought. Example: " |
successorKey |
no |
String |
A unique identifier that can be used to retrieve the profile successor. Example: " |
groupOnly |
no |
String |
Specifies to retrieve a Group rather than a User
for the default profile type. No successor will be retrieved
when this value is true. |
profileId |
no |
String |
A variable name from which the retrieved profile is available for the duration of the JSP's page scope. |
successorId |
no |
String |
A variable name from which the retrieved successor is available for the duration of the JSP's page scope. |
scope |
no |
String |
The HTTP scope of the retreived profile. Pass
" Defaults to session. |
result |
no |
String |
A variable name from which the result of the operation is available. Possible Values:
Informational/Partial Success:
Error encountered: |
Object
TagSupport
ProfileManagementTag
ResultTag
GetProfileTag
IterationTag
, Serializable
, Tag
Field Summary |
Fields from com.bea.p13n.usermgmt.profile.taglib. |
|
Fields from com.bea.p13n.usermgmt.profile.taglib. |
|
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 |
|
public |
|
public |
|
public |
|
public void |
|
public void |
|
public void |
|
public void |
|
public void | |
public void |
|
public void |
|
Methods from com.bea.p13n.usermgmt.profile.taglib. |
|
Methods from com.bea.p13n.usermgmt.profile.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 GetProfileTag()
Method Detail |
public int doStartTag()Check to see if the profile has already been retrieved; if not, retrieve it and set it in the request or session so that it can be used by the getProperty and setProperty tags.
throwsJspException
TagSupport.doStartTag()
JspException
public String
getGroupOnly()
Get the flag indicating to retrieve a group's profile
public String
getProfileId()
Get the id to assign the retrieved profile to
public String
getProfileKey()
Get the key of the profile to retrieve
public String
getScope()
Get the scope to use (request or session)
public String
getSuccessorId()
Get the id to assign the retrieved successor to
public String
getSuccessorKey()
Get the key of the successor to retrieve
public void release()Reset the tag's attributes
ResultTag.release()
public void setGroupOnly(String
s)
Set the flag indicating to retrieve a group's profile
public void setProfileId(String
s)
Set the id to assign the retrieved profile to
public void setProfileKey(String
s)
Set the key of the profile to retrieve
public void setScope(String
s)
Set the scope to use (request or session)
public void setSuccessorId(String
s)
Set the id to assign the retrieved successor to
public void setSuccessorKey(String
s)
Set the key of the successor to retrieve