public class PIASearchPanelBean extends PIAComponentCollectionBean implements PIASearch, Serializable
| Modifier and Type | Class and Description |
|---|---|
protected static class |
PIASearchPanelBean.ValueType |
| Modifier and Type | Field and Description |
|---|---|
protected FList |
mSearchData |
protected PInfranetAppController |
mSecConn
An instance level secondary connection used to perform step search.
|
int |
stepSearchSize |
mFList, mRemoteListeners, UPDATE_CLIENT, UPDATE_MODEL_CHANGE, UPDATE_NEW_MODEL, UPDATE_PROPERTYPROGRESS_END, PROGRESS_ERROR, PROGRESS_INTERRUPT, PROGRESS_START| Constructor and Description |
|---|
PIASearchPanelBean()
Creates the search panel controller
|
| Modifier and Type | Method and Description |
|---|---|
void |
closeConnection()
Close the secondary connection(s) created for the purpose of searching.
|
void |
endSearch()
This method ends the step search.
|
protected PIASearchPanelBean.ValueType |
fieldValueType(FList fl,
Field fld)
This method finds out whether the CSR entered an exact string or a string with wild card characters.
|
protected void |
fireResultsEvent(PModelHandle[] out) |
Poid |
getBrandPoid() |
String[] |
getDesiredResults() |
String[] |
getHeader() |
int |
getProgress() |
boolean |
getRemoteOnly() |
PModelHandle[] |
getResultsBatch()
This method gets the next result set from the step search.
|
String |
getSearchClass() |
protected void |
handleDistributeToListener(Object listener,
EventObject evt)
Called by
distributeEventToListeners to pass an event
to specific listener methods. |
boolean |
hasBrandHost(ArrayList scopes)
Checks whether the brandhost is present
|
boolean |
isBrandHost(PScopeEntryPoint scope)
Checks if the given scope is the BrandHost
|
protected boolean |
isCanonField(FList fl,
Field fld)
Checks if the given field is a CANON field
|
boolean |
isLoginRoot() |
protected boolean |
mungeStr(FList fl,
Field fld) |
void |
setDesiredResults(String[] results) |
void |
setFilterBrandAccTypesFlag(boolean b) |
void |
setFilterNonBrandHostAccsFlag(boolean b) |
void |
setRemoteOnly(boolean remoteOnly) |
void |
setScope(PCachedContext conn)
Assigns the scope on the secondery connection.
|
void |
setScopeEntryPoint(PScopeEntryPoint scope)
Assigns the active brand
|
void |
setSearchClass(String name) |
protected static void |
setSecondaryConnection(PIASearchPanelBean bean)
Take a connection from the connection pool and set it as the secondary
connection on the specified bean.
|
void |
setSingleDBSearchEnabled(boolean flag)
Allows the system to only search in a single, known data base.
|
void |
setSingleDBSearchID(long id) |
void |
setSingleDBSearchID(PModelHandle acct)
Sets the scope for the single db search to be the database associated
with the given account.
|
protected void |
setupSearch(String sClass,
String[] res,
PModelHandle[] argV,
Vector assClasses)
Generic search setup
If you override this class, make sure mSecConn has been initialized.
|
PModelHandle[] |
startSearch(PModelHandle[] criteria)
This method is meant for the backward compatibility.
|
PModelHandle[] |
startSearch(PModelHandle[] criteria,
Vector assClasses)
This method initializes the connection from the connection pool and
starts the search.
|
protected static void |
unsetSecondaryConnection(PIASearchPanelBean bean)
Take the secondary connection on the specified bean and add it back to
the connection pool.
|
addChild, getCollectedData, getSelectionDataFor, removeChild, updateaddRemoteListener, closeSecContext, createClientException, distributeEventToListeners, fireModelChangeEvent, getAppController, getArrayRange, getContext, getField, getField, getField, getFieldWithRestriction, getFieldWithRestriction, getFieldWithRestriction, getModel, getRemoteListenerHandle, getSecContext, isLight, register, releaseContext, releaseRemoteListener, removeRemoteListener, setField, setField, setModel, unreferencedclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddRemoteListener, getArrayRange, getModel, getRemoteListenerHandle, getSelectionDataFor, isLight, register, releaseRemoteListener, removeRemoteListener, setModelprotected transient PInfranetAppController mSecConn
protected FList mSearchData
public int stepSearchSize
public PIASearchPanelBean()
throws RemoteException
RemoteExceptionpublic boolean isLoginRoot()
throws RemoteException
isLoginRoot in interface PIASearchRemoteExceptionpublic void setSearchClass(String name) throws RemoteException
setSearchClass in interface PIASearchRemoteExceptionpublic String getSearchClass() throws RemoteException
getSearchClass in interface PIASearchRemoteExceptionpublic void setRemoteOnly(boolean remoteOnly)
throws RemoteException
setRemoteOnly in interface PIASearchRemoteExceptionpublic boolean getRemoteOnly()
throws RemoteException
getRemoteOnly in interface PIASearchRemoteExceptionpublic int getProgress()
throws RemoteException
getProgress in interface PIASearchRemoteExceptionpublic String[] getHeader() throws RemoteException
getHeader in interface PIASearchRemoteExceptionpublic void setFilterBrandAccTypesFlag(boolean b)
throws RemoteException
setFilterBrandAccTypesFlag in interface PIASearchRemoteExceptionpublic Poid getBrandPoid() throws RemoteException
getBrandPoid in interface PIASearchRemoteExceptionpublic void setFilterNonBrandHostAccsFlag(boolean b)
throws RemoteException
setFilterNonBrandHostAccsFlag in interface PIASearchRemoteExceptionpublic void setSingleDBSearchEnabled(boolean flag)
throws RemoteException
setSingleDBSearchEnabled in interface PIASearchRemoteExceptionpublic void setSingleDBSearchID(long id)
setSingleDBSearchID in interface PIASearchpublic void setSingleDBSearchID(PModelHandle acct) throws RemoteException
setSingleDBSearchID in interface PIASearchacct - the account the contains the database to useRemoteExceptionpublic void setScopeEntryPoint(PScopeEntryPoint scope)
setScopeEntryPoint in interface PIASearchpublic void setScope(PCachedContext conn)
public boolean isBrandHost(PScopeEntryPoint scope) throws RemoteException
isBrandHost in interface PIASearchRemoteExceptionpublic boolean hasBrandHost(ArrayList scopes) throws RemoteException
hasBrandHost in interface PIASearchRemoteExceptionpublic PModelHandle[] startSearch(PModelHandle[] criteria) throws RemoteException
startSearch in interface PIASearchcriteria - the search argumentsRemoteException - if anything goes wrongpublic PModelHandle[] startSearch(PModelHandle[] criteria, Vector assClasses) throws RemoteException
startSearch in interface PIASearchcriteria - the search argumentsassClasses - the Portal storable class names associated with the
search argumentsRemoteException - if anything goes wrongpublic PModelHandle[] getResultsBatch() throws RemoteException
getResultsBatch in interface PIASearchRemoteException - if anything goes wrongpublic void endSearch()
throws RemoteException
endSearch in interface PIASearchRemoteException - if anything goes wrongpublic void setDesiredResults(String[] results) throws RemoteException
setDesiredResults in interface PIASearchRemoteExceptionpublic String[] getDesiredResults() throws RemoteException
getDesiredResults in interface PIASearchRemoteExceptionpublic void closeConnection()
throws RemoteException
closeConnection in interface PIASearchRemoteExceptionprotected void setupSearch(String sClass, String[] res, PModelHandle[] argV, Vector assClasses) throws RemoteException
sClass - the storable class name which is being soughtres - the fields to be returned in the resultsargV - the search argumentsassClasses - the Portal storable class names associated with the
search argumentsRemoteException - if anything goes wrongprotected void fireResultsEvent(PModelHandle[] out)
protected void handleDistributeToListener(Object listener, EventObject evt)
PControllerImpldistributeEventToListeners to pass an event
to specific listener methods. When overriding this method, be sure to
pass calls for unknown listener classes to the parent controller
to handle other types of event objects.handleDistributeToListener in class PControllerImpllistener - the listener to call a method forevt - the event object to distributeprotected boolean mungeStr(FList fl, Field fld) throws EBufException
fl - fld - EBufExceptionprotected PIASearchPanelBean.ValueType fieldValueType(FList fl, Field fld) throws EBufException
fl - fld - EBufExceptionprotected boolean isCanonField(FList fl, Field fld) throws EBufException
fl - fld - EBufExceptionprotected static void setSecondaryConnection(PIASearchPanelBean bean) throws RemoteException
bean - the bean on which to set the secondary connectionRemoteExceptionprotected static void unsetSecondaryConnection(PIASearchPanelBean bean)
bean - the bean from which to unset the secondary connectionCopyright © 2003, 2023, Oracle and/or its affiliates.