Class DefaultInterestsService
- java.lang.Object
-
- org.silverpeas.core.pdc.interests.service.DefaultInterestsService
-
- All Implemented Interfaces:
InterestsService
@Service @Singleton public class DefaultInterestsService extends Object implements InterestsService
Default implementation of the service on the interest centers of users.- See Also:
InterestsService
-
-
Constructor Summary
Constructors Constructor Description DefaultInterestsService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcreateInterests(Interests interests)InterestsgetInterestsById(int id)List<Interests>getInterestsByUserId(int userID)voidremoveInterestsById(int id)voidremoveInterestsById(List<Integer> ids, String userId)voidupdateInterests(Interests interests)perform updates of provided Interests
-
-
-
Method Detail
-
getInterestsByUserId
public List<Interests> getInterestsByUserId(int userID)
- Specified by:
getInterestsByUserIdin interfaceInterestsService- Parameters:
userID- the user identifier- Returns:
- a list of
Interestss by user id provided
-
getInterestsById
public Interests getInterestsById(int id)
- Specified by:
getInterestsByIdin interfaceInterestsService- Parameters:
id-Interestsidentifier- Returns:
- Interests by its id
-
createInterests
public int createInterests(Interests interests)
- Specified by:
createInterestsin interfaceInterestsService- Parameters:
interests- interest center to create- Returns:
- id of
Interestscreated
-
updateInterests
public void updateInterests(Interests interests)
Description copied from interface:InterestsServiceperform updates of provided Interests- Specified by:
updateInterestsin interfaceInterestsService- Parameters:
interests- interest center to update
-
removeInterestsById
public void removeInterestsById(List<Integer> ids, String userId)
- Specified by:
removeInterestsByIdin interfaceInterestsService- Parameters:
ids- ArrayList ofjava.lang.Integer- id's ofInterestss to be deleteduserId- - current user Id
-
removeInterestsById
public void removeInterestsById(int id)
- Specified by:
removeInterestsByIdin interfaceInterestsService- Parameters:
id- an id ofIntereststo be deleted
-
-