|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.primus.ae.searchclient.ClientRequestImpl com.primus.ae.searchclient.ClientVicRequest
ViewDocumentRequest
instead.
public class ClientVicRequest
A client view in context (VIC) request fetches the document (or information about the document) associated
with a particular answer. Thus it is always necessary to submit a ClientQueryRequest
before submitting one of these. The easiest way to utilize this request type is to invoke
ClientVicRequest(com.primus.searchstudio.ResponseSummary)
with a ResponseSummary
obtained from the Result
of interest. In the most common usage scenario, the aforementioned
Result
corresponds to answer displayed to the user that they subsequently clicked on
because the want to see the answer in the context of the original document.
Result oneResult = results.getResult(i);
This client request class differs from the rest in that
it is not initialized with prepared documentSet constraints or parserOptions. Owing to their complexity
for this request type, we rely on the existing com.primus.searchstudio.ViewRequest class to assemble them.
Note that, as with other request types, user (security) roles are not passed in: they are obtained
later, during request construction, from the SearchSession.
Field Summary |
---|
Fields inherited from class com.primus.ae.searchclient.ClientRequestImpl |
---|
constraints, listPropertyAllowed, loggingEnabled, mLoggingThisRequest, mRequestIdentifier, mRequestTime, parsingOptions, requestAttributes |
Fields inherited from interface com.primus.ae.searchclient.ClientRequest |
---|
BROWSE, CATEGORIZE, INSPECT, QUERY, REQUEST_TAG_BROWSE, REQUEST_TAG_CATEGORIZE, REQUEST_TAG_QUERY, REQUEST_TAG_SIMILARDOCS, REQUEST_TAG_STRUCTQUERY, REQUEST_TAG_VIC, SIMILARDOCS, STRUCTQUERY, TAGS, VIC |
Fields inherited from interface atg.search.routing.command.SearchEngineRequest |
---|
CLASS_VERSION |
Constructor Summary | |
---|---|
ClientVicRequest()
Deprecated. |
|
ClientVicRequest(com.primus.searchstudio.ResponseSummary responseSummary)
Deprecated. |
|
ClientVicRequest(ViewItemConstants.ReturnType returnType,
java.lang.String docContextId,
java.lang.String userInput,
java.lang.String groupId,
java.lang.String requestURL,
com.primus.searchstudio.ResponseSummary responseSummary,
java.util.Map requestAttributes,
Language language,
java.lang.String viewDocProperty,
java.lang.String viewDocPropertyValue,
boolean loggingEnabled)
Deprecated. creates a new client vic request |
Method Summary | |
---|---|
java.lang.String |
getDocContextId()
Deprecated. Gets the document context ID |
java.lang.String |
getGroupId()
Deprecated. gets the id group of the group that provided the answer |
Language |
getLanguage()
Deprecated. Gets the target language |
int |
getRequestId()
Deprecated. |
java.lang.String |
getRequestURL()
Deprecated. Gets the request URL |
com.primus.searchstudio.ResponseSummary |
getResponseSummary()
Deprecated. Gets the response summary object. |
ViewItemConstants.ReturnType |
getReturnType()
Deprecated. Return type for vic request |
java.lang.String |
getUserInput()
Deprecated. Gets the user's original input (question) |
java.lang.String |
getViewDocProperty()
Deprecated. Gets the name of the view document property |
java.lang.String |
getViewDocPropertyValue()
Deprecated. Gets the value of the doc property |
void |
setDocContextId(java.lang.String docContextId)
Deprecated. Sets the doc context id |
void |
setGroupId(java.lang.String groupId)
Deprecated. Sets the id of the group that provided the answer |
void |
setLanguage(Language language)
Deprecated. Sets the target language |
void |
setRequestURL(java.lang.String requestURL)
Deprecated. Sets the request url of the original request |
void |
setResponseSummary(com.primus.searchstudio.ResponseSummary responseSummary)
Deprecated. Sets the response summary |
void |
setReturnType(ViewItemConstants.ReturnType returnType)
Deprecated. Sets vic request return type |
void |
setUserInput(java.lang.String userInput)
Deprecated. Sets the user's question |
void |
setViewDocProperty(java.lang.String viewDocProperty)
Deprecated. Sets the view document propert name |
void |
setViewDocPropertyValue(java.lang.String viewDocPropertyValue)
Deprecated. Sets the view doc property value |
java.lang.String |
toXML()
Deprecated. returns xml suitable for submission to a search engine. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ClientVicRequest()
public ClientVicRequest(com.primus.searchstudio.ResponseSummary responseSummary)
public ClientVicRequest(ViewItemConstants.ReturnType returnType, java.lang.String docContextId, java.lang.String userInput, java.lang.String groupId, java.lang.String requestURL, com.primus.searchstudio.ResponseSummary responseSummary, java.util.Map requestAttributes, Language language, java.lang.String viewDocProperty, java.lang.String viewDocPropertyValue, boolean loggingEnabled)
returnType
- A ViewItemConstants.ReturnTypedocContextId
- context info obtained from original response: Document identifier plus highligh
regions, in the form of hdoc:start.end,start.end,...userInput
- user input (the question) from original responsegroupId
- id of group that provided the answerrequestURL
- request url from original responseresponseSummary
- response summary--required for loggingrequestAttributes
- request attributes, usually from option set stockVICRequestOptionslanguage
- Request language, for example, Language.ENGLISH
viewDocProperty
- optional document property name, can be nullviewDocPropertyValue
- optional document property value, can be nullloggingEnabled
- true if DB logging should be performedViewItemConstants
Method Detail |
---|
public java.lang.String getGroupId()
public void setGroupId(java.lang.String groupId)
groupId
- group idpublic ViewItemConstants.ReturnType getReturnType()
public void setReturnType(ViewItemConstants.ReturnType returnType)
returnType
- One of ReturnType valuespublic Language getLanguage()
public void setLanguage(Language language)
language
- the language, e.g., Language.ENGLISH
public java.lang.String getDocContextId()
public void setDocContextId(java.lang.String docContextId)
docContextId
- context id from original responsepublic java.lang.String getUserInput()
public void setUserInput(java.lang.String userInput)
userInput
- the questionpublic java.lang.String getRequestURL()
public void setRequestURL(java.lang.String requestURL)
requestURL
- url from the original responsepublic java.lang.String getViewDocProperty()
public void setViewDocProperty(java.lang.String viewDocProperty)
viewDocProperty
- the name of the propertypublic java.lang.String getViewDocPropertyValue()
public void setViewDocPropertyValue(java.lang.String viewDocPropertyValue)
viewDocPropertyValue
- the property's valuepublic com.primus.searchstudio.ResponseSummary getResponseSummary()
public void setResponseSummary(com.primus.searchstudio.ResponseSummary responseSummary)
responseSummary
- the response summarypublic int getRequestId()
ClientRequest.VIC
public java.lang.String toXML() throws atg.search.routing.command.IncompleteCommandException
atg.search.routing.command.IncompleteCommandException
- if the command is incomplete
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |