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(com.liferay.portal.kernel.model.User user,
com.liferay.portal.kernel.model.Group group,
com.liferay.asset.kernel.model.AssetEntry assetEntry,
int type)
|
static void |
addActivity(com.liferay.portal.kernel.model.User user,
com.liferay.portal.kernel.model.Group group,
com.liferay.asset.kernel.model.AssetEntry assetEntry,
int type,
String extraData)
|
static com.liferay.asset.kernel.model.AssetEntry |
addAssetEntry(com.liferay.portal.kernel.model.User user,
com.liferay.portal.kernel.model.Group group)
|
static com.liferay.asset.kernel.model.AssetEntry |
addAssetEntry(com.liferay.portal.kernel.model.User user,
com.liferay.portal.kernel.model.Group group,
com.liferay.asset.kernel.model.AssetEntry assetEntry)
|
static String |
createExtraDataJSON(String key,
String value)
|
static com.liferay.social.kernel.model.SocialActivityCounter |
getActivityCounter(long groupId,
String name,
Object owner)
|
static com.liferay.social.kernel.model.SocialActivityLimit |
getActivityLimit(long groupId,
com.liferay.portal.kernel.model.User user,
com.liferay.asset.kernel.model.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(com.liferay.portal.kernel.model.User user,
com.liferay.portal.kernel.model.Group group,
com.liferay.asset.kernel.model.AssetEntry assetEntry,
int type)
throws Exception
- Throws:
Exception
addActivity
public static void addActivity(com.liferay.portal.kernel.model.User user,
com.liferay.portal.kernel.model.Group group,
com.liferay.asset.kernel.model.AssetEntry assetEntry,
int type,
String extraData)
throws Exception
- Throws:
Exception
addAssetEntry
public static com.liferay.asset.kernel.model.AssetEntry addAssetEntry(com.liferay.portal.kernel.model.User user,
com.liferay.portal.kernel.model.Group group)
throws Exception
- Throws:
Exception
addAssetEntry
public static com.liferay.asset.kernel.model.AssetEntry addAssetEntry(com.liferay.portal.kernel.model.User user,
com.liferay.portal.kernel.model.Group group,
com.liferay.asset.kernel.model.AssetEntry assetEntry)
throws Exception
- Throws:
Exception
createExtraDataJSON
public static String createExtraDataJSON(String key,
String value)
getActivityCounter
public static com.liferay.social.kernel.model.SocialActivityCounter getActivityCounter(long groupId,
String name,
Object owner)
throws Exception
- Throws:
Exception
getActivityLimit
public static com.liferay.social.kernel.model.SocialActivityLimit getActivityLimit(long groupId,
com.liferay.portal.kernel.model.User user,
com.liferay.asset.kernel.model.AssetEntry assetEntry,
int activityType,
String activityCounterName)
throws Exception
- Throws:
Exception