public class LicenseScript
extends com.accela.aa.emse.dom.service.BaseAAScript
implements com.accela.aa.emse.dom.service.LicenseScriptService
Accela Automation File: LicenseScript.java Accela, Inc. Copyright (C): 2004-2014 Description: Provides the "aa.LicenseScript" object through which script writers can operate on to perform the "License" object related functions. Notes: $Id: LicenseScript.java 270462 2014-04-28 10:05:58Z ..\rain.wang $ Revision History: 01/12/04 Edwin lin Initial version. 11/01/2006 Michael Mao cache service object. 12/26/2006 Tony Wu update method getRefLicenseProfBySeqNbr to get the attributes for the LicenseScriptModel. 01/31/2007 Chandler Huang Update the getRefLicensesProfByLicNbr(...) and getRefLicensesProfByName(...) for getting attributes for LicenseProfession
| Constructor and Description |
|---|
LicenseScript()
Constructor for LicenseScript.
|
LicenseScript(java.lang.String serviceProviderCode,
java.lang.String auditID,
com.accela.aa.emse.dom.service.CachedService cachedService)
Constructor for LicenseScript.
|
| Modifier and Type | Method and Description |
|---|---|
ScriptResult |
associateContactWithPublicUser(java.lang.String publicUserSeqNbr,
java.lang.String contactSeqNbr)
Associate the contact with the specific public user .
|
ScriptResult |
associateLpWithCap(com.accela.aa.aamain.cap.CapIDModel capId,
LicenseScriptModel license)
Associate the license with the specific cap.
|
ScriptResult |
associateLpWithPublicUser(com.accela.v360.publicuser.PublicUserModel publicUser,
LicenseScriptModel license)
Associate the licesne with the specific public user, and the notice mail will be sent to the PublicUser and the Agency User.
|
ScriptResult |
checkTradeNamesGroupByGroup(CapScriptModel cap,
java.lang.String tradeName1Key1,
java.lang.String tradeName2Key1,
java.lang.String tradeName1Key2,
java.lang.String tradeName2Key2,
java.lang.String tradeName1Key3,
java.lang.String tradeName2Key3)
Check trade names group by group.
|
ScriptResult |
createApprovalTradeNameLicense(CapScriptModel capScriptModel,
com.accela.v360.publicuser.PublicUserModel publicUser,
java.lang.String licenseType,
java.lang.String englishTradeName,
java.lang.String arabicTradeName,
java.lang.String legalFormKey,
java.lang.String financeNbrKey)
Create an Approval TradeName License.
|
ScriptResult |
createApprovalTradeNameLicense(CapScriptModel capScriptModel,
com.accela.v360.publicuser.PublicUserModel publicUser,
java.lang.String licenseType,
java.lang.String tradeName1Key1,
java.lang.String tradeName1Key2,
java.lang.String tradeName1Key3,
java.lang.String tradeName2Key1,
java.lang.String tradeName2Key2,
java.lang.String tradeName2Key3,
java.lang.String legalFormKey,
java.lang.String financeNbrKey)
Create an Approval TradeName License, and write it to DB.
|
ScriptResult |
createAssociatedLicenseProfessional(CapScriptModel capScriptModel,
java.lang.String licenseType,
java.lang.String tradeName1Key1,
java.lang.String tradeName1Key2,
java.lang.String tradeName1Key3,
java.lang.String tradeName2Key1,
java.lang.String tradeName2Key2,
java.lang.String tradeName2Key3,
java.lang.String legalFormKey,
java.lang.String financeNbrKey)
Create Approval TradeName License,
assocaite the LP to the specific cap
associate the LP to the public user
send the approval notice mail to the public user
it same as invoking:
1.createApprovalTradeNameLicense();
2.associateWithCap();
3.associateWithPublicUser();
4.sendNoticeMailToUser().
|
LicenseScriptModel |
createLicenseScriptModel()
Add a LicenseScriptModel.
|
PeopleAttributeScriptModel |
createPeopleAttributeScriptModel()
Creates the people attribute script model.
|
ScriptResult |
createRefLicenseProf(LicenseScriptModel licenseScriptModel)
Copy License to Lic.
|
ScriptResult |
editRefLicenseProf(LicenseScriptModel licenseScriptModel)
Get LicenseScriptModel.
|
ScriptResult |
getCapIDsByLicenseModel(LicenseScriptModel licenseScriptModel)
Get Caps by LicenseModel.
|
ScriptResult |
getLicenseProf(com.accela.aa.aamain.cap.CapIDModel capID)
Get LicenseProfessionals from Lic.
|
ScriptResult |
getProviderBySeq(java.lang.String providerNbr)
Gets the provider by seq.
|
com.accela.v360.publicuser.PublicUserModel |
getPublicUserByUserName(java.lang.String puserUserName)
Get the public user by the userName.
|
ScriptResult |
getRefLicenseProfByProviderNo(java.lang.String providerNo)
Gets the license professional by provider no.
|
ScriptResult |
getRefLicenseProfBySeqNbr(java.lang.String serviceProviderCode,
java.lang.Long seqNbr)
Get LicenseScriptModel.
|
ScriptResult |
getRefLicensesProfByLicNbr(java.lang.String serviceProviderCode,
java.lang.String licenseNbr)
Get a collection of LicenseScriptModel.
|
ScriptResult |
getRefLicensesProfByName(java.lang.String serviceProviderCode,
java.lang.String fName,
java.lang.String mName,
java.lang.String lName)
Get LicenseScriptModel.
|
ScriptResult |
getRefLicProfByOnlineUser(java.lang.String userSeqNbr)
Get all reference license professional by the user sequence number.
|
ScriptResult |
getTradeNameList(java.lang.String businessName,
java.lang.String businessName2)
Return list of trade names by BusinessName and BusName2.
|
ScriptResult |
isApproveTradeName(CapScriptModel cap,
java.lang.String filterName,
java.lang.String currentModuleName,
java.lang.String status)
Judge the status change is whether for approving trade name.
|
ScriptResult |
notifyPublicUserByEmail(com.accela.v360.publicuser.PublicUserModel publicUser,
LicenseScriptModel license)
Send the notice mail about approval trade name to the public user
|
ScriptResult |
updateLicenseStatusByTypeAndNbr(java.lang.String licenseType,
java.lang.String licenseNbr,
java.lang.String auditStatus)
update the status of license.
|
public LicenseScript(java.lang.String serviceProviderCode,
java.lang.String auditID,
com.accela.aa.emse.dom.service.CachedService cachedService)
throws com.accela.aa.exception.AAException
serviceProviderCode - agency codeauditID - the audit idcom.accela.aa.exception.AAException - the AA exceptionpublic LicenseScript()
throws com.accela.aa.exception.AAException
com.accela.aa.exception.AAException - the AA exceptionpublic LicenseScriptModel createLicenseScriptModel()
com.accela.aa.emse.dom.service.LicenseScriptServicecreateLicenseScriptModel in interface com.accela.aa.emse.dom.service.LicenseScriptServicepublic PeopleAttributeScriptModel createPeopleAttributeScriptModel()
com.accela.aa.emse.dom.service.LicenseScriptServicecreatePeopleAttributeScriptModel in interface com.accela.aa.emse.dom.service.LicenseScriptServicepublic ScriptResult createRefLicenseProf(LicenseScriptModel licenseScriptModel)
com.accela.aa.emse.dom.service.LicenseScriptServicecreateRefLicenseProf in interface com.accela.aa.emse.dom.service.LicenseScriptServicelicenseScriptModel - the license script modelpublic ScriptResult editRefLicenseProf(LicenseScriptModel licenseScriptModel)
com.accela.aa.emse.dom.service.LicenseScriptServiceeditRefLicenseProf in interface com.accela.aa.emse.dom.service.LicenseScriptServicelicenseScriptModel - LicenseScriptModelpublic ScriptResult getProviderBySeq(java.lang.String providerNbr)
com.accela.aa.emse.dom.service.LicenseScriptServicegetProviderBySeq in interface com.accela.aa.emse.dom.service.LicenseScriptServiceproviderNbr - the provider nbrpublic ScriptResult getRefLicenseProfBySeqNbr(java.lang.String serviceProviderCode, java.lang.Long seqNbr)
com.accela.aa.emse.dom.service.LicenseScriptServicegetRefLicenseProfBySeqNbr in interface com.accela.aa.emse.dom.service.LicenseScriptServiceserviceProviderCode - agency codeseqNbr - license numberpublic ScriptResult getRefLicensesProfByLicNbr(java.lang.String serviceProviderCode, java.lang.String licenseNbr)
com.accela.aa.emse.dom.service.LicenseScriptServicegetRefLicensesProfByLicNbr in interface com.accela.aa.emse.dom.service.LicenseScriptServiceserviceProviderCode - agency codelicenseNbr - license numberpublic ScriptResult getRefLicensesProfByName(java.lang.String serviceProviderCode, java.lang.String fName, java.lang.String mName, java.lang.String lName)
com.accela.aa.emse.dom.service.LicenseScriptServicegetRefLicensesProfByName in interface com.accela.aa.emse.dom.service.LicenseScriptServiceserviceProviderCode - agency codefName - first namemName - middle namelName - last namepublic ScriptResult getLicenseProf(com.accela.aa.aamain.cap.CapIDModel capID)
com.accela.aa.emse.dom.service.LicenseScriptServicegetLicenseProf in interface com.accela.aa.emse.dom.service.LicenseScriptServicecapID - CapIDModelpublic ScriptResult createApprovalTradeNameLicense(CapScriptModel capScriptModel, com.accela.v360.publicuser.PublicUserModel publicUser, java.lang.String licenseType, java.lang.String tradeName1Key1, java.lang.String tradeName1Key2, java.lang.String tradeName1Key3, java.lang.String tradeName2Key1, java.lang.String tradeName2Key2, java.lang.String tradeName2Key3, java.lang.String legalFormKey, java.lang.String financeNbrKey)
com.accela.aa.emse.dom.service.LicenseScriptServicecreateApprovalTradeNameLicense in interface com.accela.aa.emse.dom.service.LicenseScriptServicecapScriptModel - the cap script modelpublicUser - the public userlicenseType - the license typetradeName1Key1 - the trade name1 key1tradeName1Key2 - the trade name1 key2tradeName1Key3 - the trade name1 key3tradeName2Key1 - the trade name2 key1tradeName2Key2 - the trade name2 key2tradeName2Key3 - the trade name2 key3legalFormKey - the legal form keyfinanceNbrKey - the finance nbr keypublic ScriptResult createApprovalTradeNameLicense(CapScriptModel capScriptModel, com.accela.v360.publicuser.PublicUserModel publicUser, java.lang.String licenseType, java.lang.String englishTradeName, java.lang.String arabicTradeName, java.lang.String legalFormKey, java.lang.String financeNbrKey) throws com.accela.aa.exception.AAException, java.rmi.RemoteException
com.accela.aa.emse.dom.service.LicenseScriptServicecreateApprovalTradeNameLicense in interface com.accela.aa.emse.dom.service.LicenseScriptServicecapScriptModel - the cap script modelpublicUser - the public userlicenseType - the license typeenglishTradeName - the ASI field labels of english trade namesarabicTradeName - the ASI field labels of arabic trade nameslegalFormKey - the legal form keyfinanceNbrKey - the finance nbr keycom.accela.aa.exception.AAException - the AA exceptionjava.rmi.RemoteException - the remote exceptionpublic com.accela.v360.publicuser.PublicUserModel getPublicUserByUserName(java.lang.String puserUserName)
throws java.lang.Exception
com.accela.aa.emse.dom.service.LicenseScriptServicegetPublicUserByUserName in interface com.accela.aa.emse.dom.service.LicenseScriptServicepuserUserName - the puser user namejava.lang.Exception - the exceptionpublic ScriptResult associateLpWithCap(com.accela.aa.aamain.cap.CapIDModel capId, LicenseScriptModel license)
com.accela.aa.emse.dom.service.LicenseScriptServiceassociateLpWithCap in interface com.accela.aa.emse.dom.service.LicenseScriptServicecapId - the cap idlicense - the licensepublic ScriptResult associateLpWithPublicUser(com.accela.v360.publicuser.PublicUserModel publicUser, LicenseScriptModel license)
com.accela.aa.emse.dom.service.LicenseScriptServiceassociateLpWithPublicUser in interface com.accela.aa.emse.dom.service.LicenseScriptServicepublicUser - the public userlicense - the licensepublic ScriptResult associateContactWithPublicUser(java.lang.String publicUserSeqNbr, java.lang.String contactSeqNbr)
associateContactWithPublicUser in interface com.accela.aa.emse.dom.service.LicenseScriptServicepublicUserSeqNbr - the sequence number of public user.contactSeqNbr - the sequence number of contact.public ScriptResult notifyPublicUserByEmail(com.accela.v360.publicuser.PublicUserModel publicUser, LicenseScriptModel license)
notifyPublicUserByEmail in interface com.accela.aa.emse.dom.service.LicenseScriptServicepublicUser - license - public ScriptResult createAssociatedLicenseProfessional(CapScriptModel capScriptModel, java.lang.String licenseType, java.lang.String tradeName1Key1, java.lang.String tradeName1Key2, java.lang.String tradeName1Key3, java.lang.String tradeName2Key1, java.lang.String tradeName2Key2, java.lang.String tradeName2Key3, java.lang.String legalFormKey, java.lang.String financeNbrKey)
com.accela.aa.emse.dom.service.LicenseScriptServicecreateAssociatedLicenseProfessional in interface com.accela.aa.emse.dom.service.LicenseScriptServicecapScriptModel - the cap script modellicenseType - the license typetradeName1Key1 - the trade name1 key1tradeName1Key2 - the trade name1 key2tradeName1Key3 - the trade name1 key3tradeName2Key1 - the trade name2 key1tradeName2Key2 - the trade name2 key2tradeName2Key3 - the trade name2 key3legalFormKey - the legal form keyfinanceNbrKey - the finance nbr keypublic ScriptResult getTradeNameList(java.lang.String businessName, java.lang.String businessName2)
com.accela.aa.emse.dom.service.LicenseScriptServicegetTradeNameList in interface com.accela.aa.emse.dom.service.LicenseScriptServicebusinessName - the business name which may be nullbusinessName2 - the business name2 which may be nullpublic ScriptResult isApproveTradeName(CapScriptModel cap, java.lang.String filterName, java.lang.String currentModuleName, java.lang.String status)
com.accela.aa.emse.dom.service.LicenseScriptServiceisApproveTradeName in interface com.accela.aa.emse.dom.service.LicenseScriptServicecap - The current trade name capfilterName - The cap type filter namecurrentModuleName - The current module namestatus - The status which user want to changepublic ScriptResult getRefLicProfByOnlineUser(java.lang.String userSeqNbr)
com.accela.aa.emse.dom.service.LicenseScriptServicegetRefLicProfByOnlineUser in interface com.accela.aa.emse.dom.service.LicenseScriptServiceuserSeqNbr - the sequence number of the public userpublic ScriptResult checkTradeNamesGroupByGroup(CapScriptModel cap, java.lang.String tradeName1Key1, java.lang.String tradeName2Key1, java.lang.String tradeName1Key2, java.lang.String tradeName2Key2, java.lang.String tradeName1Key3, java.lang.String tradeName2Key3)
com.accela.aa.emse.dom.service.LicenseScriptServicecheckTradeNamesGroupByGroup in interface com.accela.aa.emse.dom.service.LicenseScriptServicecap - the captradeName1Key1 - the trade name1 key1tradeName2Key1 - the trade name2 key1tradeName1Key2 - the trade name1 key2tradeName2Key2 - the trade name2 key2tradeName1Key3 - the trade name1 key3tradeName2Key3 - the trade name2 key3public ScriptResult updateLicenseStatusByTypeAndNbr(java.lang.String licenseType, java.lang.String licenseNbr, java.lang.String auditStatus)
com.accela.aa.emse.dom.service.LicenseScriptServiceupdateLicenseStatusByTypeAndNbr in interface com.accela.aa.emse.dom.service.LicenseScriptServicelicenseType - the license typelicenseNbr - the license nbrauditStatus - the audit statuspublic ScriptResult getRefLicenseProfByProviderNo(java.lang.String providerNo)
com.accela.aa.emse.dom.service.LicenseScriptServicegetRefLicenseProfByProviderNo in interface com.accela.aa.emse.dom.service.LicenseScriptServiceproviderNo - the provider nopublic ScriptResult getCapIDsByLicenseModel(LicenseScriptModel licenseScriptModel)
getCapIDsByLicenseModel in interface com.accela.aa.emse.dom.service.LicenseScriptServicelicenseScriptModel - LicenseScriptModel