kom.gateway
Class KOMutil.UFtable
java.lang.Object
|
+--kom.gateway.KOMutil.UFtable
- Enclosing class:
- KOMutil
- class KOMutil.UFtable
- extends java.lang.Object
Contains a table of users or forums, and a method to
find an entry in the table
Method Summary |
java.lang.String |
email2userRef(java.lang.String email)
Finds the first user reference corresponding to the email
address in the info database. |
KomData |
find(java.lang.String mbox)
Finds a local object with specific local id |
KomData |
getObject(int i)
Gets full object at index |
KomData |
info(int i)
Gets an object containing info used for display |
int |
length()
Returns length of tables |
Methods inherited from class java.lang.Object |
,
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
registerNatives,
toString,
wait,
wait,
wait |
valTable
private java.lang.String[] valTable
xTable
private KomData[] xTable
length
private int length
KOMutil.UFtable
KOMutil.UFtable(int length,
java.util.TreeSet set,
KOMutil.LookupTables lt,
boolean userswanted)
- Constructor
- Parameters:
length
- Number of elementsset
- Ordered set of keysuserswanted
- True if the table should contain user objects
info
public KomData info(int i)
- Gets an object containing info used for display
- Parameters:
i
- index in xTable and valTable- Returns:
- copy of xTable entry with "Cvalue" set to valTable entry
getObject
public KomData getObject(int i)
- Gets full object at index
- Parameters:
i
- index in xTable and valTable- Returns:
- User or forum object
length
public int length()
- Returns length of tables
find
public KomData find(java.lang.String mbox)
- Finds a local object with specific local id
- Parameters:
mbox
- "Mailbox" for user or forum - assume user initially- Returns:
- matching object or null
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.