gov.bnl.gums.account
Class GecosMap
java.lang.Object
gov.bnl.gums.account.GecosMap
public class GecosMap
- extends 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
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(String account,
String gecos)
findAccount
public String findAccount(String name,
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(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-2009. All Rights Reserved.