]> git.mxchange.org Git - jaddressbook-lib.git/commitdiff
moved out to new project jaddressbook-share-lib
authorRoland Häder <roland@mxchange.org>
Thu, 27 Apr 2017 12:26:01 +0000 (14:26 +0200)
committerRoland Häder <roland@mxchange.org>
Thu, 27 Apr 2017 12:26:01 +0000 (14:26 +0200)
Signed-off-by: Roland Häder <roland@mxchange.org>
nbproject/project.properties
src/org/mxchange/addressbook/model/addressbook/AddressbookSessionBeanRemote.java
src/org/mxchange/addressbook/model/shared/SharedAddressbooksSessionBeanRemote.java [deleted file]

index 48242fee4285923b0ab7a993e30232e79134f260..6401aaf0a77aee5a41648651029d50f80b86e550 100644 (file)
@@ -67,7 +67,7 @@ javadoc.private=true
 javadoc.splitindex=true
 javadoc.use=true
 javadoc.version=true
-javadoc.windowtitle=Addressbook Library
+javadoc.windowtitle=Addressbook Remote Interfaces
 jnlp.codebase.type=no.codebase
 jnlp.descriptor=application
 jnlp.enabled=false
index 2c8dfc9f95251c54d7c1ff9dfaff9e078627992f..a03966d578284644557d36b2875d0a0e19c0b95c 100644 (file)
@@ -19,10 +19,10 @@ package org.mxchange.addressbook.model.addressbook;
 import java.io.Serializable;
 import java.util.List;
 import javax.ejb.Remote;
-import org.mxchange.jaddressbookcore.exceptions.AddressbookNameAlreadyUsedException;
-import org.mxchange.jaddressbookcore.exceptions.AddressbookNotFoundException;
-import org.mxchange.jaddressbookcore.model.addressbook.Addressbook;
-import org.mxchange.jaddressbookcore.model.addressbook.entry.AddressbookEntry;
+import org.mxchange.jaddressbook.exceptions.AddressbookNameAlreadyUsedException;
+import org.mxchange.jaddressbook.exceptions.AddressbookNotFoundException;
+import org.mxchange.jaddressbook.model.addressbook.Addressbook;
+import org.mxchange.jaddressbook.model.addressbook.entry.AddressbookEntry;
 import org.mxchange.jusercore.model.user.User;
 
 /**
@@ -33,26 +33,6 @@ import org.mxchange.jusercore.model.user.User;
 @Remote
 public interface AddressbookSessionBeanRemote extends Serializable {
 
-       /**
-        * Retrieves a list of all users this user is not sharing the given address
-        * book with.
-        * <p>
-        * @param user User instance
-        * @param addressbook Address book instance
-        * <p>
-        * @return List of users
-        */
-       List<User> allUsersNotSharing (final User user, final Addressbook addressbook);
-
-       /**
-        * Count all shared address books by given user
-        * <p>
-        * @param user User instance
-        * <p>
-        * @return Count of all user's shared address books
-        */
-       Integer countAllUserSharedAddressbooks (final User user);
-
        /**
         * Some getter for an address book instance from given id number. If the
         * address book is not found, an exception is thrown.
diff --git a/src/org/mxchange/addressbook/model/shared/SharedAddressbooksSessionBeanRemote.java b/src/org/mxchange/addressbook/model/shared/SharedAddressbooksSessionBeanRemote.java
deleted file mode 100644 (file)
index e27d89c..0000000
+++ /dev/null
@@ -1,70 +0,0 @@
-/*
- * Copyright (C) 2016 Roland Häder
- *
- * 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
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program.  If not, see <http://www.gnu.org/licenses/>.
- */
-package org.mxchange.addressbook.model.shared;
-
-import java.io.Serializable;
-import java.util.List;
-import javax.ejb.Remote;
-import org.mxchange.jaddressbookcore.exceptions.UserAlreadySharingAddressbookException;
-import org.mxchange.jaddressbookcore.model.addressbook.Addressbook;
-import org.mxchange.jaddressbookcore.model.addressbook.shared.ShareableAddressbook;
-import org.mxchange.jusercore.model.user.User;
-
-/**
- * A remote interface for sharing address books
- * <p>
- * @author Roland Häder<roland@mxchange.org>
- */
-@Remote
-public interface SharedAddressbooksSessionBeanRemote extends Serializable {
-
-       /**
-        * Retrieves a list of all user's shared address books. The list contains
-        * only the shares. But the address books and sharee can be easily
-        * extracted.
-        * <p>
-        * @param user User instance to get list of shared address books (shares)
-        * from
-        * <p>
-        * @return List of shares (= shared address book entries)
-        */
-       List<ShareableAddressbook> allSharedAddressbooks (final User user);
-
-       /**
-        * Starts an address book share between currently logged-in user and
-        * assigned user for current address book.
-        * <p>
-        * @param sharee User sharee instance
-        * @param addressbook Address book instance
-        * <p>
-        * @return Updated share instance
-        * <p>
-        * @throws UserAlreadySharingAddressbookException When the user is already
-        * sharing the address book
-        */
-       ShareableAddressbook startSharing (final User sharee, final Addressbook addressbook) throws UserAlreadySharingAddressbookException;
-
-       /**
-        * Checks if the given user is sharing address books with others
-        * <p>
-        * @param user User instance
-        *
-        * @return Whether the user is sharing address books
-        */
-       Boolean isUserSharingAddressbooks (final User user);
-
-}