Package com.documentum.fc.client.search
Class DfApplicationContext
java.lang.Object
com.documentum.fc.client.search.DfApplicationContext
Using this class, the client application can pass information along with the query.
These information will be used in two cases:
- if the backend is xPlore and if xQuery is generated. These information will be recorded by xPlore in the audit event logged with the query. Audit log can be accessed and queried using xPlore Administrator.
- if FS2 is used, these properties (except queryType), are set as FS2 Query optional property.
They can be retrieved by individual adapters by using the following method:
getQuery().getOptionalProperty(propertyName)
Application attributes are directly translated as optional property using the Map key as the property name. Application name is set with predefined property name 'APPLICATION_NAME'. Query type is not propagated to FS2.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturn a set of attribute name/value pairsReturn the application nameReturn the query typevoid
setApplicationAttributes
(Map<String, String> applicationAttributes) Set a map containing a set of attribute name/value pairs.void
setApplicationName
(String applicationName) Set the application namevoid
setQueryType
(String queryType) Set the query type
-
Constructor Details
-
DfApplicationContext
public DfApplicationContext()
-
-
Method Details
-
setApplicationName
Set the application name -
setQueryType
Set the query type -
setApplicationAttributes
Set a map containing a set of attribute name/value pairs. The attributes name must not contain a 'comma'. -
getApplicationName
Return the application name- Returns:
-
getQueryType
Return the query type- Returns:
-
getApplicationAttributes
Return a set of attribute name/value pairs- Returns:
-