/** * Removes an USM user from the internal user name table. * * @param engineID * the authoritative engine ID associated with the user, or * {@code null} * @param userName * a user name. * * @return the removed {@code UsmUser} instance associate with the given * {@code userName} or {@code null} if such a user could not * be found. * @deprecated If the engineID {@code null} is provided this method does only * delete the generic user. All already localized users will not be deleted. * To delete those users too, use {@link #removeAllUsers(OctetString, OctetString)} instead. */ @Deprecated public UsmUser removeUser(OctetString engineID, OctetString userName) { UsmUserEntry entry = userTable.removeUser(engineID, userName); if (entry != null) { fireUsmUserChange(new UsmUserEvent(this, entry, UsmUserEvent.USER_REMOVED)); return entry.getUsmUser(); } return null; }
/** * Removes an USM user from the internal user name table. * @param engineID * the authoritative engine ID associated with the user, or * <code>null</code> * @param userName * a user name. * @return * the removed <code>UsmUser</code> instance associate with the given * <code>userName</code> or <code>null</code> if such a user could not * be found. */ public UsmUser removeUser(OctetString engineID, OctetString userName) { UsmUserEntry entry = userTable.removeUser(engineID, userName); if (entry != null) { fireUsmUserChange(new UsmUserEvent(this, entry, UsmUserEvent.USER_REMOVED)); return entry.getUsmUser(); } return null; }
/** * Removes an USM user from the internal user name table. * @param engineID * the authoritative engine ID associated with the user, or * {@code null} * @param userName * a user name. * @return * the removed {@code UsmUser} instance associate with the given * {@code userName} or {@code null} if such a user could not * be found. * @deprecated * If the engineID {@code null} is provided this method does only * delete the generic user. All already localized users will not be deleted. * To delete those users too, use {@link #removeAllUsers()} instead. */ public UsmUser removeUser(OctetString engineID, OctetString userName) { UsmUserEntry entry = userTable.removeUser(engineID, userName); if (entry != null) { fireUsmUserChange(new UsmUserEvent(this, entry, UsmUserEvent.USER_REMOVED)); return entry.getUsmUser(); } return null; }