Class ServiceContextTestUtil

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

public class ServiceContextTestUtil extends Object
Author:
Manuel de la Peña
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static com.liferay.portal.kernel.service.ServiceContext
     
    static com.liferay.portal.kernel.service.ServiceContext
    getServiceContext(long groupId)
     
    static com.liferay.portal.kernel.service.ServiceContext
    getServiceContext(long groupId, long userId)
     
    static com.liferay.portal.kernel.service.ServiceContext
    getServiceContext(long companyId, long groupId, long userId)
     
    static com.liferay.portal.kernel.service.ServiceContext
    getServiceContext(long groupId, long userId, long[] assetCategoryIds)
     
    static com.liferay.portal.kernel.service.ServiceContext
    getServiceContext(long groupId, long userId, long[] assetCategoryIds, String[] assetTagNames)
     
    static com.liferay.portal.kernel.service.ServiceContext
    getServiceContext(long companyId, long groupId, long userId, long[] assetCategoryIds, String[] assetTagNames)
     
    static com.liferay.portal.kernel.service.ServiceContext
    getServiceContext(long groupId, long userId, String[] assetTagNames)
     
    static com.liferay.portal.kernel.service.ServiceContext
    getServiceContext(com.liferay.portal.kernel.model.Group group, long userId)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ServiceContextTestUtil

      public ServiceContextTestUtil()
  • Method Details

    • getServiceContext

      public static com.liferay.portal.kernel.service.ServiceContext getServiceContext() throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getServiceContext

      public static com.liferay.portal.kernel.service.ServiceContext getServiceContext(com.liferay.portal.kernel.model.Group group, long userId) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getServiceContext

      public static com.liferay.portal.kernel.service.ServiceContext getServiceContext(long groupId) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getServiceContext

      public static com.liferay.portal.kernel.service.ServiceContext getServiceContext(long groupId, long userId) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getServiceContext

      public static com.liferay.portal.kernel.service.ServiceContext getServiceContext(long companyId, long groupId, long userId) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getServiceContext

      public static com.liferay.portal.kernel.service.ServiceContext getServiceContext(long companyId, long groupId, long userId, long[] assetCategoryIds, String[] assetTagNames) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getServiceContext

      public static com.liferay.portal.kernel.service.ServiceContext getServiceContext(long groupId, long userId, long[] assetCategoryIds) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getServiceContext

      public static com.liferay.portal.kernel.service.ServiceContext getServiceContext(long groupId, long userId, long[] assetCategoryIds, String[] assetTagNames) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getServiceContext

      public static com.liferay.portal.kernel.service.ServiceContext getServiceContext(long groupId, long userId, String[] assetTagNames) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException