RichFaces Photoalbum 4.3.5.Final

org.richfaces.photoalbum.model.actions
Class ShelfAction

java.lang.Object
  extended by org.richfaces.photoalbum.model.actions.ShelfAction
All Implemented Interfaces:
IShelfAction

public class ShelfAction
extends Object
implements IShelfAction

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

Author:
Andrey Markhel

Constructor Summary
ShelfAction()
           
 
Method Summary
 void addShelf(Shelf shelf)
          Persist shelf entity to database
 void deleteShelf(Shelf shelf)
          Remove shelf entity from database
 void editShelf(Shelf shelf)
          Synchronize state of shelf entity with database
 List<Shelf> getPredefinedShelves()
          Return list of shared shelves(pre-defined)
 void resetShelf(Shelf shelf)
          Refresh state of given shelf
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ShelfAction

public ShelfAction()
Method Detail

addShelf

public void addShelf(Shelf shelf)
              throws PhotoAlbumException
Persist shelf entity to database

Specified by:
addShelf in interface IShelfAction
Parameters:
shelf - - shelf to add
Throws:
PhotoAlbumException

deleteShelf

public void deleteShelf(Shelf shelf)
                 throws PhotoAlbumException
Remove shelf entity from database

Specified by:
deleteShelf in interface IShelfAction
Parameters:
shelf - - shelf to delete
Throws:
PhotoAlbumException

editShelf

public void editShelf(Shelf shelf)
               throws PhotoAlbumException
Synchronize state of shelf entity with database

Specified by:
editShelf in interface IShelfAction
Parameters:
shelf - - shelf to Synchronize
Throws:
PhotoAlbumException

getPredefinedShelves

public List<Shelf> getPredefinedShelves()
Return list of shared shelves(pre-defined)

Specified by:
getPredefinedShelves in interface IShelfAction
Parameters:
shelf - - shelf to Synchronize

resetShelf

public void resetShelf(Shelf shelf)
Refresh state of given shelf

Specified by:
resetShelf in interface IShelfAction
Parameters:
shelf - - shelf to Synchronize

RichFaces Photoalbum 4.3.5.Final

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