From cbcd49f2b96dffe359b99b8791ccfb62cbd4717f Mon Sep 17 00:00:00 2001 From: Gunther6070 Date: Wed, 26 Feb 2025 13:18:18 -0500 Subject: Updated and added more javadocs. Also modified updateUser method to take a string name to use to find desired user to update. --- .../src/main/java/com/ufund/api/ufundapi/persistence/UserDAO.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'ufund-api/src/main/java/com/ufund/api/ufundapi/persistence/UserDAO.java') diff --git a/ufund-api/src/main/java/com/ufund/api/ufundapi/persistence/UserDAO.java b/ufund-api/src/main/java/com/ufund/api/ufundapi/persistence/UserDAO.java index 5926214..d456abc 100644 --- a/ufund-api/src/main/java/com/ufund/api/ufundapi/persistence/UserDAO.java +++ b/ufund-api/src/main/java/com/ufund/api/ufundapi/persistence/UserDAO.java @@ -49,14 +49,15 @@ public interface UserDAO { /** * Updates and saves a {@linkplain User user} * - * @param user {@link User user} object to be updated and saved + * @param newUser {@link User user} object to be updated and saved + * @param name {@link String name} name of object to be updated * * @return updated {@link User user} if successful, null if * {@link User user} could not be found * * @throws IOException if underlying storage cannot be accessed */ - User updateUser(User user) throws IOException; + User updateUser(User newUser, String name) throws IOException; /** * Deletes a {@linkplain User user} with the given id -- cgit v1.2.3