Methods Summary |
---|
private void | reloadRealm(com.sun.enterprise.admin.event.UserMgmtEvent event)In this moment, user management is supported only in FileRealm.
The FileRealm will be refreshed in this case.
Other realms will throw Exception.
Administrative API may be factored out during JSR 196 implementation.
try {
String realmName = event.getAuthRealmName();
Realm realm = Realm.getInstance(realmName);
// should always true in this moment
if (realm instanceof FileRealm) {
SecuritySupport secSupp = SecurityUtil.getSecuritySupport();
secSupp.synchronizeKeyFile(event.getConfigContext(), realmName);
}
realm.refresh();
} catch(Exception ex) {
throw new AdminEventListenerException(ex);
}
|
public void | userAdded(com.sun.enterprise.admin.event.UserMgmtEvent event)user added.
It is called whenever a UserMgmtEvent with action of
UserMgmtEvent.ACTION_USERADD is received.
reloadRealm(event);
|
public void | userRemoved(com.sun.enterprise.admin.event.UserMgmtEvent event)user deleted.
It is called whenever a UserMgmtEvent with action of
UserMgmtEvent.ACTION_USERREMOVE is received.
reloadRealm(event);
|
public void | userUpdated(com.sun.enterprise.admin.event.UserMgmtEvent event)user updated (attributes change).
It is called whenever a UserMgmtEvent with action of
UserMgmtEvent.ACTION_USERUPDATE is received.
reloadRealm(event);
|