public class SocialActivityManagerImpl<T extends com.liferay.portal.kernel.model.ClassedModel & com.liferay.portal.kernel.model.GroupedModel>
extends Object
implements com.liferay.portal.kernel.social.SocialActivityManager<T>
Constructor and Description |
---|
SocialActivityManagerImpl(com.liferay.portal.kernel.social.SocialActivityManager<T> defaultSocialActivityManager) |
Modifier and Type | Method and Description |
---|---|
void |
addActivity(long userId,
T model,
int type,
String extraData,
long receiverUserId) |
void |
addUniqueActivity(long userId,
Date createDate,
T model,
int type,
String extraData,
long receiverUserId) |
void |
addUniqueActivity(long userId,
T model,
int type,
String extraData,
long receiverUserId) |
void |
deleteActivities(T model) |
protected com.liferay.portal.kernel.social.SocialActivityManager<T> |
getSocialActivityManager(String className) |
void |
updateLastSocialActivity(long userId,
T model,
int type,
Date createDate) |
public SocialActivityManagerImpl(com.liferay.portal.kernel.social.SocialActivityManager<T> defaultSocialActivityManager)
public void addActivity(long userId, T model, int type, String extraData, long receiverUserId) throws com.liferay.portal.kernel.exception.PortalException
addActivity
in interface com.liferay.portal.kernel.social.SocialActivityManager<T extends com.liferay.portal.kernel.model.ClassedModel & com.liferay.portal.kernel.model.GroupedModel>
com.liferay.portal.kernel.exception.PortalException
public void addUniqueActivity(long userId, Date createDate, T model, int type, String extraData, long receiverUserId) throws com.liferay.portal.kernel.exception.PortalException
addUniqueActivity
in interface com.liferay.portal.kernel.social.SocialActivityManager<T extends com.liferay.portal.kernel.model.ClassedModel & com.liferay.portal.kernel.model.GroupedModel>
com.liferay.portal.kernel.exception.PortalException
public void addUniqueActivity(long userId, T model, int type, String extraData, long receiverUserId) throws com.liferay.portal.kernel.exception.PortalException
addUniqueActivity
in interface com.liferay.portal.kernel.social.SocialActivityManager<T extends com.liferay.portal.kernel.model.ClassedModel & com.liferay.portal.kernel.model.GroupedModel>
com.liferay.portal.kernel.exception.PortalException
public void deleteActivities(T model) throws com.liferay.portal.kernel.exception.PortalException
deleteActivities
in interface com.liferay.portal.kernel.social.SocialActivityManager<T extends com.liferay.portal.kernel.model.ClassedModel & com.liferay.portal.kernel.model.GroupedModel>
com.liferay.portal.kernel.exception.PortalException
public void updateLastSocialActivity(long userId, T model, int type, Date createDate) throws com.liferay.portal.kernel.exception.PortalException
updateLastSocialActivity
in interface com.liferay.portal.kernel.social.SocialActivityManager<T extends com.liferay.portal.kernel.model.ClassedModel & com.liferay.portal.kernel.model.GroupedModel>
com.liferay.portal.kernel.exception.PortalException
protected com.liferay.portal.kernel.social.SocialActivityManager<T> getSocialActivityManager(String className)