|
New Controls Work JDK 1.3 API |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--gov.fnal.controls.daq.security.ConsoleUserDirectory
This class includes functionalities as below:
Field Summary | |
static int |
UserFullNameFlag
|
static int |
UserIdFlag
|
static int |
UserNameFlag
|
static int |
UserUpperCaseNameFlag
|
Fields inherited from interface gov.fnal.controls.db.SybaseServer.Constants |
ADBS, BDBS, DDBS, MDBS |
Method Summary | |
static void |
createConsoleNodeTrimed()
Used to generate computers table insert data of user console sql script file. |
static void |
createUpdateUserBatch()
Used to generate console_user table insert data of all user sql script file. |
static String |
dumpPools(boolean ping,
boolean clock,
boolean periodic,
boolean empty,
boolean entries,
boolean stats,
boolean troubles,
boolean details)
Get a pool dump. |
ConsoleUserEntry |
getIdEntry(Integer id)
get ConsoleUserEntry object from TreeMap idMap whose key is user id cu_console_user_id. |
static ConsoleUserDirectory |
getInstance()
Create Instance of this object. |
ConsoleUserEntry |
getNameMapEntry(String username)
get ConsoleUserEntry object from TreeMap fullNameMap whose key is cu_full_name. |
static TreeMap |
getNewUpperCaseUsernameMap()
Create new TreeMap userNameUpperMap whose key is Upper Case user name corespond to column "cu_name". |
static TreeMap |
getNewUsernameMap()
Create new TreeMap userNameMap whose key is user name corespond to column "cu_name". |
static TreeMap |
getUpperCaseUsernameMap()
Get TreeMap userNameUpperMap whose key is Upper Case user name corespond to column "cu_name". |
static TreeMap |
getUsernameMap()
Get TreeMap userNameMap whose key is user name corespond to column "cu_name". |
static boolean |
isClassBugs()
Inquire of the state of the debug message switch. |
static void |
main(String[] args)
|
static void |
matchConsole()
Description: in this method we try to merge console_user table in sybase and telephone in Mysql into one telephone table in Mysql. |
static String |
reportStatistics()
Show debug state Statitics states. |
static void |
setClassBugs(boolean onOff)
Set the state of the debug message switch. |
static void |
setPassword(String employeeId,
String inputPassword)
Description insert into MySql dae database encrypted password for user whose id is input employeeId. |
static void |
verifyPassword(String firstName,
String inputPassword)
Verify user login by check input user name and password. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static int UserIdFlag
public static int UserFullNameFlag
public static int UserNameFlag
public static int UserUpperCaseNameFlag
Method Detail |
public static ConsoleUserDirectory getInstance()
public static void setClassBugs(boolean onOff)
onOff
- boolean state for the switch. When true show state value.public static boolean isClassBugs()
public static TreeMap getUsernameMap()
public static TreeMap getUpperCaseUsernameMap()
public static TreeMap getNewUsernameMap()
public static TreeMap getNewUpperCaseUsernameMap()
public static void main(String[] args)
public static void matchConsole()
public ConsoleUserEntry getNameMapEntry(String username)
username
- String: user full name coresponse cu_full_name.public ConsoleUserEntry getIdEntry(Integer id)
id
- Integer -- user id coresponse to cu_console_user_id.public static String reportStatistics()
public static String dumpPools(boolean ping, boolean clock, boolean periodic, boolean empty, boolean entries, boolean stats, boolean troubles, boolean details)
ping
- include when true.clock
- include when true.periodic
- include when true.empty
- include when true.entries
- include when true.stats
- include when true.troubles
- include when true.details
- include when true.public static void setPassword(String employeeId, String inputPassword)
employeeId
- String employee idinputPassword
- String user chose origenal passwordJcrypt
,
MySqlConnection
public static void verifyPassword(String firstName, String inputPassword)
firstName
- String -- user first name.inputPassword
- String input passwordJcrypt
public static void createConsoleNodeTrimed()
public static void createUpdateUserBatch()
|
New Controls Work JDK 1.3 API |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 2000-2001, Universities Research Association, Inc. All rights reserved.