Class DLAppTestUtil
java.lang.Object
com.liferay.document.library.test.util.DLAppTestUtil
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic com.liferay.portal.kernel.repository.model.FileEntryaddFileEntry(long groupId) static com.liferay.portal.kernel.repository.model.FileEntryaddFileEntry(long userId, long groupId, long repositoryId, long folderId) static com.liferay.portal.kernel.repository.model.FileEntryaddFileEntry(com.liferay.portal.kernel.model.Repository repository) static com.liferay.portal.kernel.repository.model.FileEntryaddFileEntry(com.liferay.portal.kernel.repository.model.Folder folder) static com.liferay.portal.kernel.repository.model.FileEntryaddFileEntryWithWorkflow(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.FolderaddFolder(long groupId) static com.liferay.portal.kernel.repository.model.FolderaddFolder(com.liferay.portal.kernel.model.Repository repository) static com.liferay.portal.kernel.model.RepositoryaddRepository(long groupId) static voidpopulateNotificationsServiceContext(com.liferay.portal.kernel.service.ServiceContext serviceContext, String command) static voidpopulateServiceContext(com.liferay.portal.kernel.service.ServiceContext serviceContext, long fileEntryTypeId) protected static com.liferay.portal.kernel.repository.model.FileEntryupdateStatus(com.liferay.portal.kernel.repository.model.FileEntry fileEntry, com.liferay.portal.kernel.service.ServiceContext serviceContext)
-
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
-