au.edu.swin.synergy.plugin.userdb
Class BReferentialIntegrity
java.lang.Object
|
+--au.edu.swin.synergy.plugin.userdb.BReferentialIntegrity
- public class BReferentialIntegrity
- extends Object
This class handles all the maintenance
of the integrity of the cross references between
the users and groups
- Author:
- Tristan Austin
Method Summary |
protected static void |
doCrossReference(BPrivileged item,
Hashtable itemDatabase)
This will run through all of the members of the given privileged item,
locate them in the appropriate database and make sure that
they exist in each others member lists. |
protected static void |
resolveGroupNumbers(Hashtable groupDatabase,
BUser user)
This will take all the groups this user is a member of, as
defined by the user itself, and translate the group names to
group ids. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
BReferentialIntegrity
public BReferentialIntegrity()
doCrossReference
protected static void doCrossReference(BPrivileged item,
Hashtable itemDatabase)
- This will run through all of the members of the given privileged item,
locate them in the appropriate database and make sure that
they exist in each others member lists.
- Parameters:
item
- The item to update the members ofitemDatabase
- The database to look in to find the members
Please complete the missing tags for doCrossReference- Returns:
-
- Pre Condition:
-
- Post Condition:
-
resolveGroupNumbers
protected static void resolveGroupNumbers(Hashtable groupDatabase,
BUser user)
- This will take all the groups this user is a member of, as
defined by the user itself, and translate the group names to
group ids. This new list is stored in the BUser object itself
for use later on.
- Parameters:
user
- The user to resolve the groups for