com.liferay.portlet.social.util.test
Class SocialActivityTestUtil
java.lang.Object
com.liferay.portlet.social.util.test.SocialActivityTestUtil
public class SocialActivityTestUtil
- extends Object
|
Method Summary |
static void |
addActivity(User user,
Group group,
AssetEntry assetEntry,
int type)
|
static void |
addActivity(User user,
Group group,
AssetEntry assetEntry,
int type,
String extraData)
|
static AssetEntry |
addAssetEntry(User user,
Group group)
|
static AssetEntry |
addAssetEntry(User user,
Group group,
AssetEntry assetEntry)
|
static String |
createExtraDataJSON(String key,
String value)
|
static SocialActivityCounter |
getActivityCounter(long groupId,
String name,
Object owner)
|
static SocialActivityLimit |
getActivityLimit(long groupId,
User user,
AssetEntry assetEntry,
int activityType,
String activityCounterName)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SocialActivityTestUtil
public SocialActivityTestUtil()
addActivity
public static void addActivity(User user,
Group group,
AssetEntry assetEntry,
int type)
throws Exception
- Throws:
Exception
addActivity
public static void addActivity(User user,
Group group,
AssetEntry assetEntry,
int type,
String extraData)
throws Exception
- Throws:
Exception
addAssetEntry
public static AssetEntry addAssetEntry(User user,
Group group)
throws Exception
- Throws:
Exception
addAssetEntry
public static AssetEntry addAssetEntry(User user,
Group group,
AssetEntry assetEntry)
throws Exception
- Throws:
Exception
createExtraDataJSON
public static String createExtraDataJSON(String key,
String value)
getActivityCounter
public static SocialActivityCounter getActivityCounter(long groupId,
String name,
Object owner)
throws Exception
- Throws:
Exception
getActivityLimit
public static SocialActivityLimit getActivityLimit(long groupId,
User user,
AssetEntry assetEntry,
int activityType,
String activityCounterName)
throws Exception
- Throws:
Exception