com.liferay.portlet.documentlibrary.util.test
Class DLAppTestUtil
java.lang.Object
com.liferay.portlet.documentlibrary.util.test.DLAppTestUtil
public abstract class DLAppTestUtil
- extends Object
|
Method Summary |
static DLFileEntryType |
addDLFileEntryType(long groupId,
long ddmStructureId)
|
static DLFileEntryType |
addDLFileEntryType(long userId,
long groupId,
String name,
String description,
long[] ddmStructureIds,
ServiceContext serviceContext)
|
static DLFileRank |
addDLFileRank(long groupId,
long fileEntryId)
|
static DLFileShortcut |
addDLFileShortcut(FileEntry fileEntry,
long groupId,
long folderId)
|
static DLFileShortcut |
addDLFileShortcut(long groupId,
FileEntry fileEntry)
|
static FileEntry |
addFileEntry(long groupId,
long parentFolderId,
boolean rootFolder,
String fileName)
|
static FileEntry |
addFileEntry(long groupId,
long parentFolderId,
boolean rootFolder,
String sourceFileName,
String title)
|
static FileEntry |
addFileEntry(long groupId,
long repositoryId,
long folderId)
|
static FileEntry |
addFileEntry(long groupId,
long repositoryId,
long folderId,
String sourceFileName,
long fileEntryTypeId,
boolean workflowEnabled,
boolean approved)
|
static FileEntry |
addFileEntry(long groupId,
long repositoryId,
long folderId,
String sourceFileName,
String mimeType,
String title,
byte[] bytes,
int workflowAction)
|
static FileEntry |
addFileEntry(long groupId,
long repositoryId,
long folderId,
String sourceFileName,
String mimeType,
String title,
byte[] bytes,
long fileEntryTypeId,
int workflowAction)
|
static FileEntry |
addFileEntry(long groupId,
long folderId,
String sourceFileName)
|
static FileEntry |
addFileEntry(long groupId,
long folderId,
String sourceFileName,
long fileEntryTypeId)
|
static FileEntry |
addFileEntry(long groupId,
long folderId,
String sourceFileName,
String title)
|
static FileEntry |
addFileEntry(long groupId,
long folderId,
String sourceFileName,
String title,
boolean approved)
|
static FileEntry |
addFileEntry(long groupId,
long folderId,
String sourceFileName,
String title,
byte[] bytes)
|
static FileEntry |
addFileEntry(long groupId,
long folderId,
String sourceFileName,
String title,
byte[] bytes,
int workflowAction)
|
static FileEntry |
addFileEntry(long groupId,
long folderId,
String sourceFileName,
String mimeType,
String title)
|
static FileEntry |
addFileEntry(long groupId,
long folderId,
String sourceFileName,
String mimeType,
String title,
byte[] bytes,
int workflowAction)
|
static FileEntry |
addFileEntry(long repositoryId,
long folderId,
String sourceFileName,
String mimeType,
String title,
byte[] bytes,
int workflowAction,
ServiceContext serviceContext)
|
static FileEntry |
addFileEntry(long groupId,
long folderId,
String sourceFileName,
String mimeType,
String title,
byte[] bytes,
long fileEntryTypeId,
int workflowAction)
|
static FileEntry |
addFileEntry(long folderId,
String sourceFileName,
String title,
boolean approved,
ServiceContext serviceContext)
|
static FileEntry |
addFileEntryWithWorkflow(long groupId,
long repositoryId,
long folderId,
boolean approved)
|
static Folder |
addFolder(long groupId,
long parentFolderId)
|
static Folder |
addFolder(long groupId,
long repositoryId,
long parentFolderId,
String name)
|
static Folder |
addFolder(long groupId,
long parentFolderId,
String name)
|
static Folder |
addFolder(long groupId,
long parentFolderId,
String name,
boolean deleteExisting)
|
static Folder |
addFolder(long repositoryId,
long parentFolderId,
String name,
boolean deleteExisting,
ServiceContext serviceContext)
|
static Folder |
addFolder(long parentFolderId,
String name,
boolean deleteExisting,
ServiceContext serviceContext)
|
static Folder |
addFolder(long parentFolderId,
String name,
ServiceContext serviceContext)
|
static Repository |
addRepository(long groupId)
|
static Repository |
addRepository(long groupId,
long classNameId)
|
static Repository |
addRepository(long userId,
long groupId,
long classNameId,
long parentFolderId,
String name,
String description,
String portletId,
UnicodeProperties typeSettingsProperties,
boolean hidden,
ServiceContext serviceContext)
|
static RepositoryEntry |
addRepositoryEntry(long groupId,
long repositoryId)
|
static RepositoryEntry |
addRepositoryEntry(long userId,
long groupId,
long repositoryId,
String mappedId,
ServiceContext serviceContext)
|
static FileEntry |
updateFileEntry(long groupId,
long fileEntryId,
boolean majorVersion)
|
static FileEntry |
updateFileEntry(long groupId,
long fileEntryId,
String sourceFileName,
String title)
|
static FileEntry |
updateFileEntry(long groupId,
long fileEntryId,
String sourceFileName,
String title,
boolean majorVersion,
boolean workflowEnabled,
boolean approved)
|
static FileEntry |
updateFileEntry(long groupId,
long fileEntryId,
String sourceFileName,
String mimeType,
String title,
boolean majorVersion,
boolean workflowEnabled,
boolean approved,
ServiceContext serviceContext)
|
static FileEntry |
updateFileEntry(long groupId,
long fileEntryId,
String sourceFileName,
String mimeType,
String title,
boolean majorVersion,
ServiceContext serviceContext)
|
static FileEntry |
updateFileEntryWithWorkflow(long groupId,
long fileEntryId,
boolean majorVersion,
boolean approved)
|
static void |
updateFolderFileEntryType(Folder folder,
long fileEntryTypeId)
|
static void |
updateFolderFileEntryTypes(Folder folder,
long defaultFileEntryTypeId,
long[] fileEntryTypeIds)
|
protected static void |
updateStatus(FileEntry fileEntry,
ServiceContext serviceContext)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DLAppTestUtil
public DLAppTestUtil()
addDLFileEntryType
public static DLFileEntryType addDLFileEntryType(long groupId,
long ddmStructureId)
throws Exception
- Throws:
Exception
addDLFileEntryType
public static DLFileEntryType addDLFileEntryType(long userId,
long groupId,
String name,
String description,
long[] ddmStructureIds,
ServiceContext serviceContext)
throws Exception
- Throws:
Exception
addDLFileRank
public static DLFileRank addDLFileRank(long groupId,
long fileEntryId)
throws Exception
- Throws:
Exception
addDLFileShortcut
public static DLFileShortcut addDLFileShortcut(FileEntry fileEntry,
long groupId,
long folderId)
throws Exception
- Throws:
Exception
addDLFileShortcut
public static DLFileShortcut addDLFileShortcut(long groupId,
FileEntry fileEntry)
throws Exception
- Throws:
Exception
addFileEntry
public static FileEntry addFileEntry(long groupId,
long parentFolderId,
boolean rootFolder,
String fileName)
throws Exception
- Throws:
Exception
addFileEntry
public static FileEntry addFileEntry(long groupId,
long parentFolderId,
boolean rootFolder,
String sourceFileName,
String title)
throws Exception
- Throws:
Exception
addFileEntry
public static FileEntry addFileEntry(long groupId,
long repositoryId,
long folderId)
throws Exception
- Throws:
Exception
addFileEntry
public static FileEntry addFileEntry(long groupId,
long repositoryId,
long folderId,
String sourceFileName,
long fileEntryTypeId,
boolean workflowEnabled,
boolean approved)
throws Exception
- Throws:
Exception
addFileEntry
public static FileEntry addFileEntry(long groupId,
long repositoryId,
long folderId,
String sourceFileName,
String mimeType,
String title,
byte[] bytes,
int workflowAction)
throws Exception
- Throws:
Exception
addFileEntry
public static FileEntry addFileEntry(long groupId,
long repositoryId,
long folderId,
String sourceFileName,
String mimeType,
String title,
byte[] bytes,
long fileEntryTypeId,
int workflowAction)
throws Exception
- Throws:
Exception
addFileEntry
public static FileEntry addFileEntry(long groupId,
long folderId,
String sourceFileName)
throws Exception
- Throws:
Exception
addFileEntry
public static FileEntry addFileEntry(long groupId,
long folderId,
String sourceFileName,
long fileEntryTypeId)
throws Exception
- Throws:
Exception
addFileEntry
public static FileEntry addFileEntry(long groupId,
long folderId,
String sourceFileName,
String title)
throws Exception
- Throws:
Exception
addFileEntry
public static FileEntry addFileEntry(long groupId,
long folderId,
String sourceFileName,
String title,
boolean approved)
throws Exception
- Throws:
Exception
addFileEntry
public static FileEntry addFileEntry(long groupId,
long folderId,
String sourceFileName,
String title,
byte[] bytes)
throws Exception
- Throws:
Exception
addFileEntry
public static FileEntry addFileEntry(long groupId,
long folderId,
String sourceFileName,
String title,
byte[] bytes,
int workflowAction)
throws Exception
- Throws:
Exception
addFileEntry
public static FileEntry addFileEntry(long groupId,
long folderId,
String sourceFileName,
String mimeType,
String title)
throws Exception
- Throws:
Exception
addFileEntry
public static FileEntry addFileEntry(long groupId,
long folderId,
String sourceFileName,
String mimeType,
String title,
byte[] bytes,
int workflowAction)
throws Exception
- Throws:
Exception
addFileEntry
public static FileEntry addFileEntry(long repositoryId,
long folderId,
String sourceFileName,
String mimeType,
String title,
byte[] bytes,
int workflowAction,
ServiceContext serviceContext)
throws Exception
- Throws:
Exception
addFileEntry
public static FileEntry addFileEntry(long groupId,
long folderId,
String sourceFileName,
String mimeType,
String title,
byte[] bytes,
long fileEntryTypeId,
int workflowAction)
throws Exception
- Throws:
Exception
addFileEntry
public static FileEntry addFileEntry(long folderId,
String sourceFileName,
String title,
boolean approved,
ServiceContext serviceContext)
throws Exception
- Throws:
Exception
addFileEntryWithWorkflow
public static FileEntry addFileEntryWithWorkflow(long groupId,
long repositoryId,
long folderId,
boolean approved)
throws Exception
- Throws:
Exception
addFolder
public static Folder addFolder(long groupId,
long parentFolderId)
throws Exception
- Throws:
Exception
addFolder
public static Folder addFolder(long groupId,
long repositoryId,
long parentFolderId,
String name)
throws Exception
- Throws:
Exception
addFolder
public static Folder addFolder(long groupId,
long parentFolderId,
String name)
throws Exception
- Throws:
Exception
addFolder
public static Folder addFolder(long groupId,
long parentFolderId,
String name,
boolean deleteExisting)
throws Exception
- Throws:
Exception
addFolder
public static Folder addFolder(long repositoryId,
long parentFolderId,
String name,
boolean deleteExisting,
ServiceContext serviceContext)
throws Exception
- Throws:
Exception
addFolder
public static Folder addFolder(long parentFolderId,
String name,
boolean deleteExisting,
ServiceContext serviceContext)
throws Exception
- Throws:
Exception
addFolder
public static Folder addFolder(long parentFolderId,
String name,
ServiceContext serviceContext)
throws Exception
- Throws:
Exception
addRepository
public static Repository addRepository(long groupId)
throws Exception
- Throws:
Exception
addRepository
public static Repository addRepository(long groupId,
long classNameId)
throws Exception
- Throws:
Exception
addRepository
public static Repository addRepository(long userId,
long groupId,
long classNameId,
long parentFolderId,
String name,
String description,
String portletId,
UnicodeProperties typeSettingsProperties,
boolean hidden,
ServiceContext serviceContext)
throws Exception
- Throws:
Exception
addRepositoryEntry
public static RepositoryEntry addRepositoryEntry(long groupId,
long repositoryId)
throws Exception
- Throws:
Exception
addRepositoryEntry
public static RepositoryEntry addRepositoryEntry(long userId,
long groupId,
long repositoryId,
String mappedId,
ServiceContext serviceContext)
throws Exception
- Throws:
Exception
updateFileEntry
public static FileEntry updateFileEntry(long groupId,
long fileEntryId,
boolean majorVersion)
throws Exception
- Throws:
Exception
updateFileEntry
public static FileEntry updateFileEntry(long groupId,
long fileEntryId,
String sourceFileName,
String title)
throws Exception
- Throws:
Exception
updateFileEntry
public static FileEntry updateFileEntry(long groupId,
long fileEntryId,
String sourceFileName,
String title,
boolean majorVersion,
boolean workflowEnabled,
boolean approved)
throws Exception
- Throws:
Exception
updateFileEntry
public static FileEntry updateFileEntry(long groupId,
long fileEntryId,
String sourceFileName,
String mimeType,
String title,
boolean majorVersion,
boolean workflowEnabled,
boolean approved,
ServiceContext serviceContext)
throws Exception
- Throws:
Exception
updateFileEntry
public static FileEntry updateFileEntry(long groupId,
long fileEntryId,
String sourceFileName,
String mimeType,
String title,
boolean majorVersion,
ServiceContext serviceContext)
throws Exception
- Throws:
Exception
updateFileEntryWithWorkflow
public static FileEntry updateFileEntryWithWorkflow(long groupId,
long fileEntryId,
boolean majorVersion,
boolean approved)
throws Exception
- Throws:
Exception
updateFolderFileEntryType
public static void updateFolderFileEntryType(Folder folder,
long fileEntryTypeId)
throws Exception
- Throws:
Exception
updateFolderFileEntryTypes
public static void updateFolderFileEntryTypes(Folder folder,
long defaultFileEntryTypeId,
long[] fileEntryTypeIds)
throws Exception
- Throws:
Exception
updateStatus
protected static void updateStatus(FileEntry fileEntry,
ServiceContext serviceContext)
throws Exception
- Throws:
Exception