|
© 2002 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.bea.p13n.servlets.jsp.TagSupport | +--com.bea.p13n.servlets.jsp.taglib.ContentTagSupport | +--com.bea.p13n.servlets.jsp.taglib.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 |
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.bea.p13n.servlets.jsp.taglib.ContentTagSupport |
cacheId,
cacheScope,
cacheTimeout,
contextParams,
useCache |
Fields inherited from class javax.servlet.jsp.tagext.TagSupport |
id,
pageContext |
Constructor Summary | |
ContentQueryTag()
|
Method Summary | |
int |
doStartTag()
Processes the start tag. |
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. |
protected AdviceRequest |
getRequest()
Returns a ContentQuery AdviceRequest object after populating the following fields The current HTTP Request The current HTTP Session The current User A new TimeInstant A new Time A new Date A CONTENT_QUERY_STRING A CONTENT_QUERY_MAX_ITEMS A CONTENT_QUERY_SORT_BY A CONTENT_MANAGER_HOME |
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)
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)
Sets the list of document attributes to sort the content by. |
Methods inherited from class com.bea.p13n.servlets.jsp.taglib.ContentTagSupport |
checkContentCache,
getCacheId,
getCacheScope,
getCacheTimeout,
getContentManager,
getContextParams,
getUseCache,
setCacheId,
setCacheScope,
setCacheTimeout,
setCacheTimeout,
setContextParams,
setContextParams,
setInContentCache,
setUseCache,
setUseCache |
Methods inherited from class com.bea.p13n.servlets.jsp.TagSupport |
createAdviceRequest,
createAdvisor |
Methods inherited from class javax.servlet.jsp.tagext.TagSupport |
doAfterBody,
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
Constructor Detail |
public ContentQueryTag()
Method Detail |
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)
anOrderbyClause
- Designates how to sort the results.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)
aHome
- The EJB Home name for the content manager bean.public java.lang.String getContentHome()
protected Content[] getDocuments() throws JspException
protected AdviceRequest getRequest() throws JspException
public int doStartTag() throws JspException
public void release()
|
© 2002 BEA Systems, Inc. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |