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_PROPERTY
PROGRESS_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, update
addRemoteListener, closeSecContext, createClientException, distributeEventToListeners, fireModelChangeEvent, getAppController, getArrayRange, getContext, getField, getField, getField, getFieldWithRestriction, getFieldWithRestriction, getFieldWithRestriction, getModel, getRemoteListenerHandle, getSecContext, isLight, register, releaseContext, releaseRemoteListener, removeRemoteListener, setField, setField, setModel, unreferenced
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addRemoteListener, getArrayRange, getModel, getRemoteListenerHandle, getSelectionDataFor, isLight, register, releaseRemoteListener, removeRemoteListener, setModel
protected transient PInfranetAppController mSecConn
protected FList mSearchData
public int stepSearchSize
public PIASearchPanelBean() throws RemoteException
RemoteException
public boolean isLoginRoot() throws RemoteException
isLoginRoot
in interface PIASearch
RemoteException
public void setSearchClass(String name) throws RemoteException
setSearchClass
in interface PIASearch
RemoteException
public String getSearchClass() throws RemoteException
getSearchClass
in interface PIASearch
RemoteException
public void setRemoteOnly(boolean remoteOnly) throws RemoteException
setRemoteOnly
in interface PIASearch
RemoteException
public boolean getRemoteOnly() throws RemoteException
getRemoteOnly
in interface PIASearch
RemoteException
public int getProgress() throws RemoteException
getProgress
in interface PIASearch
RemoteException
public String[] getHeader() throws RemoteException
getHeader
in interface PIASearch
RemoteException
public void setFilterBrandAccTypesFlag(boolean b) throws RemoteException
setFilterBrandAccTypesFlag
in interface PIASearch
RemoteException
public Poid getBrandPoid() throws RemoteException
getBrandPoid
in interface PIASearch
RemoteException
public void setFilterNonBrandHostAccsFlag(boolean b) throws RemoteException
setFilterNonBrandHostAccsFlag
in interface PIASearch
RemoteException
public void setSingleDBSearchEnabled(boolean flag) throws RemoteException
setSingleDBSearchEnabled
in interface PIASearch
RemoteException
public void setSingleDBSearchID(long id)
setSingleDBSearchID
in interface PIASearch
public void setSingleDBSearchID(PModelHandle acct) throws RemoteException
setSingleDBSearchID
in interface PIASearch
acct
- the account the contains the database to useRemoteException
public void setScopeEntryPoint(PScopeEntryPoint scope)
setScopeEntryPoint
in interface PIASearch
public void setScope(PCachedContext conn)
public boolean isBrandHost(PScopeEntryPoint scope) throws RemoteException
isBrandHost
in interface PIASearch
RemoteException
public boolean hasBrandHost(ArrayList scopes) throws RemoteException
hasBrandHost
in interface PIASearch
RemoteException
public PModelHandle[] startSearch(PModelHandle[] criteria) throws RemoteException
startSearch
in interface PIASearch
criteria
- the search argumentsRemoteException
- if anything goes wrongpublic PModelHandle[] startSearch(PModelHandle[] criteria, Vector assClasses) throws RemoteException
startSearch
in interface PIASearch
criteria
- the search argumentsassClasses
- the Portal storable class names associated with the
search argumentsRemoteException
- if anything goes wrongpublic PModelHandle[] getResultsBatch() throws RemoteException
getResultsBatch
in interface PIASearch
RemoteException
- if anything goes wrongpublic void endSearch() throws RemoteException
endSearch
in interface PIASearch
RemoteException
- if anything goes wrongpublic void setDesiredResults(String[] results) throws RemoteException
setDesiredResults
in interface PIASearch
RemoteException
public String[] getDesiredResults() throws RemoteException
getDesiredResults
in interface PIASearch
RemoteException
public void closeConnection() throws RemoteException
closeConnection
in interface PIASearch
RemoteException
protected 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)
PControllerImpl
distributeEventToListeners
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 PControllerImpl
listener
- the listener to call a method forevt
- the event object to distributeprotected boolean mungeStr(FList fl, Field fld) throws EBufException
fl
- fld
- EBufException
protected PIASearchPanelBean.ValueType fieldValueType(FList fl, Field fld) throws EBufException
fl
- fld
- EBufException
protected boolean isCanonField(FList fl, Field fld) throws EBufException
fl
- fld
- EBufException
protected static void setSecondaryConnection(PIASearchPanelBean bean) throws RemoteException
bean
- the bean on which to set the secondary connectionRemoteException
protected static void unsetSecondaryConnection(PIASearchPanelBean bean)
bean
- the bean from which to unset the secondary connectionCopyright © 2003, 2023, Oracle and/or its affiliates.