public interface RemoteSearchHelper
extends java.rmi.Remote
| Modifier and Type | Method and Description |
|---|---|
int |
getId()
Gets the id of NodeSet object.
|
java.util.Vector<PathInfo> |
getPage(int rowsPerPage,
int pageIndex)
Gets the sub-nodes by page.
|
int |
getTotalNode()
Gets the total number of sub-nodes.
|
boolean |
isSearching()
Gets whether the SearchHelper object is searching.
|
RemoteSearchHelper |
search(java.lang.String path,
boolean isSearch,
java.lang.String keyword,
boolean caseSensitive,
boolean matchWhole)
Search/Get the sub-nodes contained in the specified path.
|
RemoteSearchHelper |
setFilterCatalog(boolean isFilterCatalog)
Sets whether filter catalog
|
RemoteSearchHelper |
setLocale(java.util.Locale locale)
Sets the locale which used in front-ground UI.
|
RemoteSearchHelper |
setMyFoldersUser(java.lang.String userid)
When perform
search(String, boolean, String, boolean, boolean) method, if parameter path is empty,
we may return my folder (My Components, My Reports) nodes of other user instead of user set by setUserId(String). |
RemoteSearchHelper |
setUserId(java.lang.String userId)
Sets the user represent the user who operates in front-ground UI.
|
RemoteSearchHelper |
sort(java.lang.String sortColumn,
boolean isAsc,
boolean isFolderFirst)
Sort the sub-nodes according to the specified column and sort direction.
|
int getId() throws java.rmi.RemoteException
java.rmi.RemoteException - if communication-related error occurs during RMI call execution.int getTotalNode()
throws java.rmi.RemoteException
java.rmi.RemoteException - if communication-related error occurs during RMI call execution.RemoteSearchHelper sort(java.lang.String sortColumn, boolean isAsc, boolean isFolderFirst) throws java.rmi.RemoteException
sortColumn - The sort column name,
APIConst.COLUMN_NAME_REPORTS_NAME, APIConst.COLUMN_NAME_REPORTS_TYPE,
APIConst.COLUMN_NAME_REPORTS_DESCRIPTION, APIConst.COLUMN_NAME_REPORTS_STATUS,
APIConst.COLUMN_NAME_REPORTS_LAST_MODIFIEDisAsc - The sort direction, true: ascending, false: descendingisFolderFirst - Indicates whether the folder was first when sort.java.rmi.RemoteException - if communication-related error occurs during RMI call execution.java.util.Vector<PathInfo> getPage(int rowsPerPage, int pageIndex) throws java.rmi.RemoteException
rowsPerPage - The rows number per page.pageIndex - The page index.java.rmi.RemoteException - if communication-related error occurs during RMI call execution.RemoteSearchHelper setUserId(java.lang.String userId) throws java.rmi.RemoteException
userId - java.rmi.RemoteException - if communication-related error occurs during RMI call execution.RemoteSearchHelper setLocale(java.util.Locale locale) throws java.rmi.RemoteException
locale - java.rmi.RemoteException - if communication-related error occurs during RMI call execution.RemoteSearchHelper setFilterCatalog(boolean isFilterCatalog) throws java.rmi.RemoteException
isFilterCatalog - java.rmi.RemoteException - if communication-related error occurs during RMI call execution.RemoteSearchHelper search(java.lang.String path, boolean isSearch, java.lang.String keyword, boolean caseSensitive, boolean matchWhole) throws java.rmi.RemoteException
path - The specified path to search/get.isSearch - Indicates whether is search operation.keyword - The search keyword.caseSensitive - Indicates whether is case sensitive.matchWhole - Indicates whether match whole keyword.RemoteSearchHelper object itselfjava.rmi.RemoteExceptionRemoteSearchHelper setMyFoldersUser(java.lang.String userid) throws java.rmi.RemoteException
search(String, boolean, String, boolean, boolean) method, if parameter path is empty,
we may return my folder (My Components, My Reports) nodes of other user instead of user set by setUserId(String).
This method is used to set such user, which is different with user set by setUserId(String).
Only when value of server.security.expose_my_folders in path of method search(String, boolean, String, boolean, boolean) is empty, SearchHelper will load
sub-nodes under my folders of this user.userid - the user id, who is different with SearchHelper operator.RemoteSearchHelper object itselfjava.rmi.RemoteException - if communication-related error occurs during RMI call execution.boolean isSearching()
throws java.rmi.RemoteException
java.rmi.RemoteException - if communication-related error occurs during RMI call execution.