com.stratelia.webactiv.organization
Class UserFavoriteSpaceDAOImpl
java.lang.Object
com.stratelia.webactiv.organization.UserFavoriteSpaceDAOImpl
- All Implemented Interfaces:
- UserFavoriteSpaceDAO
public class UserFavoriteSpaceDAOImpl
- extends Object
- implements UserFavoriteSpaceDAO
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UserFavoriteSpaceDAOImpl
public UserFavoriteSpaceDAOImpl()
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
- 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
- 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.