public List<Group> getGroups(Long userId) throws ObjectNotFoundException;
/**
+ * Retrieves the root folder id for the specified user. The caller must ensure
+ * that the userId exists.
+ *
+ * @param userId
+ * @return Long The id
+ * @throws ObjectNotFoundException if no Folder was found
+ */
+ public Long getRootFolderId(final Long userId) throws ObjectNotFoundException;
+
+ /**
* Retrieves the root folder for the specified user. The caller must ensure
* that the userId exists.
*
* @return a list of last user login and the current session user login
*/
public List<UserLogin> getAllLoginsForUser (Long userId);
+
+ /**
+ * Returns the user matching with the specified username
+ *
+ * @param username the email of the User
+ * @return User
+ */
+ public User getUserByUserName(String username);
}