|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.filenet.wcm.apps.server.util.FormSearchUtil
Field Summary | |
static int |
CURRENT_VERSION
|
static int |
LOGICAL_AND
|
static int |
LOGICAL_OR
|
static java.lang.String[] |
operatorList
|
static int |
RELEASED
|
Constructor Summary | |
FormSearchUtil()
|
Method Summary | |
void |
addPropertyCriteria(java.lang.String propertyName,
int propertyType,
int operator,
java.lang.String propertyValue,
int logicalOperator)
Adds new search criteria to the criteria list. |
void |
addSelectProperty(java.lang.String propertyName)
Adds additional property to the select property list. |
java.util.List |
getCriteria()
Returns the search criteria list |
int |
getCriteriaCount()
Returns the total criteria items. |
java.lang.String |
getSQL(int objectType)
Builds and returns the sql string based on the selected select properties and selected search criteria. |
void |
setDocumentVersion(int searchVersionStatus)
Sets to limit the query to either a released version or the current version. |
void |
setFilterClass(java.lang.String searchFilterClass)
Sets to limit the query to document specified by the parameter class. |
void |
setMaxResults(int searchMaxResults)
Set the maximum number of returned items. |
void |
setQueryObjectStore(java.lang.String searchObjectStore)
Set the selected object store. |
void |
setSelectClause(java.lang.String searchSelectClause)
Sets the select clause to overide the default select clause. |
void |
setSelectProperties(java.lang.String[] properties)
Sets the select properties. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int LOGICAL_OR
public static final int LOGICAL_AND
public static final int CURRENT_VERSION
public static final int RELEASED
public static final java.lang.String[] operatorList
Constructor Detail |
public FormSearchUtil()
Method Detail |
public void setSelectProperties(java.lang.String[] properties)
The default properties for a document query are:
VersionSeries, OIID, Id, MimeType, ObjectType, IsReserved, IsCurrentVersion, Creator, DateCreated, LastModifier, DateLastModified, DocumentTitle, MajorVersionNumber, MinorVersionNumber and VersionStatus
properties
- String[] The list of selected properties.public void setQueryObjectStore(java.lang.String searchObjectStore)
searchObjectStore
- String The object store name.public void setMaxResults(int searchMaxResults)
searchMaxResults
- inn The maximum number of returned item.public void setFilterClass(java.lang.String searchFilterClass)
searchFilterClass
- String The filter class name.public void setDocumentVersion(int searchVersionStatus)
searchVersionStatus
- int The version types defined by this class (RELEASE = 1 and CURRENT = 2)public void setSelectClause(java.lang.String searchSelectClause)
searchSelectClause
- String The new select clause.public void addSelectProperty(java.lang.String propertyName)
propertyName
- String The selected property name.public void addPropertyCriteria(java.lang.String propertyName, int propertyType, int operator, java.lang.String propertyValue, int logicalOperator)
propertyName
- String The selected property name.propertyType
- int The selected property type.operator
- int The property query operator.propertyValue
- String The selected property value.logicalOperator
- String The logical operator to be used between the selected properties.public java.lang.String getSQL(int objectType)
objectType
- int The object type.
public int getCriteriaCount()
public java.util.List getCriteria()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |