public abstract class BaseSocialActivityManager<T extends ClassedModel & GroupedModel> extends Object implements SocialActivityManager<T>
Constructor and Description |
---|
BaseSocialActivityManager() |
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 String |
getClassName(T classedModel) |
protected long |
getPrimaryKey(T classedModel) |
protected abstract SocialActivityLocalService |
getSocialActivityLocalService() |
void |
updateLastSocialActivity(long userId,
T model,
int type,
Date createDate) |
public void addActivity(long userId, T model, int type, String extraData, long receiverUserId) throws PortalException
addActivity
in interface SocialActivityManager<T extends ClassedModel & GroupedModel>
PortalException
public void addUniqueActivity(long userId, Date createDate, T model, int type, String extraData, long receiverUserId) throws PortalException
addUniqueActivity
in interface SocialActivityManager<T extends ClassedModel & GroupedModel>
PortalException
public void addUniqueActivity(long userId, T model, int type, String extraData, long receiverUserId) throws PortalException
addUniqueActivity
in interface SocialActivityManager<T extends ClassedModel & GroupedModel>
PortalException
public void deleteActivities(T model) throws PortalException
deleteActivities
in interface SocialActivityManager<T extends ClassedModel & GroupedModel>
PortalException
public void updateLastSocialActivity(long userId, T model, int type, Date createDate)
updateLastSocialActivity
in interface SocialActivityManager<T extends ClassedModel & GroupedModel>
protected String getClassName(T classedModel)
protected long getPrimaryKey(T classedModel)
protected abstract SocialActivityLocalService getSocialActivityLocalService()