kom.gateway
Class KOMutil.LookupTables

java.lang.Object
  |
  +--kom.gateway.KOMutil.LookupTables
Enclosing class:
KOMutil

class KOMutil.LookupTables
extends java.lang.Object

Auxiliary class for tables and methods to up login ids, etc


Field Summary
private  boolean cleanInfo
          Clean InfoData if set
(package private)  KomData emailTab
          Table of email addresses vs user or forum data
(package private)  KOMutil.UFtable fTable
          Table of forums (extracted from infoData)
(package private)  java.util.Vector infoData
          Main info table for current database (users, forums, etc)
(package private)  KomData loginTab
          Table for finding infoData from a login id
(package private)  KomData refTab
          Auxiliary table
(package private)  KomData shortTab
          Auxiliary table, ref to short
(package private)  KomData userTab
          Table for finding infoData from a user ref
(package private)  KOMutil.UFtable uTable
          Table of users (extracted from infoData)
 
Constructor Summary
(package private) KOMutil.LookupTables()
           
 
Method Summary
(package private)  void cleanInfoData()
           
 java.lang.String email2userRef(java.lang.String email)
          Finds the first user reference corresponding to the email address in the info database.
 java.lang.String findEmail(java.lang.String email)
          Finds an entry in emailTab corresponding to a given e-mail address
 boolean findInfoData()
          Gets the current value of infoData, updates secondary tables
 KomData findlocal(java.lang.String email)
          Finds a local recipient
 java.lang.String findLogin(java.lang.String loginid)
          Finds a user from login id
 java.lang.String findShort(java.lang.String ref)
          Finds a shortname from a reference (INEFFICIENTLY!)
 java.lang.String findUser(java.lang.String user)
          Finds info data for a user.
private  void makeTables(java.lang.String ref, KomData nt, java.util.TreeSet set)
          Updates loginTab, userTab, and emailTab from a user entry.
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

infoData

java.util.Vector infoData
Main info table for current database (users, forums, etc)

uTable

KOMutil.UFtable uTable
Table of users (extracted from infoData)

fTable

KOMutil.UFtable fTable
Table of forums (extracted from infoData)

refTab

KomData refTab
Auxiliary table

shortTab

KomData shortTab
Auxiliary table, ref to short

loginTab

KomData loginTab
Table for finding infoData from a login id

userTab

KomData userTab
Table for finding infoData from a user ref

emailTab

KomData emailTab
Table of email addresses vs user or forum data

cleanInfo

private boolean cleanInfo
Clean InfoData if set
Constructor Detail

KOMutil.LookupTables

KOMutil.LookupTables()
Method Detail

findEmail

public java.lang.String findEmail(java.lang.String email)
Finds an entry in emailTab corresponding to a given e-mail address
Parameters:
email - E-mail address
Returns:
The first matching entry in emailTab, or null

findUser

public java.lang.String findUser(java.lang.String user)
Finds info data for a user.
Parameters:
user - User reference String
Returns:
info record for user, or null

findlocal

public KomData findlocal(java.lang.String email)
Finds a local recipient
Parameters:
email - E-mail address
Returns:
KomData for recipient, or null

cleanInfoData

void cleanInfoData()

findLogin

public java.lang.String findLogin(java.lang.String loginid)
Finds a user from login id
Parameters:
loginid - Login id ("short name")
Returns:
Info entry for user, or null

findShort

public java.lang.String findShort(java.lang.String ref)
Finds a shortname from a reference (INEFFICIENTLY!)
Parameters:
ref - Reference of the form "/cat/act/"
Returns:
Corresponding short name (symbolic id)

findInfoData

public boolean findInfoData()
Gets the current value of infoData, updates secondary tables

email2userRef

public java.lang.String email2userRef(java.lang.String email)
Finds the first user reference corresponding to the email address in the info database.
Parameters:
email - Lookup email address.
Returns:
User reference, or null if email address is not present in the info database.

makeTables

private void makeTables(java.lang.String ref,
                        KomData nt,
                        java.util.TreeSet set)
Updates loginTab, userTab, and emailTab from a user entry. Sorts by Cname value.
Parameters:
ref - Reference to object
nt - Data for object
set - TreeSet (for sorting by common name)