|
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.ContentQueryTag
The tag handler of the personalization jsp extension tag 'contentQuery'. The contentQuery tag allows arbitrary personalized content to be selected based on a content query.
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 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 |
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 |
id,
pageContext |
Constructor Summary | |
ContentQueryTag()
|
Method Summary | |
int |
doStartTag()
Processes the start tag. |
protected void |
dumpAttributes()
|
protected ContentQueryAdviceRequest |
getBasicRequest(Advisor anAdvisor)
Returns a ContentQueryAdviceRequest 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()
Gets the name of the content home bean. |
protected Content[] |
getDocuments()
Get the array of content documents. |
java.lang.String |
getMax()
Retrieves the max number of content items that can be returned. |
java.lang.String |
getQuery()
Gets the content query string that is appended as an 'and' phrase to the content query in the contentSelector 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()
Reinitializes the instance data in this object. |
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 |
setMax(long l)
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 |
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,
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 |
Field Detail |
protected long max
protected java.lang.String sortBy
protected java.lang.String query
protected java.lang.String home
protected java.lang.String ADVICE_REQUEST_TYPE
Constructor Detail |
public ContentQueryTag()
Method Detail |
public void release()
public int doStartTag() throws javax.servlet.jsp.JspException
protected Content[] getDocuments() throws javax.servlet.jsp.JspTagException
protected ContentQueryAdviceRequest getBasicRequest(Advisor anAdvisor) throws javax.servlet.jsp.JspTagException
anAdvisor
- A Advisor instance.protected void dumpAttributes()
public java.lang.String getMax()
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 l)
l
- long representing a number.public void setSortby(java.lang.String anOrderbyClause)
setSortBy(String)
anOrderbyClause
- Designates how to sort the results.public void setSortBy(java.lang.String anOrderbyClause)
anOrderbyClause
- Designates how 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.public java.lang.String getQuery()
public void setContenthome(java.lang.String aHome)
setContentHome(String)
aHome
- The EJB Home name for the content manager bean.public void setContentHome(java.lang.String aHome)
aHome
- The EJB Home name for the content manager bean.public java.lang.String getContenthome()
getContentHome()
public java.lang.String getContentHome()
|
BEA Systems, Inc. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |