|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Interface that allows querying of documents in the Document Directory. The query can be narrowed down
to a specific document folder as well as with a set of filters.
An instance of a document query is created with a call to
IDocumentManager.createQuery(). Once the desired query parameters
are specified, the query can be executed with the execute() method.
| Method Summary | |
IObjectQuery |
execute()
Executes the query and returns query results. |
QueryFilter[] |
getFilters()
Gets an array of query filters. |
int |
getFolderID()
Gets the folder ID to query. |
int |
getMaxRows()
Gets the maximum of query results to return. |
ObjectProperty |
getSortProperty()
Gets the property that the query results will be sorted on. |
int |
getStartRow()
Gets an index of the first query result to return. |
boolean |
isShowUnapproved()
Gets whether unapproved documents will be returned in query results. |
void |
setFilters(QueryFilter[] filters)
Sets an array of filters to narrow down the query. |
void |
setFolderID(int folderID)
Sets the folder ID to query. |
void |
setMaxRows(int maxRows)
Sets the maximum number of query results to return. |
void |
setShowUnapproved(boolean showUnapproved)
Sets whether unapproved documents should be returned in query results. |
void |
setSortProperty(ObjectProperty sortProperty)
Sets the property that the query results will be sorted on. |
void |
setStartRow(int startRow)
Sets an index of the first query result to return. |
| Method Detail |
public int getFolderID()
public void setFolderID(int folderID)
folderID - the folder ID to querypublic int getStartRow()
public void setStartRow(int startRow)
startRow - an index of the first query result to returnpublic int getMaxRows()
public void setMaxRows(int maxRows)
maxRows - the maximum number of query results to returnpublic boolean isShowUnapproved()
true if unapproved documents will be returned
in query results; false otherwisepublic void setShowUnapproved(boolean showUnapproved)
showUnapproved - true if unapproved documents should be returned
in query results; false otherwisepublic ObjectProperty getSortProperty()
public void setSortProperty(ObjectProperty sortProperty)
sortProperty - the query results sort propertypublic QueryFilter[] getFilters()
public void setFilters(QueryFilter[] filters)
filters - an array of query filters
java.lang.IllegalArgumentException - if the ObjectProperty in any of the filters is not one of the above properties.
public IObjectQuery execute()
throws PortalException,
java.rmi.RemoteException
PortalException - if the operation resulted in an error on the portal
java.rmi.RemoteException - if there is a communication problem during the execution of the remote method call
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Copyright ©2007 BEA Systems, Inc. All Rights Reserved.