edu.jhu.tmaj.beans.manytomany
Class UsersUsersBean

java.lang.Object
  extended by edu.jhu.tmaj.beans.manytomany.ManyToManyBean
      extended by edu.jhu.tmaj.beans.manytomany.UsersUsersBean
All Implemented Interfaces:
java.io.Serializable

public final class UsersUsersBean
extends ManyToManyBean
implements java.io.Serializable

A ManyToMany Beans that links group admins to people (users) in their group. Group admins may not assign permissions to every user in tmaj, but rather, only people in their group.

See Also:
Serialized Form

Constructor Summary
UsersUsersBean()
           
 
Method Summary
 boolean doesGroupAdminControlUser(int groupAdminUserID, int userID)
           
 java.lang.String getSQL()
          Returns a SQL statement that will initialize the bean with every record in the ManyToMany table
 java.lang.String getSQL(int userID)
          Returns a SQL statement that will initialize the bean with limited records for which the user needs access
 java.util.Set<java.lang.Integer> getUsersForAdminUserID(int adminUserID)
           
static void insertUsersUsers(int groupAdminUserID, int userID)
          Inserts a record into the UsersUsers Table.
 
Methods inherited from class edu.jhu.tmaj.beans.manytomany.ManyToManyBean
getAllKey1s, getAllKey2s, getKeySetForKey, initialize, initialize, setKeySet, syncDatabase
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UsersUsersBean

public UsersUsersBean()
Method Detail

getSQL

public java.lang.String getSQL(int userID)
Description copied from class: ManyToManyBean
Returns a SQL statement that will initialize the bean with limited records for which the user needs access

Specified by:
getSQL in class ManyToManyBean

getSQL

public java.lang.String getSQL()
Description copied from class: ManyToManyBean
Returns a SQL statement that will initialize the bean with every record in the ManyToMany table

Specified by:
getSQL in class ManyToManyBean

getUsersForAdminUserID

public java.util.Set<java.lang.Integer> getUsersForAdminUserID(int adminUserID)

doesGroupAdminControlUser

public boolean doesGroupAdminControlUser(int groupAdminUserID,
                                         int userID)

insertUsersUsers

public static void insertUsersUsers(int groupAdminUserID,
                                    int userID)
                             throws java.sql.SQLException
Inserts a record into the UsersUsers Table.

Throws:
java.sql.SQLException