|
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 Group
public String getName()
getName
in interface Group
public List getUsers()
getUsers
in interface Group
public void setName(String newName, Session s) throws PersistenceException, SecurityException
setName
in interface Group
PersistenceException
SecurityException
public void addUser(Long userID, Session s) throws PersistenceException, SecurityException
addUser
in interface Group
PersistenceException
SecurityException
public void addUser(User usr, Session s) throws PersistenceException, SecurityException
addUser
in interface Group
PersistenceException
SecurityException
public void removeUser(Long userID, Session s) throws PersistenceException, SecurityException
removeUser
in interface Group
PersistenceException
SecurityException
public void removeUser(User usr, Session s) throws PersistenceException, SecurityException
removeUser
in interface Group
PersistenceException
SecurityException
public void objectCreated(ObjectModificationEvent e)
objectCreated
in interface ObjectModificationListener
public void objectModified(ObjectModificationEvent e)
objectModified
in interface ObjectModificationListener
public void objectDeleted(ObjectModificationEvent e)
objectDeleted
in interface ObjectModificationListener
public void processGateEvent(GateEvent e)
GateListener
processGateEvent
in interface GateListener
public 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 |