]> git.mxchange.org Git - juser-login-lib.git/blobdiff - src/org/mxchange/jusercore/model/user/UserSessionBeanRemote.java
changed to ChangeableEmailAddress
[juser-login-lib.git] / src / org / mxchange / jusercore / model / user / UserSessionBeanRemote.java
index ae8e9251787b1b7854ac20c3cc20dc5cb53735bb..4acac2c5dcbd74ae4a5c65dcdd33143294b93cd6 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2015 Roland Haeder
+ * Copyright (C) 2016 Roland Haeder
  *
  * This program is free software: you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -28,6 +28,21 @@ import javax.ejb.Remote;
 @Remote
 public interface UserSessionBeanRemote extends Serializable {
 
+       /**
+        * Returns a list with all public and member-visible users. Members are
+        * logged-in users. ;-)
+        * <p>
+        * @return A list of public and member-visible users
+        */
+       List<User> allMemberPublicVisibleUsers ();
+
+       /**
+        * Returns a list of all public user profiles
+        * <p>
+        * @return A list of all public user profiles
+        */
+       List<User> allPublicUsers ();
+
        /**
         * Fills given user instance with all available data
         * <p>
@@ -35,21 +50,30 @@ public interface UserSessionBeanRemote extends Serializable {
         * <p>
         * @return Prepared User instance
         */
-       public User fillUserData (final User user);
+       User fillUserData (final User user);
 
        /**
         * Some "getter" for a full user name list
         * <p>
         * @return User name list
         */
-       public List<String> getUserNameList ();
+       List<String> getUserNameList ();
 
        /**
         * Some "getter" for a full email address list
         * <p>
         * @return User name list
         */
-       public List<String> getEmailAddressList ();
+       List<String> getEmailAddressList ();
+
+       /**
+        * Checks if given user id exists
+        * <p>
+        * @param userId User id to check
+        * <p>
+        * @return Whether the user id exists
+        */
+       boolean ifUserIdExists (final Long userId);
 
        /**
         * Checks if the the given user's name is already registered
@@ -58,7 +82,7 @@ public interface UserSessionBeanRemote extends Serializable {
         * <p>
         * @return Whether the user is already registered
         */
-       public boolean isUserNameReqistered (final User user);
+       boolean isUserNameReqistered (final User user);
 
        /**
         * Checks if the the given user's email address is already registered
@@ -67,5 +91,13 @@ public interface UserSessionBeanRemote extends Serializable {
         * <p>
         * @return Whether the user is already registered
         */
-       public boolean isEmailAddressReqistered (final User user);
+       boolean isEmailAddressReqistered (final User user);
+
+       /**
+        * Updates given user instance in database
+        * <p>
+        * @param user User instance to update
+        */
+       void updateUserPersonalData (final User user);
+
 }