public class SpecialSearchScript
extends com.accela.aa.emse.dom.service.BaseAAScript
implements com.accela.aa.emse.dom.service.SpecialSearchScriptService
Accela Automation File: SpecialSearchScript.java Accela, Inc. Copyright (C): 2008-2013 Description: Notes: $Id: SpecialSearchScript.java 242973 2013-01-21 07:41:46Z bruce.deng $ Revision History <Date>, <Who>, <What> 2008-12-15 steven.yan Initial.
Constructor and Description |
---|
SpecialSearchScript()
Instantiates a new special search script.
|
SpecialSearchScript(java.lang.String serviceProviderCode,
java.lang.String auditID)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
ScriptResult |
createBatchSearchData(com.accela.aa.aamain.people.GenericSearchModel[] searchModels)
Batch create the search datas according to the param
searchModels |
ScriptResult |
createSearchData(com.accela.aa.aamain.people.GenericSearchModel searchModel)
Create the search data according to the param
searchModel |
ScriptResult |
getPureArabicText(java.lang.String arabicTradeName)
Convert arabic text to pure text and the pure text will be used to store and special search.
|
ScriptResult |
getPureEnglishText(java.lang.String englishTradeName)
Convert english text to pure text and the pure text will be used to store and special search.
|
ScriptResult |
getSearchDataList(com.accela.aa.aamain.people.GenericSearchModel searchModel)
Get the search data list according to search model
searchModel |
ScriptResult |
isTradeNameExist(java.lang.String englishTradeName,
java.lang.String arabicTradeName)
Judge whether the trade name already exists.
|
ScriptResult |
newSearchDataModel()
Return an instance of
GenericSearchModel |
ScriptResult |
recreateBatchSearchData(com.accela.aa.aamain.cap.CapIDModel capID,
com.accela.aa.aamain.people.GenericSearchModel[] searchModels)
Rereate the search datas according to the param
searchModels |
ScriptResult |
removeSearchDataByCapID(com.accela.aa.aamain.cap.CapIDModel capID)
Remove the search datas with the same
capID |
ScriptResult |
updateSearchDataStatusByCapID(com.accela.aa.aamain.cap.CapIDModel capID,
java.lang.String status)
Update the search datas' status to
status with the same capID |
public SpecialSearchScript(java.lang.String serviceProviderCode, java.lang.String auditID) throws com.accela.aa.exception.AAException
serviceProviderCode
- the service provider codeauditID
- the audit idcom.accela.aa.exception.AAException
- the AA exceptionpublic SpecialSearchScript() throws com.accela.aa.exception.AAException
com.accela.aa.exception.AAException
- the AA exceptionpublic ScriptResult createBatchSearchData(com.accela.aa.aamain.people.GenericSearchModel[] searchModels) throws com.accela.aa.exception.AAException, java.rmi.RemoteException
com.accela.aa.emse.dom.service.SpecialSearchScriptService
searchModels
createBatchSearchData
in interface com.accela.aa.emse.dom.service.SpecialSearchScriptService
searchModels
- the search models to createcom.accela.aa.exception.AAException
java.rmi.RemoteException
public ScriptResult recreateBatchSearchData(com.accela.aa.aamain.cap.CapIDModel capID, com.accela.aa.aamain.people.GenericSearchModel[] searchModels) throws com.accela.aa.exception.AAException, java.rmi.RemoteException
com.accela.aa.emse.dom.service.SpecialSearchScriptService
searchModels
It will remove the search datas according to capID
and then batch create search datas according to searchModels
recreateBatchSearchData
in interface com.accela.aa.emse.dom.service.SpecialSearchScriptService
capID
- the ID of cap to recreatesearchModels
- the search models to createcom.accela.aa.exception.AAException
java.rmi.RemoteException
public ScriptResult createSearchData(com.accela.aa.aamain.people.GenericSearchModel searchModel) throws com.accela.aa.exception.AAException, java.rmi.RemoteException
com.accela.aa.emse.dom.service.SpecialSearchScriptService
searchModel
createSearchData
in interface com.accela.aa.emse.dom.service.SpecialSearchScriptService
searchModel
- the search model to createcom.accela.aa.exception.AAException
java.rmi.RemoteException
public ScriptResult getPureArabicText(java.lang.String arabicTradeName) throws com.accela.aa.exception.AAException, java.rmi.RemoteException
com.accela.aa.emse.dom.service.SpecialSearchScriptService
getPureArabicText
in interface com.accela.aa.emse.dom.service.SpecialSearchScriptService
arabicTradeName
- the original arabic trade namecom.accela.aa.exception.AAException
java.rmi.RemoteException
public ScriptResult getPureEnglishText(java.lang.String englishTradeName) throws com.accela.aa.exception.AAException, java.rmi.RemoteException
com.accela.aa.emse.dom.service.SpecialSearchScriptService
getPureEnglishText
in interface com.accela.aa.emse.dom.service.SpecialSearchScriptService
englishTradeName
- the original english trade namecom.accela.aa.exception.AAException
java.rmi.RemoteException
public ScriptResult getSearchDataList(com.accela.aa.aamain.people.GenericSearchModel searchModel) throws com.accela.aa.exception.AAException, java.rmi.RemoteException
com.accela.aa.emse.dom.service.SpecialSearchScriptService
searchModel
getSearchDataList
in interface com.accela.aa.emse.dom.service.SpecialSearchScriptService
searchModel
- the search model criteriacom.accela.aa.exception.AAException
java.rmi.RemoteException
public ScriptResult removeSearchDataByCapID(com.accela.aa.aamain.cap.CapIDModel capID) throws com.accela.aa.exception.AAException, java.rmi.RemoteException
com.accela.aa.emse.dom.service.SpecialSearchScriptService
capID
removeSearchDataByCapID
in interface com.accela.aa.emse.dom.service.SpecialSearchScriptService
capID
- the ID of cap to removecom.accela.aa.exception.AAException
java.rmi.RemoteException
public ScriptResult updateSearchDataStatusByCapID(com.accela.aa.aamain.cap.CapIDModel capID, java.lang.String status) throws com.accela.aa.exception.AAException, java.rmi.RemoteException
com.accela.aa.emse.dom.service.SpecialSearchScriptService
status
with the same capID
updateSearchDataStatusByCapID
in interface com.accela.aa.emse.dom.service.SpecialSearchScriptService
capID
- the cap idstatus
- the audit status to set, maybe A or Icom.accela.aa.exception.AAException
java.rmi.RemoteException
public ScriptResult isTradeNameExist(java.lang.String englishTradeName, java.lang.String arabicTradeName)
com.accela.aa.emse.dom.service.SpecialSearchScriptService
isTradeNameExist
in interface com.accela.aa.emse.dom.service.SpecialSearchScriptService
englishTradeName
- the original English trade namearabicTradeName
- the original Arabic trade namepublic ScriptResult newSearchDataModel()
com.accela.aa.emse.dom.service.SpecialSearchScriptService
GenericSearchModel
newSearchDataModel
in interface com.accela.aa.emse.dom.service.SpecialSearchScriptService