Liferay 7.0-ce-b4

com.liferay.portal.kernel.test.util
Class ServiceContextTestUtil

java.lang.Object
  extended by com.liferay.portal.kernel.test.util.ServiceContextTestUtil

public class ServiceContextTestUtil
extends Object


Constructor Summary
ServiceContextTestUtil()
           
 
Method Summary
static ServiceContext getServiceContext()
           
static ServiceContext getServiceContext(Group group, long userId)
           
static ServiceContext getServiceContext(long groupId)
           
static ServiceContext getServiceContext(long groupId, long userId)
           
static ServiceContext getServiceContext(long companyId, long groupId, long userId)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServiceContextTestUtil

public ServiceContextTestUtil()
Method Detail

getServiceContext

public static ServiceContext getServiceContext()
                                        throws PortalException
Throws:
PortalException

getServiceContext

public static ServiceContext getServiceContext(Group group,
                                               long userId)

getServiceContext

public static ServiceContext getServiceContext(long groupId)
                                        throws PortalException
Throws:
PortalException

getServiceContext

public static ServiceContext getServiceContext(long groupId,
                                               long userId)
                                        throws PortalException
Throws:
PortalException

getServiceContext

public static ServiceContext getServiceContext(long companyId,
                                               long groupId,
                                               long userId)

Liferay 7.0-ce-b4