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 int
createInterests(Interests interests)
Interests
getInterestsById(int id)
List<Interests>
getInterestsByUserId(int userID)
void
removeInterestsById(int id)
void
removeInterestsById(List<Integer> ids, String userId)
void
updateInterests(Interests interests)
perform updates of provided Interests
-
-
-
Method Detail
-
getInterestsByUserId
public List<Interests> getInterestsByUserId(int userID)
- Specified by:
getInterestsByUserId
in interfaceInterestsService
- Parameters:
userID
- the user identifier- Returns:
- a list of
Interests
s by user id provided
-
getInterestsById
public Interests getInterestsById(int id)
- Specified by:
getInterestsById
in interfaceInterestsService
- Parameters:
id
-Interests
identifier- Returns:
- Interests by its id
-
createInterests
public int createInterests(Interests interests)
- Specified by:
createInterests
in interfaceInterestsService
- Parameters:
interests
- interest center to create- Returns:
- id of
Interests
created
-
updateInterests
public void updateInterests(Interests interests)
Description copied from interface:InterestsService
perform updates of provided Interests- Specified by:
updateInterests
in interfaceInterestsService
- Parameters:
interests
- interest center to update
-
removeInterestsById
public void removeInterestsById(List<Integer> ids, String userId)
- Specified by:
removeInterestsById
in interfaceInterestsService
- Parameters:
ids
- ArrayList ofjava.lang.Integer
- id's ofInterests
s to be deleteduserId
- - current user Id
-
removeInterestsById
public void removeInterestsById(int id)
- Specified by:
removeInterestsById
in interfaceInterestsService
- Parameters:
id
- an id ofInterests
to be deleted
-
-