Package org.springmodules.feedxt.domain.support

Examples of org.springmodules.feedxt.domain.support.UserNotExistentException


    public void subscribeToFeed(User user, FeedSubscription subscription) throws SubscriptionAlreadyExistentException, UserNotExistentException {
        if (this.userRepository.getUserByUsername(user.getUsername()) != null) {
            user.subscribe(subscription);
            this.userRepository.addUser(user);
        } else {
            throw new UserNotExistentException("User not found: " + user);
        }
    }
View Full Code Here


            if (removed) {
                this.userRepository.addUser(user);
            }
            return removed;
        } else {
            throw new UserNotExistentException("User not found: " + user);
        }
    }
View Full Code Here

    public FeedSubscription getUserSubscriptionByName(User user, String subscriptionName) throws UserNotExistentException {
        if (this.userRepository.getUserByUsername(user.getUsername()) != null) {
            FeedSubscription subscription = user.viewSubscriptionByName(subscriptionName);
            return subscription;
        } else {
            throw new UserNotExistentException("User not found: " + user);
        }
    }
View Full Code Here

TOP

Related Classes of org.springmodules.feedxt.domain.support.UserNotExistentException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.