Class InterestsManager
- java.lang.Object
-
- org.silverpeas.core.pdc.interests.service.InterestsManager
-
public class InterestsManager extends Object
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
InterestsManager()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
createInterests(Interests interests)
Method createInterests creates new Interestsstatic InterestsManager
getInstance()
Interests
getInterestsById(int id)
Method getInterestsByPK returns Interest Center given by idList<Interests>
getInterestsByUserId(int userId)
Method getInterestsByUserId returns ArrayList of all Interests objects for user given by userIdint
isInterestsExists(String interestsName, int userId)
Method isInterestsExists returns true if interests with the given name is already exists, false in other case
-
-
-
Method Detail
-
getInstance
public static final InterestsManager getInstance()
-
getInterestsByUserId
public List<Interests> getInterestsByUserId(int userId)
Method getInterestsByUserId returns ArrayList of all Interests objects for user given by userId
-
getInterestsById
public Interests getInterestsById(int id)
Method getInterestsByPK returns Interest Center given by id
-
isInterestsExists
public int isInterestsExists(String interestsName, int userId)
Method isInterestsExists returns true if interests with the given name is already exists, false in other case
-
createInterests
public int createInterests(Interests interests)
Method createInterests creates new Interests
-
-