gov.bnl.gums.account
Class GecosMap
java.lang.Object
gov.bnl.gums.account.GecosMap
public class GecosMap
- extends java.lang.Object
Retrieves the map from the NIS server and provide a logic to match name and
surname to an account.
- Author:
- Gabriele Carcassi, Jay Packard
Method Summary |
void |
addEntry(java.lang.String account,
java.lang.String gecos)
|
java.lang.String |
findAccount(java.lang.String name,
java.lang.String surname)
|
long |
getExpiration()
How long the map will be valid since the last change. |
boolean |
isValid()
|
void |
printMaps(java.io.PrintStream out)
|
void |
setExpiration(long expiration)
How long the map will be valid since the last change. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GecosMap
public GecosMap()
addEntry
public void addEntry(java.lang.String account,
java.lang.String gecos)
findAccount
public java.lang.String findAccount(java.lang.String name,
java.lang.String surname)
getExpiration
public long getExpiration()
- How long the map will be valid since the last change.
By default is 60*60*1000 (one hour).
- Returns:
- Time of validity in ms.
isValid
public boolean isValid()
printMaps
public void printMaps(java.io.PrintStream out)
setExpiration
public void setExpiration(long expiration)
- How long the map will be valid since the last change.
- Parameters:
expiration
- Time of validity in ms.
Copyright © 2004-2008. All Rights Reserved.