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-2013 Description: Provides the "aa.LicenseScript" object through which script writers can operate on to perform the "License" object related functions. Notes: $Id: LicenseScript.java 242973 2013-01-21 07:41:46Z ..\bruce.deng $ 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)
Deprecated.
|
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) 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.LicenseScriptService
createLicenseScriptModel
in interface com.accela.aa.emse.dom.service.LicenseScriptService
public PeopleAttributeScriptModel createPeopleAttributeScriptModel()
com.accela.aa.emse.dom.service.LicenseScriptService
createPeopleAttributeScriptModel
in interface com.accela.aa.emse.dom.service.LicenseScriptService
public ScriptResult createRefLicenseProf(LicenseScriptModel licenseScriptModel)
com.accela.aa.emse.dom.service.LicenseScriptService
createRefLicenseProf
in interface com.accela.aa.emse.dom.service.LicenseScriptService
licenseScriptModel
- the license script modelpublic ScriptResult editRefLicenseProf(LicenseScriptModel licenseScriptModel)
com.accela.aa.emse.dom.service.LicenseScriptService
editRefLicenseProf
in interface com.accela.aa.emse.dom.service.LicenseScriptService
licenseScriptModel
- LicenseScriptModelpublic ScriptResult getProviderBySeq(java.lang.String providerNbr)
com.accela.aa.emse.dom.service.LicenseScriptService
getProviderBySeq
in interface com.accela.aa.emse.dom.service.LicenseScriptService
providerNbr
- the provider nbrpublic ScriptResult getRefLicenseProfBySeqNbr(java.lang.String serviceProviderCode, java.lang.Long seqNbr)
com.accela.aa.emse.dom.service.LicenseScriptService
getRefLicenseProfBySeqNbr
in interface com.accela.aa.emse.dom.service.LicenseScriptService
serviceProviderCode
- agency codeseqNbr
- license numberpublic ScriptResult getRefLicensesProfByLicNbr(java.lang.String serviceProviderCode, java.lang.String licenseNbr)
com.accela.aa.emse.dom.service.LicenseScriptService
getRefLicensesProfByLicNbr
in interface com.accela.aa.emse.dom.service.LicenseScriptService
serviceProviderCode
- 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.LicenseScriptService
getRefLicensesProfByName
in interface com.accela.aa.emse.dom.service.LicenseScriptService
serviceProviderCode
- agency codefName
- first namemName
- middle namelName
- last namepublic ScriptResult getLicenseProf(com.accela.aa.aamain.cap.CapIDModel capID)
com.accela.aa.emse.dom.service.LicenseScriptService
getLicenseProf
in interface com.accela.aa.emse.dom.service.LicenseScriptService
capID
- 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.LicenseScriptService
createApprovalTradeNameLicense
in interface com.accela.aa.emse.dom.service.LicenseScriptService
capScriptModel
- 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.LicenseScriptService
createApprovalTradeNameLicense
in interface com.accela.aa.emse.dom.service.LicenseScriptService
capScriptModel
- 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.LicenseScriptService
getPublicUserByUserName
in interface com.accela.aa.emse.dom.service.LicenseScriptService
puserUserName
- 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.LicenseScriptService
associateLpWithCap
in interface com.accela.aa.emse.dom.service.LicenseScriptService
capId
- the cap idlicense
- the licensepublic ScriptResult associateLpWithPublicUser(com.accela.v360.publicuser.PublicUserModel publicUser, LicenseScriptModel license)
com.accela.aa.emse.dom.service.LicenseScriptService
associateLpWithPublicUser
in interface com.accela.aa.emse.dom.service.LicenseScriptService
publicUser
- the public userlicense
- the licensepublic ScriptResult associateContactWithPublicUser(java.lang.String publicUserSeqNbr, java.lang.String contactSeqNbr)
associateContactWithPublicUser
in interface com.accela.aa.emse.dom.service.LicenseScriptService
publicUserSeqNbr
- 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.LicenseScriptService
publicUser
- 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.LicenseScriptService
createAssociatedLicenseProfessional
in interface com.accela.aa.emse.dom.service.LicenseScriptService
capScriptModel
- 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.LicenseScriptService
getTradeNameList
in interface com.accela.aa.emse.dom.service.LicenseScriptService
businessName
- 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.LicenseScriptService
isApproveTradeName
in interface com.accela.aa.emse.dom.service.LicenseScriptService
cap
- 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.LicenseScriptService
getRefLicProfByOnlineUser
in interface com.accela.aa.emse.dom.service.LicenseScriptService
userSeqNbr
- 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.LicenseScriptService
checkTradeNamesGroupByGroup
in interface com.accela.aa.emse.dom.service.LicenseScriptService
cap
- 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.LicenseScriptService
updateLicenseStatusByTypeAndNbr
in interface com.accela.aa.emse.dom.service.LicenseScriptService
licenseType
- the license typelicenseNbr
- the license nbrauditStatus
- the audit statuspublic ScriptResult getRefLicenseProfByProviderNo(java.lang.String providerNo)
com.accela.aa.emse.dom.service.LicenseScriptService
getRefLicenseProfByProviderNo
in interface com.accela.aa.emse.dom.service.LicenseScriptService
providerNo
- the provider nopublic ScriptResult getCapIDsByLicenseModel(LicenseScriptModel licenseScriptModel)
getCapIDsByLicenseModel
in interface com.accela.aa.emse.dom.service.LicenseScriptService
licenseScriptModel
- LicenseScriptModel