public class PublicUserScript
extends com.accela.aa.emse.dom.service.BaseAAScript
implements com.accela.aa.emse.dom.service.PublicUserScriptService
Accela Automation File: PublicUserScript.java Accela, Inc. Copyright (C): 2008-2013 Description: The class is used to expose the EJB interface to EMSE script Notes: $Id: PublicUserScript.java 242973 2013-01-21 07:41:46Z ..\bruce.deng $ Revision History <Date>, <Who>, <What> 2008-8-12 winter.jiang Initial.
Constructor and Description |
---|
PublicUserScript()
Instantiates a new public user script.
|
PublicUserScript(java.lang.String serviceProviderCode,
java.lang.String callerID) |
Modifier and Type | Method and Description |
---|---|
ScriptResult |
activatePublicUser(java.lang.String uuid)
Activate User's Account by hyperlink within Account Verification Email.
|
ScriptResult |
checkPublicUserAccountInAgency(com.accela.v360.publicuser.PublicUserModel puser)
Check whether public user account in the Agency is valid.
|
ScriptResult |
createPublicUser(com.accela.v360.publicuser.PublicUserModel publicUser)
create the publicUser.
|
ScriptResult |
createPublicUser(com.accela.v360.publicuser.PublicUserModel publicUser,
com.accela.aa.aamain.people.LicenseModel[] licenseModels)
Creates a public user with agency user and issues associated licenses.
|
ScriptResult |
createPublicUserForAgency(com.accela.v360.publicuser.PublicUserModel publicUser)
Insert a record into XPUBLICUSER_SERVPROV table.
|
ScriptResult |
disablePublicUserAccount(com.accela.v360.publicuser.PublicUserModel puser,
boolean disableAllAgencyAccounts)
Disable public user account in the Agency, public user could not log into the Agency once his account is disabled
in the Agency.
|
ScriptResult |
editPublicUser(com.accela.v360.publicuser.PublicUserModel publicUser)
edit the appropriate publicUser.
|
com.accela.aa.aamain.organization.DepartmentModel |
getDepartmentModel()
get an instance of DepartmentModel
|
com.accela.aa.aamain.people.LicenseModel |
getLicenseModel()
get an instance of LicenseModel
|
java.lang.String |
getNewPublicUserUUID()
Get an next UUID for new public user.
|
ScriptResult |
getOrganizatonOwner(com.accela.aa.aamain.organization.DepartmentModel organization)
Get organization owner with organization model, .
|
ScriptResult |
getPublicUser(java.lang.Long userSeqNum)
get a publicUser record.
|
ScriptResult |
getPublicUserByEmail(java.lang.String email)
Gets a publicUser model by email address.
|
ScriptResult |
getPublicUserByPUser(java.lang.String puserUserName)
getPublicUserByPUser.
|
ScriptResult |
getPublicUserBySearchKeys(com.accela.v360.publicuser.PublicUserModel puser,
com.accela.aa.aamain.people.PeopleModel peopleModel,
boolean searchAllAgencies)
Search public user by search keys.
|
ScriptResult |
getPublicUserByUserId(java.lang.String userId)
Gets a publicUser model by user ID.
|
ScriptResult |
getPublicUserListByContactNBR(java.lang.Long contactNBR)
Search public user by contact number.
|
ScriptResult |
getPublicUserListByLicenseSeqNBR(java.lang.Long licenseNBR)
Search public user by License SeqNB.
|
ScriptResult |
getPublicUserListByOwnerNBR(java.lang.String ownerNBR)
Search public user by owner number.
|
com.accela.v360.publicuser.PublicUserModel |
getPublicUserModel()
get an instance of PublicUserModel
|
ScriptResult |
isExistingEmailID(java.lang.String userEmail)
Check whether an Email id of public user exists in the table PUBLICUSER.
|
ScriptResult |
isExistingUser(java.lang.String userID)
check if a public user id exists in teh table PUBLICUSER.
|
ScriptResult |
isRegisterred(java.lang.Long userSeqNum)
Check if there is a record in XPUBLICUSER_SERVPROV table already.
|
ScriptResult |
purgExpiredInactiveAccount()
According to PURGE_EXPIRED_ACCOUNT_INTERVAL in ACA_CONFIGS standard choice, to purge all expired inactive
accounts.
|
ScriptResult |
removePublicUserInfoFromAgency(com.accela.v360.publicuser.PublicUserModel puser)
For the aspect of privacy, public user can remove his profile from the Agency.
|
ScriptResult |
resetPassword(java.lang.String userID)
reset password for a public User.
|
ScriptResult |
sendActivateEmail(com.accela.v360.publicuser.PublicUserModel publicUserModel,
boolean isAgencyUser,
boolean isActivated)
It to send activate Email for ACA.
|
ScriptResult |
sendHyperlinkActivateEmail(com.accela.v360.publicuser.PublicUserModel publicUserModel)
This email send to citizen user when register a new account and the email option turn on.
|
ScriptResult |
sendPasswordEmail(com.accela.v360.publicuser.PublicUserModel publicUserModel)
Sends new password Email for ACA.
|
ScriptResult |
signon(java.lang.String userId,
java.lang.String password)
Find the agency id for the public user signon.
|
ScriptResult |
updateEmail4PublicUser(com.accela.v360.publicuser.PublicUserModel puser,
java.lang.String oldEmail)
Update public user information when his email address is changed.
|
public PublicUserScript(java.lang.String serviceProviderCode, java.lang.String callerID) throws com.accela.aa.exception.AAException
com.accela.aa.exception.AAException
public PublicUserScript() throws com.accela.aa.exception.AAException
com.accela.aa.exception.AAException
- the AA exceptionpublic com.accela.v360.publicuser.PublicUserModel getPublicUserModel()
com.accela.aa.emse.dom.service.PublicUserScriptService
getPublicUserModel
in interface com.accela.aa.emse.dom.service.PublicUserScriptService
public com.accela.aa.aamain.organization.DepartmentModel getDepartmentModel()
com.accela.aa.emse.dom.service.PublicUserScriptService
getDepartmentModel
in interface com.accela.aa.emse.dom.service.PublicUserScriptService
public com.accela.aa.aamain.people.LicenseModel getLicenseModel()
com.accela.aa.emse.dom.service.PublicUserScriptService
getLicenseModel
in interface com.accela.aa.emse.dom.service.PublicUserScriptService
public java.lang.String getNewPublicUserUUID()
public ScriptResult createPublicUser(com.accela.v360.publicuser.PublicUserModel publicUser)
com.accela.aa.emse.dom.service.PublicUserScriptService
createPublicUser
in interface com.accela.aa.emse.dom.service.PublicUserScriptService
public ScriptResult createPublicUser(com.accela.v360.publicuser.PublicUserModel publicUser, com.accela.aa.aamain.people.LicenseModel[] licenseModels)
com.accela.aa.emse.dom.service.PublicUserScriptService
createPublicUser
in interface com.accela.aa.emse.dom.service.PublicUserScriptService
publicUser
- public user modellicenseModels
- associated license modelspublic ScriptResult editPublicUser(com.accela.v360.publicuser.PublicUserModel publicUser)
com.accela.aa.emse.dom.service.PublicUserScriptService
editPublicUser
in interface com.accela.aa.emse.dom.service.PublicUserScriptService
public ScriptResult resetPassword(java.lang.String userID)
com.accela.aa.emse.dom.service.PublicUserScriptService
resetPassword
in interface com.accela.aa.emse.dom.service.PublicUserScriptService
public ScriptResult isExistingUser(java.lang.String userID)
com.accela.aa.emse.dom.service.PublicUserScriptService
isExistingUser
in interface com.accela.aa.emse.dom.service.PublicUserScriptService
public ScriptResult isExistingEmailID(java.lang.String userEmail)
userEmail
- Register User Email.public ScriptResult getPublicUser(java.lang.Long userSeqNum)
getPublicUser
in interface com.accela.aa.emse.dom.service.PublicUserScriptService
userSeqNum
- public ScriptResult getOrganizatonOwner(com.accela.aa.aamain.organization.DepartmentModel organization)
com.accela.aa.emse.dom.service.PublicUserScriptService
getOrganizatonOwner
in interface com.accela.aa.emse.dom.service.PublicUserScriptService
public ScriptResult createPublicUserForAgency(com.accela.v360.publicuser.PublicUserModel publicUser)
com.accela.aa.emse.dom.service.PublicUserScriptService
createPublicUserForAgency
in interface com.accela.aa.emse.dom.service.PublicUserScriptService
public ScriptResult signon(java.lang.String userId, java.lang.String password)
com.accela.aa.emse.dom.service.PublicUserScriptService
signon
in interface com.accela.aa.emse.dom.service.PublicUserScriptService
public ScriptResult getPublicUserBySearchKeys(com.accela.v360.publicuser.PublicUserModel puser, com.accela.aa.aamain.people.PeopleModel peopleModel, boolean searchAllAgencies)
com.accela.aa.emse.dom.service.PublicUserScriptService
getPublicUserBySearchKeys
in interface com.accela.aa.emse.dom.service.PublicUserScriptService
puser
- The PublicUser model which contains search keys.peopleModel
- The People model which contains search keys.searchAllAgencies
- Whether the public users in all Agencies.public ScriptResult disablePublicUserAccount(com.accela.v360.publicuser.PublicUserModel puser, boolean disableAllAgencyAccounts)
com.accela.aa.emse.dom.service.PublicUserScriptService
disablePublicUserAccount
in interface com.accela.aa.emse.dom.service.PublicUserScriptService
puser
- The public user to be disabled in the Agency.disableAllAgencyAccounts
- Whether disable all Agency accounts.public ScriptResult checkPublicUserAccountInAgency(com.accela.v360.publicuser.PublicUserModel puser)
com.accela.aa.emse.dom.service.PublicUserScriptService
checkPublicUserAccountInAgency
in interface com.accela.aa.emse.dom.service.PublicUserScriptService
puser
- The public user to be checked.public ScriptResult removePublicUserInfoFromAgency(com.accela.v360.publicuser.PublicUserModel puser)
com.accela.aa.emse.dom.service.PublicUserScriptService
removePublicUserInfoFromAgency
in interface com.accela.aa.emse.dom.service.PublicUserScriptService
puser
- The public user whose profile will be removed.public ScriptResult updateEmail4PublicUser(com.accela.v360.publicuser.PublicUserModel puser, java.lang.String oldEmail)
com.accela.aa.emse.dom.service.PublicUserScriptService
updateEmail4PublicUser
in interface com.accela.aa.emse.dom.service.PublicUserScriptService
puser
- The public user model to be updated.oldEmail
- Public user's old email address.public ScriptResult isRegisterred(java.lang.Long userSeqNum)
com.accela.aa.emse.dom.service.PublicUserScriptService
isRegisterred
in interface com.accela.aa.emse.dom.service.PublicUserScriptService
public ScriptResult sendActivateEmail(com.accela.v360.publicuser.PublicUserModel publicUserModel, boolean isAgencyUser, boolean isActivated)
com.accela.aa.emse.dom.service.PublicUserScriptService
sendActivateEmail
in interface com.accela.aa.emse.dom.service.PublicUserScriptService
public ScriptResult sendHyperlinkActivateEmail(com.accela.v360.publicuser.PublicUserModel publicUserModel) throws com.accela.aa.exception.AAException
publicUserModel
- Public User Model.com.accela.aa.exception.AAException
public ScriptResult getPublicUserByEmail(java.lang.String email)
getPublicUserByEmail
in interface com.accela.aa.emse.dom.service.PublicUserScriptService
email
- email addresspublic ScriptResult getPublicUserByUserId(java.lang.String userId)
com.accela.aa.emse.dom.service.PublicUserScriptService
getPublicUserByUserId
in interface com.accela.aa.emse.dom.service.PublicUserScriptService
userId
- user IDpublic ScriptResult sendPasswordEmail(com.accela.v360.publicuser.PublicUserModel publicUserModel)
com.accela.aa.emse.dom.service.PublicUserScriptService
sendPasswordEmail
in interface com.accela.aa.emse.dom.service.PublicUserScriptService
publicUserModel
- the public user modelpublic ScriptResult getPublicUserByPUser(java.lang.String puserUserName)
com.accela.aa.emse.dom.service.PublicUserScriptService
getPublicUserByPUser
in interface com.accela.aa.emse.dom.service.PublicUserScriptService
puserUserName
- the puser user namepublic ScriptResult purgExpiredInactiveAccount()
com.accela.aa.emse.dom.service.PublicUserScriptService
purgExpiredInactiveAccount
in interface com.accela.aa.emse.dom.service.PublicUserScriptService
public ScriptResult getPublicUserListByLicenseSeqNBR(java.lang.Long licenseNBR)
com.accela.aa.emse.dom.service.PublicUserScriptService
getPublicUserListByLicenseSeqNBR
in interface com.accela.aa.emse.dom.service.PublicUserScriptService
licenseNBR
- the license nbrpublic ScriptResult getPublicUserListByContactNBR(java.lang.Long contactNBR)
contactNBR
- Contact Number.public ScriptResult getPublicUserListByOwnerNBR(java.lang.String ownerNBR)
ownerNBR
- Owner Number.public ScriptResult activatePublicUser(java.lang.String uuid)
uuid
- Universally Unique Identifier for public user verification.