RichFaces Photoalbum 4.3.5.Final

org.richfaces.photoalbum.model.actions
Class AlbumAction

java.lang.Object
  extended by org.richfaces.photoalbum.model.actions.AlbumAction
All Implemented Interfaces:
IAlbumAction

public class AlbumAction
extends Object
implements IAlbumAction

Class for manipulating with album entity. Analogous to DAO pattern. EJB3 Bean

Author:
Andrey Markhel

Constructor Summary
AlbumAction()
           
 
Method Summary
 void addAlbum(Album album)
          Persist album entity to database
 void deleteAlbum(Album album)
          Remove album entity from database
 void editAlbum(Album album)
          Synchronize state of album entity with database
 Album resetAlbum(Album album)
          Refresh state of given album
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AlbumAction

public AlbumAction()
Method Detail

addAlbum

public void addAlbum(Album album)
              throws PhotoAlbumException
Persist album entity to database

Specified by:
addAlbum in interface IAlbumAction
Parameters:
album - - album to add
Throws:
PhotoAlbumException

deleteAlbum

public void deleteAlbum(Album album)
                 throws PhotoAlbumException
Remove album entity from database

Specified by:
deleteAlbum in interface IAlbumAction
Parameters:
album - - album to delete
Throws:
PhotoAlbumException

editAlbum

public void editAlbum(Album album)
               throws PhotoAlbumException
Synchronize state of album entity with database

Specified by:
editAlbum in interface IAlbumAction
Parameters:
album - - album to Synchronize
Throws:
PhotoAlbumException

resetAlbum

public Album resetAlbum(Album album)
Refresh state of given album

Specified by:
resetAlbum in interface IAlbumAction
Parameters:
album - - album to Synchronize

RichFaces Photoalbum 4.3.5.Final

Copyright © 2014 JBoss by Red Hat. All Rights Reserved.