| 
GATE Version 3.1-2270  | 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectgate.security.GroupImpl
public class GroupImpl
| Field Summary | 
|---|
| Fields inherited from interface gate.security.Group | 
|---|
OBJECT_CHANGE_ADDUSER, OBJECT_CHANGE_NAME, OBJECT_CHANGE_REMOVEUSER | 
| Constructor Summary | |
|---|---|
GroupImpl(Long id,
          String name,
          List users,
          AccessControllerImpl ac,
          Connection conn)
 | 
|
| Method Summary | |
|---|---|
 void | 
addUser(Long userID,
        Session s)
---  | 
 void | 
addUser(User usr,
        Session s)
---  | 
 boolean | 
equals(Object obj)
this one is necessary for the contains() operations in Lists It is possible that two users have two different GroupImpl that refer to the very same GATE group in the DB, because they got it from the security factory at different times.  | 
 Long | 
getID()
---  | 
 String | 
getName()
---  | 
 List | 
getUsers()
---  | 
 void | 
objectCreated(ObjectModificationEvent e)
 | 
 void | 
objectDeleted(ObjectModificationEvent e)
 | 
 void | 
objectModified(ObjectModificationEvent e)
 | 
 void | 
processGateEvent(GateEvent e)
Called when a Gate event has occured  | 
 void | 
registerObjectModificationListener(ObjectModificationListener l,
                                   int eventType)
 | 
 void | 
removeUser(Long userID,
           Session s)
---  | 
 void | 
removeUser(User usr,
           Session s)
---  | 
 void | 
setName(String newName,
        Session s)
---  | 
 void | 
unregisterObjectModificationListener(ObjectModificationListener l,
                                     int eventType)
 | 
| Methods inherited from class java.lang.Object | 
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public GroupImpl(Long id,
                 String name,
                 List users,
                 AccessControllerImpl ac,
                 Connection conn)
| Method Detail | 
|---|
public Long getID()
getID in interface Grouppublic String getName()
getName in interface Grouppublic List getUsers()
getUsers in interface Group
public void setName(String newName,
                    Session s)
             throws PersistenceException,
                    SecurityException
setName in interface GroupPersistenceException
SecurityException
public void addUser(Long userID,
                    Session s)
             throws PersistenceException,
                    SecurityException
addUser in interface GroupPersistenceException
SecurityException
public void addUser(User usr,
                    Session s)
             throws PersistenceException,
                    SecurityException
addUser in interface GroupPersistenceException
SecurityException
public void removeUser(Long userID,
                       Session s)
                throws PersistenceException,
                       SecurityException
removeUser in interface GroupPersistenceException
SecurityException
public void removeUser(User usr,
                       Session s)
                throws PersistenceException,
                       SecurityException
removeUser in interface GroupPersistenceException
SecurityExceptionpublic void objectCreated(ObjectModificationEvent e)
objectCreated in interface ObjectModificationListenerpublic void objectModified(ObjectModificationEvent e)
objectModified in interface ObjectModificationListenerpublic void objectDeleted(ObjectModificationEvent e)
objectDeleted in interface ObjectModificationListenerpublic void processGateEvent(GateEvent e)
GateListener
processGateEvent in interface GateListenerpublic boolean equals(Object obj)
equals in class Object
public void registerObjectModificationListener(ObjectModificationListener l,
                                               int eventType)
public void unregisterObjectModificationListener(ObjectModificationListener l,
                                                 int eventType)
  | 
GATE Version 3.1-2270  | 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||