com.stratelia.webactiv.organization
Class UserFavoriteSpaceDAOImpl

java.lang.Object
  extended by com.stratelia.webactiv.organization.UserFavoriteSpaceDAOImpl
All Implemented Interfaces:
UserFavoriteSpaceDAO

public class UserFavoriteSpaceDAOImpl
extends Object
implements UserFavoriteSpaceDAO


Constructor Summary
UserFavoriteSpaceDAOImpl()
           
 
Method Summary
 boolean addUserFavoriteSpace(UserFavoriteSpaceVO ufsVO)
          Add given User Favorite Space Value Object parameter in Database
 List<UserFavoriteSpaceVO> getListUserFavoriteSpace(String userId)
          Retrieve the list of user favorite space
 boolean removeUserFavoriteSpace(UserFavoriteSpaceVO ufsVO)
          Remove given User Favorite Space Value Object from Database remove one record if ufsVO.userId and ufsVO.spaceId is not null remove all ufsVO.spaceId if ufsVO.userId is null remove all ufsVO.userId if ufsVO.spaceId is null
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UserFavoriteSpaceDAOImpl

public UserFavoriteSpaceDAOImpl()
Method Detail

getListUserFavoriteSpace

public List<UserFavoriteSpaceVO> getListUserFavoriteSpace(String userId)
Description copied from interface: UserFavoriteSpaceDAO
Retrieve the list of user favorite space

Specified by:
getListUserFavoriteSpace in interface UserFavoriteSpaceDAO
Parameters:
userId - : the user identifier
Returns:
the list of User Favorite Space Value Object

addUserFavoriteSpace

public boolean addUserFavoriteSpace(UserFavoriteSpaceVO ufsVO)
Description copied from interface: UserFavoriteSpaceDAO
Add given User Favorite Space Value Object parameter in Database

Specified by:
addUserFavoriteSpace in interface UserFavoriteSpaceDAO
Parameters:
ufsVO - a UserFavoriteSpaceVO
Returns:
true if action was successful, false else if

removeUserFavoriteSpace

public boolean removeUserFavoriteSpace(UserFavoriteSpaceVO ufsVO)
Description copied from interface: UserFavoriteSpaceDAO
Remove given User Favorite Space Value Object from Database

Specified by:
removeUserFavoriteSpace in interface UserFavoriteSpaceDAO
Parameters:
ufsVO - a UserFavoriteSpaceVO
Returns:
true if action was successful, false else if


Copyright © 2016 Silverpeas. All Rights Reserved.