|
BEA Systems, Inc. | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--javax.servlet.jsp.tagext.TagSupport
|
+--com.beasys.commerce.axiom.p13n.jsp.tags.P13nTagSupport
|
+--com.beasys.commerce.p13n.tags.P13nContentTagSupport
|
+--com.beasys.commerce.p13n.tags.ContentSelectorTag
The tag handler of the personalization jsp extension tag 'contentSelector'. The contentSelector tag allows arbitrary personalized content to be selected based on user profile.
| Field Summary | |
protected java.lang.String |
ADVICE_REQUEST_TYPE
The fully qualified name of the type of AdviceRequest this tag uses. |
protected java.lang.String |
home
The name of the content home bean. |
protected java.lang.String |
id
|
protected long |
max
Limits the number of content items returned. |
protected java.lang.String |
query
A content query string that can be appended as an 'and' phrase to the content query in the contentSelector rule. |
protected java.lang.String |
ruleSet
The uri to the rulesheet containing the selector rule. |
protected java.lang.String |
selector
The name of the selector rule in the ruleSet. |
protected java.lang.String |
sortBy
A list of document attributes to sort the content by. |
| Fields inherited from class com.beasys.commerce.p13n.tags.P13nContentTagSupport |
cacheId, cacheScope, cacheTimeout, useCache |
| Fields inherited from class javax.servlet.jsp.tagext.TagSupport |
pageContext |
| Fields inherited from interface javax.servlet.jsp.tagext.Tag |
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE |
| Constructor Summary | |
ContentSelectorTag()
|
|
| Method Summary | |
int |
doStartTag()
Processes the start tag. |
protected ContentSelectorAdviceRequest |
getBasicRequest(Advisor anAdvisor)
Returns a ContentSelectorAdviceRequest object with only the basic fields filled out (User, HttpSession, HttpRequest, Now). |
java.lang.String |
getContenthome()
Deprecated. As of WLPS 3.1, replaced by getContentHome() |
java.lang.String |
getContentHome()
The name of the content home bean. |
protected Content[] |
getDocuments()
Get the array of content documents. |
java.lang.String |
getId()
Gets the id to assign the results to. |
java.lang.String |
getMax()
The the max number of content items returned. |
java.lang.String |
getQuery()
Get the content query string that can be appended as an 'and' phrase to the content query in the contentSelector rule. |
java.lang.String |
getRule()
Get name of the selector rule in the ruleSet. |
java.lang.String |
getRuleset()
Deprecated. As of WLPS 3.1, replaced by getRuleSet() |
java.lang.String |
getRuleSet()
Get uri to the rule set containing the selector rule. |
java.lang.String |
getSortby()
Deprecated. As of WLPS 3.1, replaced by getSortBy() |
java.lang.String |
getSortBy()
Gets the list of document attributes to sort the content by. |
void |
release()
Reset any variables. |
void |
setContenthome(java.lang.String aHome)
Deprecated. As of WLPS 3.1, replaced by setContentHome(String) |
void |
setContentHome(java.lang.String aHome)
Sets the name of the content home bean. |
void |
setId(java.lang.String anId)
Sets the id to assign the results to. |
void |
setMax(long max)
Sets the max number of content items returned. |
void |
setMax(java.lang.String aNumber)
Sets the max number of content items returned. |
void |
setQuery(java.lang.String aQuery)
Sets the content query string that can be appended as an 'and' phrase to the content query in the contentSelector rule. |
void |
setRule(java.lang.String aSelector)
Set name of the selector rule in the ruleSet. |
void |
setRuleset(java.lang.String aRuleSetURI)
Deprecated. As of WLPS 3.1, replaced by setRuleSet(String) |
void |
setRuleSet(java.lang.String aRuleSetURI)
Set uri to the rule set containing the selector rule. |
void |
setSortby(java.lang.String anOrderbyClause)
Deprecated. As of WLPS 3.1, replaced by setSortBy(String) |
void |
setSortBy(java.lang.String anOrderbyClause)
Sets the list of document attributes to sort the content by. |
| Methods inherited from class com.beasys.commerce.p13n.tags.P13nContentTagSupport |
checkContentCache, getCacheId, getCacheScope, getCacheTimeout, getUseCache, setCacheId, setCacheScope, setCacheTimeout, setCacheTimeout, setInContentCache, setUseCache, setUseCache |
| Methods inherited from class com.beasys.commerce.axiom.p13n.jsp.tags.P13nTagSupport |
getAdvisor, isJspBase, isP13NJspBase |
| Methods inherited from class javax.servlet.jsp.tagext.TagSupport |
doEndTag, findAncestorWithClass, getParent, getValue, getValues, removeValue, setPageContext, setParent, setValue |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected java.lang.String ruleSet
protected java.lang.String selector
protected long max
protected java.lang.String sortBy
protected java.lang.String query
protected java.lang.String home
protected java.lang.String id
protected java.lang.String ADVICE_REQUEST_TYPE
| Constructor Detail |
public ContentSelectorTag()
| Method Detail |
public void release()
P13nContentTagSupportrelease in class P13nContentTagSupport
public int doStartTag()
throws javax.servlet.jsp.JspException
doStartTag in class javax.servlet.jsp.tagext.TagSupportjavax.servlet.jsp.JspTagException - If the id variable is missing.
protected Content[] getDocuments()
throws javax.servlet.jsp.JspTagException
protected ContentSelectorAdviceRequest getBasicRequest(Advisor anAdvisor)
throws javax.servlet.jsp.JspTagException
anAdvisor - A Advisor instance.javax.servlet.jsp.JspTagException - If there is a problem creating the request.public void setRuleset(java.lang.String aRuleSetURI)
setRuleSet(String)
aRuleSetURI - The URI identifying the rule set to use.public void setRuleSet(java.lang.String aRuleSetURI)
aRuleSetURI - The URI identifying the rule set to use.public java.lang.String getRuleset()
getRuleSet()
public java.lang.String getRuleSet()
public void setRule(java.lang.String aSelector)
aSelector - The name of the selector rule.public java.lang.String getRule()
public java.lang.String getMax()
Strin - The max number of content items that can be returned.public void setMax(java.lang.String aNumber)
aNumber - String representing a number. If it isn't a
number, max is left at the default.public void setMax(long max)
max - A long that represents the max number of content
items that can be returned.public void setSortby(java.lang.String anOrderbyClause)
setSortBy(String)
anOrderByClause - The order by clause to use to sort the results.public void setSortBy(java.lang.String anOrderbyClause)
anOrderByClause - The order by clause to use to sort the results.public java.lang.String getSortby()
getSortBy()
public java.lang.String getSortBy()
public void setQuery(java.lang.String aQuery)
aQuery - The query string to append.public java.lang.String getQuery()
public void setContenthome(java.lang.String aHome)
setContentHome(String)
aHome - The home name of the content manager bean.public void setContentHome(java.lang.String aHome)
aHome - The home name of the content manager bean.public java.lang.String getContenthome()
getContentHome()
public java.lang.String getContentHome()
public void setId(java.lang.String anId)
setId in class javax.servlet.jsp.tagext.TagSupportanId - The id for the results.public java.lang.String getId()
getId in class javax.servlet.jsp.tagext.TagSupport
|
BEA Systems, Inc. | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||