]> SALOME platform Git repositories - modules/gde.git/commitdiff
Salome HOME
Added javadoc
authormordicus <mordicus@HP-8560w>
Mon, 3 Aug 2015 15:55:44 +0000 (17:55 +0200)
committermordicus <mordicus@HP-8560w>
Mon, 3 Aug 2015 15:55:44 +0000 (17:55 +0200)
projects/GDE_App/GDE-ejb/src/java/com/edf/gde/ejb/UserDAO.java

index 48016c0d5a18dbbff1b5a6a116e3f9a969b152eb..a36ce2fc9a4704f08c5f5adb735c5f673d08f9db 100644 (file)
@@ -74,6 +74,12 @@ public class UserDAO {
         return group;
     }
 
+    /**
+     *
+     * @param groupId
+     * @param userId
+     * @return
+     */
     public boolean addToGroup(long groupId, long userId) {
         if (!isInGroup(groupId, userId)) {
             UserGroup userGroup = new UserGroup();
@@ -85,6 +91,12 @@ public class UserDAO {
         return false;
     }
 
+    /**
+     *
+     * @param groupId
+     * @param userId
+     * @return
+     */
     public boolean removeFromGroup(long groupId, long userId) {
         Query q = em.createNamedQuery("UserGroup.findByGroupIdUserId");
         q.setParameter("groupId", groupId);
@@ -98,6 +110,12 @@ public class UserDAO {
         return true;
     }
 
+    /**
+     *
+     * @param groupId
+     * @param userId
+     * @return
+     */
     public boolean isInGroup(long groupId, long userId) {
         Query q = em.createNamedQuery("UserGroup.findByGroupIdUserId");
         q.setParameter("groupId", groupId);
@@ -123,10 +141,19 @@ public class UserDAO {
         return user;
     }
 
+    /**
+     *
+     * @param id
+     * @return
+     */
     public User findUser(long id) {
         return em.find(User.class, id);
     }
 
+    /**
+     *
+     * @param userId
+     */
     public void deleteUser(long userId) {
         User user = findUser(userId);
         if (user != null) {