public class UserRightScript
extends com.accela.aa.emse.dom.service.BaseAAScript
implements com.accela.aa.emse.dom.service.UserRightScriptService
Accela Automation File: UserRightScript.java Accela, Inc. Copyright (C): 2001-2013 Description: Notes: Revision History: 2002-09-15 ,johnny.zhou, Initial Version. 08-27-2004, Sunny Wu Added method getUserRight(...) 10-20-2004, Cathy Xiao Added method getUserProfileValue(...), updateUserProfileValue(...) 11/01/2006 Michael Mao cache service object.
Constructor and Description |
---|
UserRightScript()
Constructor for UserRightScript.
|
UserRightScript(java.lang.String serviceProviderCode,
java.lang.String auditID)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
ScriptResult |
getUserProfileValue(java.lang.String userName,
java.lang.String constantName)
Method getUserProfileValue.
|
ScriptResult |
getUserRight(java.lang.String currentModule,
java.lang.String userID)
Get user right.
|
ScriptResult |
isSupervisor(java.lang.String user,
java.lang.String modulename,
java.lang.String fid)
To check if the user have a supervisor role.
|
ScriptResult |
updateUserProfileValue(java.lang.String userName,
java.lang.String constantName,
java.lang.String constantValue,
java.lang.String caller)
Method updateUserProfileValue.
|
public UserRightScript(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 UserRightScript() throws com.accela.aa.exception.AAException
com.accela.aa.exception.AAException
- the AA exceptionpublic ScriptResult isSupervisor(java.lang.String user, java.lang.String modulename, java.lang.String fid)
com.accela.aa.emse.dom.service.UserRightScriptService
isSupervisor
in interface com.accela.aa.emse.dom.service.UserRightScriptService
user
- the user namemodulename
- the module namefid
- fidpublic ScriptResult getUserRight(java.lang.String currentModule, java.lang.String userID)
com.accela.aa.emse.dom.service.UserRightScriptService
getUserRight
in interface com.accela.aa.emse.dom.service.UserRightScriptService
currentModule
- the current moduleuserID
- the user idpublic ScriptResult getUserProfileValue(java.lang.String userName, java.lang.String constantName)
com.accela.aa.emse.dom.service.UserRightScriptService
getUserProfileValue
in interface com.accela.aa.emse.dom.service.UserRightScriptService
userName
- the user nameconstantName
- the constant namepublic ScriptResult updateUserProfileValue(java.lang.String userName, java.lang.String constantName, java.lang.String constantValue, java.lang.String caller)
com.accela.aa.emse.dom.service.UserRightScriptService
updateUserProfileValue
in interface com.accela.aa.emse.dom.service.UserRightScriptService
userName
- the user nameconstantName
- the constant nameconstantValue
- the constant valuecaller
- the caller