]> git.mxchange.org Git - addressbook-war.git/commitdiff
Continued:
authorRoland Haeder <roland@mxchange.org>
Fri, 9 Oct 2015 19:36:03 +0000 (21:36 +0200)
committerRoland Haeder <roland@mxchange.org>
Fri, 9 Oct 2015 19:36:03 +0000 (21:36 +0200)
- Bean method addAddressbook() should be "basicly finished"
- Same for isAddressbookNameUsed()
- renamed isLoggedIn() to isUserLoggedIn() to make it more clear

src/java/org/mxchange/addressbook/beans/addressbook/AddressbookWebController.java
src/java/org/mxchange/addressbook/beans/login/UserLoginWebBean.java
src/java/org/mxchange/addressbook/beans/login/UserLoginWebController.java

index 56af2ea788fa4ad3a3f42fac5a3f5c5303494f43..d4adf21823cd67d62ad4b608b1054155af51a37a 100644 (file)
@@ -52,4 +52,13 @@ public interface AddressbookWebController extends Serializable {
         * @param addressbookName Address book name
         */
        public void setAddressbookName(final String addressbookName);
+
+       /**
+        * Checks if the given address book name is already used by the user.
+        * <p>
+        * @param addressbookName Address book name to check
+        * <p>
+        * @return Whether the name has already been used by the user
+        */
+       public boolean isAddressbookNameUsed(final String addressbookName);
 }
index feff2584004e62bcd4379aea9e1bfc6fbb07b479..a145db84c3deb3ea242944ff989f0e9221d447a2 100644 (file)
@@ -107,7 +107,7 @@ public class UserLoginWebBean implements UserLoginWebController {
        }
 
        @Override
-       public boolean isLoggedIn () {
+       public boolean isUserLoggedIn () {
                // Compare instance
                return (this.getLoggedInUser() instanceof User);
        }
index 89e5184653b8c8213f2b46c449efccb2a4bbdc97..ff8adf557ab0018365f5d577687865f6bdfc8155 100644 (file)
@@ -52,5 +52,5 @@ public interface UserLoginWebController extends Serializable {
         * <p>
         * @return Whether the user is logged-in
         */
-       public boolean isLoggedIn ();
+       public boolean isUserLoggedIn ();
 }