|
Copyright © 2000, 2009, Oracle and/or its affiliates. All rights reserved. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.bea.p13n.advisor.AbstractAdvislet com.bea.p13n.content.advislets.ContentQueryAdvisletImpl
public final class ContentQueryAdvisletImpl
This class is the implementation class for a ContentQuery Advislet. This Advislet can issue queries against the content management system and retrieve content.
Required inputs to the Advislet are:
HTTP_SESSION - the Session object.
HTTP_REQUEST - The Request object.
USER - the User object.
CONTENT_QUERY_MAX_ITEMS - the maximum number of items to return (Long).
CONTENT_QUERY_SORT_BY - how the items should be sorted (String).
CONTENT_QUERY_CONTEXT_PARAMS (optional)- any additional parameters to put into the
content search (Map).
QUERY_VERSIONED_CONTENT - boolean to determine if query should search versioned content repository
In addition either of these properties should be specified. Failure to specify either
of these properties will result in an empty content query being returned.
CONTENT_QUERY_NODE - the content query (as XML) to execute (ContentQueryAdvice).
CONTENT_QUERY_STRING - the content query (as a String) to execute (String).
Field Summary |
---|
Fields inherited from class com.bea.p13n.advisor.AbstractAdvislet |
---|
advisletMetadata, advisor, parametersMap |
Fields inherited from interface com.bea.p13n.advisor.AdviceConstants |
---|
RESULTS |
Constructor Summary | |
---|---|
ContentQueryAdvisletImpl(Advisor advisor,
Metadata metadata)
|
Method Summary | |
---|---|
Advice |
getAdvice(AdviceRequest adviceRequest)
This method makes recommendations based the AdviceRequest passed in. |
Object[] |
getRequiredAttributes()
Returns an array of required attributes for the advislet. |
Methods inherited from class com.bea.p13n.advisor.AbstractAdvislet |
---|
getAdvisor, getMetadata, initialize, toString, validateAdviceRequest |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ContentQueryAdvisletImpl(Advisor advisor, Metadata metadata)
Method Detail |
---|
public Advice getAdvice(AdviceRequest adviceRequest) throws IllegalArgumentException, AdvisorException
getAdvice
in interface Advislet
getAdvice
in class AbstractAdvislet
adviceRequest
- The AdviceRequest used to make a recommendation.
IllegalArgumentException
- thrown if the adviceRequest parameter
is null or if it is an unsupported type.
AdvisorException
- thrown on an error when processing the request.public Object[] getRequiredAttributes()
Advislet
validateAdviceRequest
method to perform additional processing
above and beyond attribute type checking.
getRequiredAttributes
in interface Advislet
getRequiredAttributes
in class AbstractAdvislet
|
Copyright © 2000, 2009, Oracle and/or its affiliates. All rights reserved. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |