 
au.edu.swin.synergy.plugin.userdb
Class  BPermanentStorage
java.lang.Object
  |
  +--au.edu.swin.synergy.plugin.userdb.BPermanentStorage
- public class BPermanentStorage- extends Object
This encapsulates all the file to memory work
 required by the user database class.
- Author: 
- Tristan Austin
 
| Method Summary | 
|  void | readGroupTextdb(Hashtable groupDatabase,
                Hashtable userDatabase)This will read the groups from the group.txt file and
 load them into memory
 Please complete the missing tags for readGroupTextdb
 | 
|  void | readUserTextdb(Hashtable userDatabase,
               Hashtable groupDatabase)Reads the users details from permanent storage on disk
 into memory for instant use.
 | 
|  void | writeGroupTextdb(Hashtable groupDatabase)Writes all the groups to the groups database
 Please complete the missing tags for writeGroupTextdb
 | 
|  void | writeUserTextdb(Hashtable userDatabase)This will take the contents of the user hashtable and
 write them to the user file on disk for permanent storage.
 | 
 
| Methods inherited from class java.lang.Object | 
| clone, 
equals, 
finalize, 
getClass, 
hashCode, 
notify, 
notifyAll, 
toString, 
wait, 
wait, 
wait | 
 
BPermanentStorage
public BPermanentStorage(BUserDB userDB)
- This
writeUserTextdb
public void writeUserTextdb(Hashtable userDatabase)
- This will take the contents of the user hashtable and
 write them to the user file on disk for permanent storage.- 
- Post Condition:
- The file on disk will reflect the contents of memory
 
writeGroupTextdb
public void writeGroupTextdb(Hashtable groupDatabase)
- Writes all the groups to the groups database
 Please complete the missing tags for writeGroupTextdb- 
- Parameters:
- Returns:
-  
- Pre Condition:
-  
- Post Condition:
-  
 
readUserTextdb
public void readUserTextdb(Hashtable userDatabase,
                           Hashtable groupDatabase)
- Reads the users details from permanent storage on disk
 into memory for instant use.- 
- Pre Condition:
- The file exists
- Post Condition:
- The contents of the file are represented in memory
 
readGroupTextdb
public void readGroupTextdb(Hashtable groupDatabase,
                            Hashtable userDatabase)
- This will read the groups from the group.txt file and
 load them into memory
 Please complete the missing tags for readGroupTextdb- 
- Parameters:
- Returns:
-  
- Pre Condition:
-  
- Post Condition:
-  
 
