X-Git-Url: https://code.grnet.gr/git/pithos/blobdiff_plain/f5684a19dca43a280e033fb3ba3776883cb1d548..6c84fd2430adddd0733fdedc95b612befa6777c1:/src/gr/ebs/gss/server/ejb/GSSDAO.java diff --git a/src/gr/ebs/gss/server/ejb/GSSDAO.java b/src/gr/ebs/gss/server/ejb/GSSDAO.java index 77804de..2e5872f 100644 --- a/src/gr/ebs/gss/server/ejb/GSSDAO.java +++ b/src/gr/ebs/gss/server/ejb/GSSDAO.java @@ -95,6 +95,16 @@ public interface GSSDAO { public List 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. * @@ -514,8 +524,19 @@ public interface GSSDAO { public List getLoginsForUser (Long userId); /** - * + * Returns a list of all entries related to the date that a user logged in the service. + * + * @param userId + * @return a list of last user login and the current session user login + */ + public List getAllLoginsForUser (Long userId); + + /** + * Returns the user matching with the specified username + * + * @param username the email of the User + * @return User */ - void fixSharedFlagForAllFoldersAndFiles(); + public User getUserByUserName(String username); }