|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--gate.security.GroupImpl
Field Summary | |
private AccessControllerImpl |
ac
--- |
private Connection |
conn
--- |
private int |
dbType
--- |
private Long |
id
--- |
private String |
name
--- |
private Vector |
omCreationListeners
--- |
private Vector |
omDeletionListeners
--- |
private Vector |
omModificationListeners
--- |
private List |
users
--- |
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. |
private void |
fireObjectModifiedEvent(ObjectModificationEvent e)
|
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)
--- |
(package private) void |
setUsers(Vector userIDs)
|
void |
unregisterObjectModificationListener(ObjectModificationListener l,
int eventType)
|
Methods inherited from class java.lang.Object |
|
Field Detail |
private Long id
private String name
private List users
private Connection conn
private int dbType
private AccessControllerImpl ac
private Vector omModificationListeners
private Vector omCreationListeners
private Vector omDeletionListeners
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
public void addUser(Long userID, Session s) throws PersistenceException, SecurityException
addUser
in interface Group
public void addUser(User usr, Session s) throws PersistenceException, SecurityException
addUser
in interface Group
public void removeUser(Long userID, Session s) throws PersistenceException, SecurityException
removeUser
in interface Group
public void removeUser(User usr, Session s) throws PersistenceException, SecurityException
removeUser
in interface Group
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)
private void fireObjectModifiedEvent(ObjectModificationEvent e)
public void unregisterObjectModificationListener(ObjectModificationListener l, int eventType)
void setUsers(Vector userIDs)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |