|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.strutsme.wishlist.business.WishlistBusinessFacade
public final class WishlistBusinessFacade
The business facade for the wishlist.
| Method Summary | |
|---|---|
WishDto |
createWish()
Creates a new wish. |
void |
deleteWish(java.lang.String wishId)
Deletes an wish. |
static WishlistBusinessFacade |
getInstance()
Singleton accessor method. |
WishlistPersistenceFacade |
getPersistenceFacade()
Getter for persistenceFacade. |
UserDto |
getUserById(java.lang.String userId)
Returns a user with this id. |
UserDto |
getUserByName(java.lang.String userName)
Returns a user for this username. |
WishDto |
getWishById(java.lang.String wishId)
Returns the wish with this id. |
java.util.List |
getWishes()
Finds all wishes. |
java.lang.String |
saveWish(WishDto wish)
Persists the wish. |
void |
setPersistenceFacade(WishlistPersistenceFacade aPersistenceFacade)
Setter for the persistence facade. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public WishlistPersistenceFacade getPersistenceFacade()
throws BusinessException
BusinessException - if the wishlist facade can't be loaded.public void setPersistenceFacade(WishlistPersistenceFacade aPersistenceFacade)
aPersistenceFacade - a new persistenceFacadepublic static WishlistBusinessFacade getInstance()
public UserDto getUserById(java.lang.String userId)
throws BusinessException
userId - the id of user
BusinessException - the exception
public UserDto getUserByName(java.lang.String userName)
throws BusinessException
userName - the userName
BusinessException - the exception
public WishDto createWish()
throws BusinessException
BusinessException - the exception
public java.lang.String saveWish(WishDto wish)
throws BusinessException
wish - the wish to save
BusinessException - the exception
public void deleteWish(java.lang.String wishId)
throws BusinessException
wishId - key of the wish to delete
BusinessException - the exception
public WishDto getWishById(java.lang.String wishId)
throws BusinessException
wishId - the id of the wish
BusinessException - the exception
public java.util.List getWishes()
throws BusinessException
BusinessException - the exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||