Class DLAppTestUtil

java.lang.Object
com.liferay.document.library.test.util.DLAppTestUtil

public abstract class DLAppTestUtil extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static com.liferay.portal.kernel.repository.model.FileEntry
    addFileEntry(long groupId)
     
    static com.liferay.portal.kernel.repository.model.FileEntry
    addFileEntry(long userId, long groupId, long repositoryId, long folderId)
     
    static com.liferay.portal.kernel.repository.model.FileEntry
    addFileEntry(com.liferay.portal.kernel.model.Repository repository)
     
    static com.liferay.portal.kernel.repository.model.FileEntry
    addFileEntry(com.liferay.portal.kernel.repository.model.Folder folder)
     
    static com.liferay.portal.kernel.repository.model.FileEntry
    addFileEntryWithWorkflow(long userId, long groupId, long folderId, String sourceFileName, String title, boolean approved, com.liferay.portal.kernel.service.ServiceContext serviceContext)
     
    static com.liferay.portal.kernel.repository.model.Folder
    addFolder(long groupId)
     
    static com.liferay.portal.kernel.repository.model.Folder
    addFolder(com.liferay.portal.kernel.model.Repository repository)
     
    static com.liferay.portal.kernel.model.Repository
    addRepository(long groupId)
     
    static void
    populateNotificationsServiceContext(com.liferay.portal.kernel.service.ServiceContext serviceContext, String command)
     
    static void
    populateServiceContext(com.liferay.portal.kernel.service.ServiceContext serviceContext, long fileEntryTypeId)
     
    protected static com.liferay.portal.kernel.repository.model.FileEntry
    updateStatus(com.liferay.portal.kernel.repository.model.FileEntry fileEntry, com.liferay.portal.kernel.service.ServiceContext serviceContext)
     

    Methods inherited from class java.lang.Object

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

    • DLAppTestUtil

      public DLAppTestUtil()
  • Method Details

    • addFileEntry

      public static com.liferay.portal.kernel.repository.model.FileEntry addFileEntry(com.liferay.portal.kernel.repository.model.Folder folder) throws Exception
      Throws:
      Exception
    • addFileEntry

      public static com.liferay.portal.kernel.repository.model.FileEntry addFileEntry(long groupId) throws Exception
      Throws:
      Exception
    • addFileEntry

      public static com.liferay.portal.kernel.repository.model.FileEntry addFileEntry(long userId, long groupId, long repositoryId, long folderId) throws Exception
      Throws:
      Exception
    • addFileEntry

      public static com.liferay.portal.kernel.repository.model.FileEntry addFileEntry(com.liferay.portal.kernel.model.Repository repository) throws Exception
      Throws:
      Exception
    • addFileEntryWithWorkflow

      public static com.liferay.portal.kernel.repository.model.FileEntry addFileEntryWithWorkflow(long userId, long groupId, long folderId, String sourceFileName, String title, boolean approved, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws Exception
      Throws:
      Exception
    • addFolder

      public static com.liferay.portal.kernel.repository.model.Folder addFolder(long groupId) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • addFolder

      public static com.liferay.portal.kernel.repository.model.Folder addFolder(com.liferay.portal.kernel.model.Repository repository) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • addRepository

      public static com.liferay.portal.kernel.model.Repository addRepository(long groupId) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • populateNotificationsServiceContext

      public static void populateNotificationsServiceContext(com.liferay.portal.kernel.service.ServiceContext serviceContext, String command)
    • populateServiceContext

      public static void populateServiceContext(com.liferay.portal.kernel.service.ServiceContext serviceContext, long fileEntryTypeId)
    • updateStatus

      protected static com.liferay.portal.kernel.repository.model.FileEntry updateStatus(com.liferay.portal.kernel.repository.model.FileEntry fileEntry, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws Exception
      Throws:
      Exception