Interface UserManagementAdapter
public interface UserManagementAdapter
Adapter to implement for user storage operations.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
deleteUser
(net.andresbustamante.yafoot.users.model.User user, net.andresbustamante.yafoot.commons.model.UserContext context) Deletes an existing user.void
updateUser
(net.andresbustamante.yafoot.users.model.User user, net.andresbustamante.yafoot.commons.model.UserContext context) Updates an existing user.
-
Method Details
-
updateUser
void updateUser(net.andresbustamante.yafoot.users.model.User user, net.andresbustamante.yafoot.commons.model.UserContext context) throws net.andresbustamante.yafoot.commons.exceptions.DirectoryException Updates an existing user.- Parameters:
user
- User to updatecontext
- User context- Throws:
net.andresbustamante.yafoot.commons.exceptions.DirectoryException
- When a problem comes from the storage layer
-
deleteUser
void deleteUser(net.andresbustamante.yafoot.users.model.User user, net.andresbustamante.yafoot.commons.model.UserContext context) throws net.andresbustamante.yafoot.commons.exceptions.DirectoryException Deletes an existing user.- Parameters:
user
- User to delete.context
- User context- Throws:
net.andresbustamante.yafoot.commons.exceptions.DirectoryException
- When a problem comes from the storage layer
-