Package org.richfaces.photoalbum.util

Examples of org.richfaces.photoalbum.util.PhotoAlbumException


    public User updateUser(User user) throws PhotoAlbumException {
        try {
            em.merge(user);
            em.flush();
        } catch (Exception e) {
            throw new PhotoAlbumException(e.getMessage());
        }
        userBean.refreshUser();
        return userBean.getUser();
    }
View Full Code Here


    public void addEvent(Event event) throws PhotoAlbumException {
        try {
            em.persist(event);
            em.flush();
        } catch (Exception e) {
            throw new PhotoAlbumException(e.getMessage());
        }
    }
View Full Code Here

    public void deleteEvent(Event event) throws PhotoAlbumException {
        try {
            em.remove(em.merge(event));
            em.flush();
        } catch (Exception e) {
            throw new PhotoAlbumException(e.getMessage());
        }
    }
View Full Code Here

    public void editEvent(Event event) throws PhotoAlbumException {
        try {
            em.merge(event);
            em.flush();
        } catch (Exception e) {
            throw new PhotoAlbumException(e.getMessage());
        }
    }
View Full Code Here

TOP

Related Classes of org.richfaces.photoalbum.util.PhotoAlbumException

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.