Examples of PhotoAlbumException


Examples of org.richfaces.photoalbum.util.PhotoAlbumException

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

Examples of org.richfaces.photoalbum.util.PhotoAlbumException

        try {
            em.persist(album);
            album.getShelf().addAlbum(album);
            em.flush();
        } catch (Exception e) {
            throw new PhotoAlbumException(e.getMessage());
        }
    }
View Full Code Here

Examples of org.richfaces.photoalbum.util.PhotoAlbumException

            em.flush();

            album.setShelf(parentShelf);
        } catch (Exception e) {
            parentShelf.addAlbum(album);
            throw new PhotoAlbumException(e.getMessage());
        }
    }
View Full Code Here

Examples of org.richfaces.photoalbum.util.PhotoAlbumException

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

Examples of org.richfaces.photoalbum.util.PhotoAlbumException

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

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

Examples of org.richfaces.photoalbum.util.PhotoAlbumException

    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

Examples of org.richfaces.photoalbum.util.PhotoAlbumException

    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

Examples of org.richfaces.photoalbum.util.PhotoAlbumException

    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
Copyright © 2018 www.massapi.com. 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.