Interface InterestsService
-
- All Known Implementing Classes:
DefaultInterestsService
public interface InterestsService
Transverse business service on the interests' users.
-
-
Method Summary
All Methods Instance Methods Abstract 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
List<Interests> getInterestsByUserId(int userID)
- Parameters:
userID
- the user identifier- Returns:
- a list of
Interests
s by user id provided
-
getInterestsById
Interests getInterestsById(int id)
- Parameters:
id
-Interests
identifier- Returns:
- Interests by its id
-
createInterests
int createInterests(Interests interests)
- Parameters:
interests
- interest center to create- Returns:
- id of
Interests
created
-
updateInterests
void updateInterests(Interests interests)
perform updates of provided Interests- Parameters:
interests
- interest center to update
-
removeInterestsById
void removeInterestsById(List<Integer> ids, String userId)
- Parameters:
ids
- ArrayList ofjava.lang.Integer
- id's ofInterests
s to be deleteduserId
- - current user Id
-
removeInterestsById
void removeInterestsById(int id)
- Parameters:
id
- an id ofInterests
to be deleted
-
-