Liferay 7.0-ce-b4

com.liferay.portlet.documentlibrary.service.http
Class DLAppServiceHttp

java.lang.Object
  extended by com.liferay.portlet.documentlibrary.service.http.DLAppServiceHttp

@ProviderType
public class DLAppServiceHttp
extends Object

Provides the HTTP utility for the DLAppServiceUtil service utility. The static methods of this class calls the same methods of the service utility. However, the signatures are different because it requires an additional HttpPrincipal parameter.

The benefits of using the HTTP utility is that it is fast and allows for tunneling without the cost of serializing to text. The drawback is that it only works with Java.

Set the property tunnel.servlet.hosts.allowed in portal.properties to configure security.

The HTTP utility is only generated for remote services.

See Also:
DLAppServiceSoap, HttpPrincipal, DLAppServiceUtil
ServiceBuilder generated this class. Modifications in this class will be overwritten the next time it is generated.

Constructor Summary
DLAppServiceHttp()
           
 
Method Summary
static FileEntry addFileEntry(HttpPrincipal httpPrincipal, long repositoryId, long folderId, String sourceFileName, String mimeType, String title, String description, String changeLog, byte[] bytes, ServiceContext serviceContext)
           
static FileEntry addFileEntry(HttpPrincipal httpPrincipal, long repositoryId, long folderId, String sourceFileName, String mimeType, String title, String description, String changeLog, File file, ServiceContext serviceContext)
           
static FileEntry addFileEntry(HttpPrincipal httpPrincipal, long repositoryId, long folderId, String sourceFileName, String mimeType, String title, String description, String changeLog, InputStream is, long size, ServiceContext serviceContext)
           
static FileShortcut addFileShortcut(HttpPrincipal httpPrincipal, long repositoryId, long folderId, long toFileEntryId, ServiceContext serviceContext)
           
static Folder addFolder(HttpPrincipal httpPrincipal, long repositoryId, long parentFolderId, String name, String description, ServiceContext serviceContext)
           
static FileEntry addTempFileEntry(HttpPrincipal httpPrincipal, long groupId, long folderId, String folderName, String fileName, File file, String mimeType)
           
static FileEntry addTempFileEntry(HttpPrincipal httpPrincipal, long groupId, long folderId, String folderName, String fileName, InputStream inputStream, String mimeType)
           
static void cancelCheckOut(HttpPrincipal httpPrincipal, long fileEntryId)
           
static void checkInFileEntry(HttpPrincipal httpPrincipal, long fileEntryId, boolean majorVersion, String changeLog, ServiceContext serviceContext)
           
static void checkInFileEntry(HttpPrincipal httpPrincipal, long fileEntryId, String lockUuid)
           
static void checkInFileEntry(HttpPrincipal httpPrincipal, long fileEntryId, String lockUuid, ServiceContext serviceContext)
           
static void checkOutFileEntry(HttpPrincipal httpPrincipal, long fileEntryId, ServiceContext serviceContext)
           
static FileEntry checkOutFileEntry(HttpPrincipal httpPrincipal, long fileEntryId, String owner, long expirationTime, ServiceContext serviceContext)
           
static Folder copyFolder(HttpPrincipal httpPrincipal, long repositoryId, long sourceFolderId, long parentFolderId, String name, String description, ServiceContext serviceContext)
           
static void deleteFileEntry(HttpPrincipal httpPrincipal, long fileEntryId)
           
static void deleteFileEntryByTitle(HttpPrincipal httpPrincipal, long repositoryId, long folderId, String title)
           
static void deleteFileShortcut(HttpPrincipal httpPrincipal, long fileShortcutId)
           
static void deleteFileVersion(HttpPrincipal httpPrincipal, long fileEntryId, String version)
           
static void deleteFolder(HttpPrincipal httpPrincipal, long folderId)
           
static void deleteFolder(HttpPrincipal httpPrincipal, long repositoryId, long parentFolderId, String name)
           
static void deleteTempFileEntry(HttpPrincipal httpPrincipal, long groupId, long folderId, String folderName, String fileName)
           
static List<FileEntry> getFileEntries(HttpPrincipal httpPrincipal, long repositoryId, long folderId)
           
static List<FileEntry> getFileEntries(HttpPrincipal httpPrincipal, long repositoryId, long folderId, int start, int end)
           
static List<FileEntry> getFileEntries(HttpPrincipal httpPrincipal, long repositoryId, long folderId, int start, int end, OrderByComparator<FileEntry> obc)
           
static List<FileEntry> getFileEntries(HttpPrincipal httpPrincipal, long repositoryId, long folderId, long fileEntryTypeId)
           
static List<FileEntry> getFileEntries(HttpPrincipal httpPrincipal, long repositoryId, long folderId, long fileEntryTypeId, int start, int end)
           
static List<FileEntry> getFileEntries(HttpPrincipal httpPrincipal, long repositoryId, long folderId, long fileEntryTypeId, int start, int end, OrderByComparator<FileEntry> obc)
           
static List<FileEntry> getFileEntries(HttpPrincipal httpPrincipal, long repositoryId, long folderId, String[] mimeTypes)
           
static List<FileEntry> getFileEntries(HttpPrincipal httpPrincipal, long repositoryId, long folderId, String[] mimeTypes, int start, int end, OrderByComparator<FileEntry> obc)
           
static List<Object> getFileEntriesAndFileShortcuts(HttpPrincipal httpPrincipal, long repositoryId, long folderId, int status, int start, int end)
           
static int getFileEntriesAndFileShortcutsCount(HttpPrincipal httpPrincipal, long repositoryId, long folderId, int status)
           
static int getFileEntriesAndFileShortcutsCount(HttpPrincipal httpPrincipal, long repositoryId, long folderId, int status, String[] mimeTypes)
           
static int getFileEntriesCount(HttpPrincipal httpPrincipal, long repositoryId, long folderId)
           
static int getFileEntriesCount(HttpPrincipal httpPrincipal, long repositoryId, long folderId, long fileEntryTypeId)
           
static int getFileEntriesCount(HttpPrincipal httpPrincipal, long repositoryId, long folderId, String[] mimeTypes)
           
static FileEntry getFileEntry(HttpPrincipal httpPrincipal, long fileEntryId)
           
static FileEntry getFileEntry(HttpPrincipal httpPrincipal, long groupId, long folderId, String title)
           
static FileEntry getFileEntryByUuidAndGroupId(HttpPrincipal httpPrincipal, String uuid, long groupId)
           
static FileShortcut getFileShortcut(HttpPrincipal httpPrincipal, long fileShortcutId)
           
static FileVersion getFileVersion(HttpPrincipal httpPrincipal, long fileVersionId)
           
static Folder getFolder(HttpPrincipal httpPrincipal, long folderId)
           
static Folder getFolder(HttpPrincipal httpPrincipal, long repositoryId, long parentFolderId, String name)
           
static List<Folder> getFolders(HttpPrincipal httpPrincipal, long repositoryId, long parentFolderId)
           
static List<Folder> getFolders(HttpPrincipal httpPrincipal, long repositoryId, long parentFolderId, boolean includeMountFolders)
           
static List<Folder> getFolders(HttpPrincipal httpPrincipal, long repositoryId, long parentFolderId, boolean includeMountFolders, int start, int end)
           
static List<Folder> getFolders(HttpPrincipal httpPrincipal, long repositoryId, long parentFolderId, boolean includeMountFolders, int start, int end, OrderByComparator<Folder> obc)
           
static List<Folder> getFolders(HttpPrincipal httpPrincipal, long repositoryId, long parentFolderId, int status, boolean includeMountFolders, int start, int end, OrderByComparator<Folder> obc)
           
static List<Folder> getFolders(HttpPrincipal httpPrincipal, long repositoryId, long parentFolderId, int start, int end)
           
static List<Folder> getFolders(HttpPrincipal httpPrincipal, long repositoryId, long parentFolderId, int start, int end, OrderByComparator<Folder> obc)
           
static List<Object> getFoldersAndFileEntriesAndFileShortcuts(HttpPrincipal httpPrincipal, long repositoryId, long folderId, int status, boolean includeMountFolders, int start, int end)
           
static List<Object> getFoldersAndFileEntriesAndFileShortcuts(HttpPrincipal httpPrincipal, long repositoryId, long folderId, int status, boolean includeMountFolders, int start, int end, OrderByComparator<?> obc)
           
static List<Object> getFoldersAndFileEntriesAndFileShortcuts(HttpPrincipal httpPrincipal, long repositoryId, long folderId, int status, String[] mimeTypes, boolean includeMountFolders, int start, int end, OrderByComparator<?> obc)
           
static int getFoldersAndFileEntriesAndFileShortcutsCount(HttpPrincipal httpPrincipal, long repositoryId, long folderId, int status, boolean includeMountFolders)
           
static int getFoldersAndFileEntriesAndFileShortcutsCount(HttpPrincipal httpPrincipal, long repositoryId, long folderId, int status, String[] mimeTypes, boolean includeMountFolders)
           
static int getFoldersCount(HttpPrincipal httpPrincipal, long repositoryId, long parentFolderId)
           
static int getFoldersCount(HttpPrincipal httpPrincipal, long repositoryId, long parentFolderId, boolean includeMountFolders)
           
static int getFoldersCount(HttpPrincipal httpPrincipal, long repositoryId, long parentFolderId, int status, boolean includeMountFolders)
           
static int getFoldersFileEntriesCount(HttpPrincipal httpPrincipal, long repositoryId, List<Long> folderIds, int status)
           
static List<FileEntry> getGroupFileEntries(HttpPrincipal httpPrincipal, long groupId, long userId, int start, int end)
           
static List<FileEntry> getGroupFileEntries(HttpPrincipal httpPrincipal, long groupId, long userId, int start, int end, OrderByComparator<FileEntry> obc)
           
static List<FileEntry> getGroupFileEntries(HttpPrincipal httpPrincipal, long groupId, long userId, long rootFolderId, int start, int end)
           
static List<FileEntry> getGroupFileEntries(HttpPrincipal httpPrincipal, long groupId, long userId, long rootFolderId, int start, int end, OrderByComparator<FileEntry> obc)
           
static List<FileEntry> getGroupFileEntries(HttpPrincipal httpPrincipal, long groupId, long userId, long rootFolderId, String[] mimeTypes, int status, int start, int end, OrderByComparator<FileEntry> obc)
           
static int getGroupFileEntriesCount(HttpPrincipal httpPrincipal, long groupId, long userId)
           
static int getGroupFileEntriesCount(HttpPrincipal httpPrincipal, long groupId, long userId, long rootFolderId)
           
static int getGroupFileEntriesCount(HttpPrincipal httpPrincipal, long groupId, long userId, long rootFolderId, String[] mimeTypes, int status)
           
static List<Folder> getMountFolders(HttpPrincipal httpPrincipal, long repositoryId, long parentFolderId)
           
static List<Folder> getMountFolders(HttpPrincipal httpPrincipal, long repositoryId, long parentFolderId, int start, int end)
           
static List<Folder> getMountFolders(HttpPrincipal httpPrincipal, long repositoryId, long parentFolderId, int start, int end, OrderByComparator<Folder> obc)
           
static int getMountFoldersCount(HttpPrincipal httpPrincipal, long repositoryId, long parentFolderId)
           
static void getSubfolderIds(HttpPrincipal httpPrincipal, long repositoryId, List<Long> folderIds, long folderId)
           
static List<Long> getSubfolderIds(HttpPrincipal httpPrincipal, long repositoryId, long folderId)
           
static List<Long> getSubfolderIds(HttpPrincipal httpPrincipal, long repositoryId, long folderId, boolean recurse)
           
static String[] getTempFileNames(HttpPrincipal httpPrincipal, long groupId, long folderId, String folderName)
           
static Lock lockFolder(HttpPrincipal httpPrincipal, long repositoryId, long folderId)
           
static Lock lockFolder(HttpPrincipal httpPrincipal, long repositoryId, long folderId, String owner, boolean inheritable, long expirationTime)
           
static FileEntry moveFileEntry(HttpPrincipal httpPrincipal, long fileEntryId, long newFolderId, ServiceContext serviceContext)
           
static Folder moveFolder(HttpPrincipal httpPrincipal, long folderId, long parentFolderId, ServiceContext serviceContext)
           
static Lock refreshFileEntryLock(HttpPrincipal httpPrincipal, String lockUuid, long companyId, long expirationTime)
           
static Lock refreshFolderLock(HttpPrincipal httpPrincipal, String lockUuid, long companyId, long expirationTime)
           
static void revertFileEntry(HttpPrincipal httpPrincipal, long fileEntryId, String version, ServiceContext serviceContext)
           
static Hits search(HttpPrincipal httpPrincipal, long repositoryId, long creatorUserId, int status, int start, int end)
           
static Hits search(HttpPrincipal httpPrincipal, long repositoryId, long creatorUserId, long folderId, String[] mimeTypes, int status, int start, int end)
           
static Hits search(HttpPrincipal httpPrincipal, long repositoryId, SearchContext searchContext)
           
static Hits search(HttpPrincipal httpPrincipal, long repositoryId, SearchContext searchContext, Query query)
           
static void subscribeFileEntryType(HttpPrincipal httpPrincipal, long groupId, long fileEntryTypeId)
           
static void subscribeFolder(HttpPrincipal httpPrincipal, long groupId, long folderId)
           
static void unlockFileEntry(HttpPrincipal httpPrincipal, long fileEntryId)
           
static void unlockFileEntry(HttpPrincipal httpPrincipal, long fileEntryId, String lockUuid)
           
static void unlockFolder(HttpPrincipal httpPrincipal, long repositoryId, long folderId, String lockUuid)
           
static void unlockFolder(HttpPrincipal httpPrincipal, long repositoryId, long parentFolderId, String name, String lockUuid)
           
static void unsubscribeFileEntryType(HttpPrincipal httpPrincipal, long groupId, long fileEntryTypeId)
           
static void unsubscribeFolder(HttpPrincipal httpPrincipal, long groupId, long folderId)
           
static FileEntry updateFileEntry(HttpPrincipal httpPrincipal, long fileEntryId, String sourceFileName, String mimeType, String title, String description, String changeLog, boolean majorVersion, byte[] bytes, ServiceContext serviceContext)
           
static FileEntry updateFileEntry(HttpPrincipal httpPrincipal, long fileEntryId, String sourceFileName, String mimeType, String title, String description, String changeLog, boolean majorVersion, File file, ServiceContext serviceContext)
           
static FileEntry updateFileEntry(HttpPrincipal httpPrincipal, long fileEntryId, String sourceFileName, String mimeType, String title, String description, String changeLog, boolean majorVersion, InputStream is, long size, ServiceContext serviceContext)
           
static FileEntry updateFileEntryAndCheckIn(HttpPrincipal httpPrincipal, long fileEntryId, String sourceFileName, String mimeType, String title, String description, String changeLog, boolean majorVersion, File file, ServiceContext serviceContext)
           
static FileEntry updateFileEntryAndCheckIn(HttpPrincipal httpPrincipal, long fileEntryId, String sourceFileName, String mimeType, String title, String description, String changeLog, boolean majorVersion, InputStream is, long size, ServiceContext serviceContext)
           
static FileShortcut updateFileShortcut(HttpPrincipal httpPrincipal, long fileShortcutId, long folderId, long toFileEntryId, ServiceContext serviceContext)
           
static Folder updateFolder(HttpPrincipal httpPrincipal, long folderId, String name, String description, ServiceContext serviceContext)
           
static boolean verifyFileEntryCheckOut(HttpPrincipal httpPrincipal, long repositoryId, long fileEntryId, String lockUuid)
           
static boolean verifyFileEntryLock(HttpPrincipal httpPrincipal, long repositoryId, long fileEntryId, String lockUuid)
           
static boolean verifyInheritableLock(HttpPrincipal httpPrincipal, long repositoryId, long folderId, String lockUuid)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DLAppServiceHttp

public DLAppServiceHttp()
Method Detail

addFileEntry

public static FileEntry addFileEntry(HttpPrincipal httpPrincipal,
                                     long repositoryId,
                                     long folderId,
                                     String sourceFileName,
                                     String mimeType,
                                     String title,
                                     String description,
                                     String changeLog,
                                     byte[] bytes,
                                     ServiceContext serviceContext)
                              throws PortalException
Throws:
PortalException

addFileEntry

public static FileEntry addFileEntry(HttpPrincipal httpPrincipal,
                                     long repositoryId,
                                     long folderId,
                                     String sourceFileName,
                                     String mimeType,
                                     String title,
                                     String description,
                                     String changeLog,
                                     File file,
                                     ServiceContext serviceContext)
                              throws PortalException
Throws:
PortalException

addFileEntry

public static FileEntry addFileEntry(HttpPrincipal httpPrincipal,
                                     long repositoryId,
                                     long folderId,
                                     String sourceFileName,
                                     String mimeType,
                                     String title,
                                     String description,
                                     String changeLog,
                                     InputStream is,
                                     long size,
                                     ServiceContext serviceContext)
                              throws PortalException
Throws:
PortalException

addFileShortcut

public static FileShortcut addFileShortcut(HttpPrincipal httpPrincipal,
                                           long repositoryId,
                                           long folderId,
                                           long toFileEntryId,
                                           ServiceContext serviceContext)
                                    throws PortalException
Throws:
PortalException

addFolder

public static Folder addFolder(HttpPrincipal httpPrincipal,
                               long repositoryId,
                               long parentFolderId,
                               String name,
                               String description,
                               ServiceContext serviceContext)
                        throws PortalException
Throws:
PortalException

addTempFileEntry

public static FileEntry addTempFileEntry(HttpPrincipal httpPrincipal,
                                         long groupId,
                                         long folderId,
                                         String folderName,
                                         String fileName,
                                         File file,
                                         String mimeType)
                                  throws PortalException
Throws:
PortalException

addTempFileEntry

public static FileEntry addTempFileEntry(HttpPrincipal httpPrincipal,
                                         long groupId,
                                         long folderId,
                                         String folderName,
                                         String fileName,
                                         InputStream inputStream,
                                         String mimeType)
                                  throws PortalException
Throws:
PortalException

cancelCheckOut

public static void cancelCheckOut(HttpPrincipal httpPrincipal,
                                  long fileEntryId)
                           throws PortalException
Throws:
PortalException

checkInFileEntry

public static void checkInFileEntry(HttpPrincipal httpPrincipal,
                                    long fileEntryId,
                                    boolean majorVersion,
                                    String changeLog,
                                    ServiceContext serviceContext)
                             throws PortalException
Throws:
PortalException

checkInFileEntry

public static void checkInFileEntry(HttpPrincipal httpPrincipal,
                                    long fileEntryId,
                                    String lockUuid)
                             throws PortalException
Throws:
PortalException

checkInFileEntry

public static void checkInFileEntry(HttpPrincipal httpPrincipal,
                                    long fileEntryId,
                                    String lockUuid,
                                    ServiceContext serviceContext)
                             throws PortalException
Throws:
PortalException

checkOutFileEntry

public static void checkOutFileEntry(HttpPrincipal httpPrincipal,
                                     long fileEntryId,
                                     ServiceContext serviceContext)
                              throws PortalException
Throws:
PortalException

checkOutFileEntry

public static FileEntry checkOutFileEntry(HttpPrincipal httpPrincipal,
                                          long fileEntryId,
                                          String owner,
                                          long expirationTime,
                                          ServiceContext serviceContext)
                                   throws PortalException
Throws:
PortalException

copyFolder

public static Folder copyFolder(HttpPrincipal httpPrincipal,
                                long repositoryId,
                                long sourceFolderId,
                                long parentFolderId,
                                String name,
                                String description,
                                ServiceContext serviceContext)
                         throws PortalException
Throws:
PortalException

deleteFileEntry

public static void deleteFileEntry(HttpPrincipal httpPrincipal,
                                   long fileEntryId)
                            throws PortalException
Throws:
PortalException

deleteFileEntryByTitle

public static void deleteFileEntryByTitle(HttpPrincipal httpPrincipal,
                                          long repositoryId,
                                          long folderId,
                                          String title)
                                   throws PortalException
Throws:
PortalException

deleteFileShortcut

public static void deleteFileShortcut(HttpPrincipal httpPrincipal,
                                      long fileShortcutId)
                               throws PortalException
Throws:
PortalException

deleteFileVersion

public static void deleteFileVersion(HttpPrincipal httpPrincipal,
                                     long fileEntryId,
                                     String version)
                              throws PortalException
Throws:
PortalException

deleteFolder

public static void deleteFolder(HttpPrincipal httpPrincipal,
                                long folderId)
                         throws PortalException
Throws:
PortalException

deleteFolder

public static void deleteFolder(HttpPrincipal httpPrincipal,
                                long repositoryId,
                                long parentFolderId,
                                String name)
                         throws PortalException
Throws:
PortalException

deleteTempFileEntry

public static void deleteTempFileEntry(HttpPrincipal httpPrincipal,
                                       long groupId,
                                       long folderId,
                                       String folderName,
                                       String fileName)
                                throws PortalException
Throws:
PortalException

getFileEntries

public static List<FileEntry> getFileEntries(HttpPrincipal httpPrincipal,
                                             long repositoryId,
                                             long folderId)
                                      throws PortalException
Throws:
PortalException

getFileEntries

public static List<FileEntry> getFileEntries(HttpPrincipal httpPrincipal,
                                             long repositoryId,
                                             long folderId,
                                             int start,
                                             int end)
                                      throws PortalException
Throws:
PortalException

getFileEntries

public static List<FileEntry> getFileEntries(HttpPrincipal httpPrincipal,
                                             long repositoryId,
                                             long folderId,
                                             int start,
                                             int end,
                                             OrderByComparator<FileEntry> obc)
                                      throws PortalException
Throws:
PortalException

getFileEntries

public static List<FileEntry> getFileEntries(HttpPrincipal httpPrincipal,
                                             long repositoryId,
                                             long folderId,
                                             long fileEntryTypeId)
                                      throws PortalException
Throws:
PortalException

getFileEntries

public static List<FileEntry> getFileEntries(HttpPrincipal httpPrincipal,
                                             long repositoryId,
                                             long folderId,
                                             long fileEntryTypeId,
                                             int start,
                                             int end)
                                      throws PortalException
Throws:
PortalException

getFileEntries

public static List<FileEntry> getFileEntries(HttpPrincipal httpPrincipal,
                                             long repositoryId,
                                             long folderId,
                                             long fileEntryTypeId,
                                             int start,
                                             int end,
                                             OrderByComparator<FileEntry> obc)
                                      throws PortalException
Throws:
PortalException

getFileEntries

public static List<FileEntry> getFileEntries(HttpPrincipal httpPrincipal,
                                             long repositoryId,
                                             long folderId,
                                             String[] mimeTypes)
                                      throws PortalException
Throws:
PortalException

getFileEntries

public static List<FileEntry> getFileEntries(HttpPrincipal httpPrincipal,
                                             long repositoryId,
                                             long folderId,
                                             String[] mimeTypes,
                                             int start,
                                             int end,
                                             OrderByComparator<FileEntry> obc)
                                      throws PortalException
Throws:
PortalException

getFileEntriesAndFileShortcuts

public static List<Object> getFileEntriesAndFileShortcuts(HttpPrincipal httpPrincipal,
                                                          long repositoryId,
                                                          long folderId,
                                                          int status,
                                                          int start,
                                                          int end)
                                                   throws PortalException
Throws:
PortalException

getFileEntriesAndFileShortcutsCount

public static int getFileEntriesAndFileShortcutsCount(HttpPrincipal httpPrincipal,
                                                      long repositoryId,
                                                      long folderId,
                                                      int status)
                                               throws PortalException
Throws:
PortalException

getFileEntriesAndFileShortcutsCount

public static int getFileEntriesAndFileShortcutsCount(HttpPrincipal httpPrincipal,
                                                      long repositoryId,
                                                      long folderId,
                                                      int status,
                                                      String[] mimeTypes)
                                               throws PortalException
Throws:
PortalException

getFileEntriesCount

public static int getFileEntriesCount(HttpPrincipal httpPrincipal,
                                      long repositoryId,
                                      long folderId)
                               throws PortalException
Throws:
PortalException

getFileEntriesCount

public static int getFileEntriesCount(HttpPrincipal httpPrincipal,
                                      long repositoryId,
                                      long folderId,
                                      long fileEntryTypeId)
                               throws PortalException
Throws:
PortalException

getFileEntriesCount

public static int getFileEntriesCount(HttpPrincipal httpPrincipal,
                                      long repositoryId,
                                      long folderId,
                                      String[] mimeTypes)
                               throws PortalException
Throws:
PortalException

getFileEntry

public static FileEntry getFileEntry(HttpPrincipal httpPrincipal,
                                     long fileEntryId)
                              throws PortalException
Throws:
PortalException

getFileEntry

public static FileEntry getFileEntry(HttpPrincipal httpPrincipal,
                                     long groupId,
                                     long folderId,
                                     String title)
                              throws PortalException
Throws:
PortalException

getFileEntryByUuidAndGroupId

public static FileEntry getFileEntryByUuidAndGroupId(HttpPrincipal httpPrincipal,
                                                     String uuid,
                                                     long groupId)
                                              throws PortalException
Throws:
PortalException

getFileShortcut

public static FileShortcut getFileShortcut(HttpPrincipal httpPrincipal,
                                           long fileShortcutId)
                                    throws PortalException
Throws:
PortalException

getFileVersion

public static FileVersion getFileVersion(HttpPrincipal httpPrincipal,
                                         long fileVersionId)
                                  throws PortalException
Throws:
PortalException

getFolder

public static Folder getFolder(HttpPrincipal httpPrincipal,
                               long folderId)
                        throws PortalException
Throws:
PortalException

getFolder

public static Folder getFolder(HttpPrincipal httpPrincipal,
                               long repositoryId,
                               long parentFolderId,
                               String name)
                        throws PortalException
Throws:
PortalException

getFolders

public static List<Folder> getFolders(HttpPrincipal httpPrincipal,
                                      long repositoryId,
                                      long parentFolderId)
                               throws PortalException
Throws:
PortalException

getFolders

public static List<Folder> getFolders(HttpPrincipal httpPrincipal,
                                      long repositoryId,
                                      long parentFolderId,
                                      boolean includeMountFolders)
                               throws PortalException
Throws:
PortalException

getFolders

public static List<Folder> getFolders(HttpPrincipal httpPrincipal,
                                      long repositoryId,
                                      long parentFolderId,
                                      boolean includeMountFolders,
                                      int start,
                                      int end)
                               throws PortalException
Throws:
PortalException

getFolders

public static List<Folder> getFolders(HttpPrincipal httpPrincipal,
                                      long repositoryId,
                                      long parentFolderId,
                                      boolean includeMountFolders,
                                      int start,
                                      int end,
                                      OrderByComparator<Folder> obc)
                               throws PortalException
Throws:
PortalException

getFolders

public static List<Folder> getFolders(HttpPrincipal httpPrincipal,
                                      long repositoryId,
                                      long parentFolderId,
                                      int status,
                                      boolean includeMountFolders,
                                      int start,
                                      int end,
                                      OrderByComparator<Folder> obc)
                               throws PortalException
Throws:
PortalException

getFolders

public static List<Folder> getFolders(HttpPrincipal httpPrincipal,
                                      long repositoryId,
                                      long parentFolderId,
                                      int start,
                                      int end)
                               throws PortalException
Throws:
PortalException

getFolders

public static List<Folder> getFolders(HttpPrincipal httpPrincipal,
                                      long repositoryId,
                                      long parentFolderId,
                                      int start,
                                      int end,
                                      OrderByComparator<Folder> obc)
                               throws PortalException
Throws:
PortalException

getFoldersAndFileEntriesAndFileShortcuts

public static List<Object> getFoldersAndFileEntriesAndFileShortcuts(HttpPrincipal httpPrincipal,
                                                                    long repositoryId,
                                                                    long folderId,
                                                                    int status,
                                                                    boolean includeMountFolders,
                                                                    int start,
                                                                    int end)
                                                             throws PortalException
Throws:
PortalException

getFoldersAndFileEntriesAndFileShortcuts

public static List<Object> getFoldersAndFileEntriesAndFileShortcuts(HttpPrincipal httpPrincipal,
                                                                    long repositoryId,
                                                                    long folderId,
                                                                    int status,
                                                                    boolean includeMountFolders,
                                                                    int start,
                                                                    int end,
                                                                    OrderByComparator<?> obc)
                                                             throws PortalException
Throws:
PortalException

getFoldersAndFileEntriesAndFileShortcuts

public static List<Object> getFoldersAndFileEntriesAndFileShortcuts(HttpPrincipal httpPrincipal,
                                                                    long repositoryId,
                                                                    long folderId,
                                                                    int status,
                                                                    String[] mimeTypes,
                                                                    boolean includeMountFolders,
                                                                    int start,
                                                                    int end,
                                                                    OrderByComparator<?> obc)
                                                             throws PortalException
Throws:
PortalException

getFoldersAndFileEntriesAndFileShortcutsCount

public static int getFoldersAndFileEntriesAndFileShortcutsCount(HttpPrincipal httpPrincipal,
                                                                long repositoryId,
                                                                long folderId,
                                                                int status,
                                                                boolean includeMountFolders)
                                                         throws PortalException
Throws:
PortalException

getFoldersAndFileEntriesAndFileShortcutsCount

public static int getFoldersAndFileEntriesAndFileShortcutsCount(HttpPrincipal httpPrincipal,
                                                                long repositoryId,
                                                                long folderId,
                                                                int status,
                                                                String[] mimeTypes,
                                                                boolean includeMountFolders)
                                                         throws PortalException
Throws:
PortalException

getFoldersCount

public static int getFoldersCount(HttpPrincipal httpPrincipal,
                                  long repositoryId,
                                  long parentFolderId)
                           throws PortalException
Throws:
PortalException

getFoldersCount

public static int getFoldersCount(HttpPrincipal httpPrincipal,
                                  long repositoryId,
                                  long parentFolderId,
                                  boolean includeMountFolders)
                           throws PortalException
Throws:
PortalException

getFoldersCount

public static int getFoldersCount(HttpPrincipal httpPrincipal,
                                  long repositoryId,
                                  long parentFolderId,
                                  int status,
                                  boolean includeMountFolders)
                           throws PortalException
Throws:
PortalException

getFoldersFileEntriesCount

public static int getFoldersFileEntriesCount(HttpPrincipal httpPrincipal,
                                             long repositoryId,
                                             List<Long> folderIds,
                                             int status)
                                      throws PortalException
Throws:
PortalException

getGroupFileEntries

public static List<FileEntry> getGroupFileEntries(HttpPrincipal httpPrincipal,
                                                  long groupId,
                                                  long userId,
                                                  int start,
                                                  int end)
                                           throws PortalException
Throws:
PortalException

getGroupFileEntries

public static List<FileEntry> getGroupFileEntries(HttpPrincipal httpPrincipal,
                                                  long groupId,
                                                  long userId,
                                                  int start,
                                                  int end,
                                                  OrderByComparator<FileEntry> obc)
                                           throws PortalException
Throws:
PortalException

getGroupFileEntries

public static List<FileEntry> getGroupFileEntries(HttpPrincipal httpPrincipal,
                                                  long groupId,
                                                  long userId,
                                                  long rootFolderId,
                                                  int start,
                                                  int end)
                                           throws PortalException
Throws:
PortalException

getGroupFileEntries

public static List<FileEntry> getGroupFileEntries(HttpPrincipal httpPrincipal,
                                                  long groupId,
                                                  long userId,
                                                  long rootFolderId,
                                                  int start,
                                                  int end,
                                                  OrderByComparator<FileEntry> obc)
                                           throws PortalException
Throws:
PortalException

getGroupFileEntries

public static List<FileEntry> getGroupFileEntries(HttpPrincipal httpPrincipal,
                                                  long groupId,
                                                  long userId,
                                                  long rootFolderId,
                                                  String[] mimeTypes,
                                                  int status,
                                                  int start,
                                                  int end,
                                                  OrderByComparator<FileEntry> obc)
                                           throws PortalException
Throws:
PortalException

getGroupFileEntriesCount

public static int getGroupFileEntriesCount(HttpPrincipal httpPrincipal,
                                           long groupId,
                                           long userId)
                                    throws PortalException
Throws:
PortalException

getGroupFileEntriesCount

public static int getGroupFileEntriesCount(HttpPrincipal httpPrincipal,
                                           long groupId,
                                           long userId,
                                           long rootFolderId)
                                    throws PortalException
Throws:
PortalException

getGroupFileEntriesCount

public static int getGroupFileEntriesCount(HttpPrincipal httpPrincipal,
                                           long groupId,
                                           long userId,
                                           long rootFolderId,
                                           String[] mimeTypes,
                                           int status)
                                    throws PortalException
Throws:
PortalException

getMountFolders

public static List<Folder> getMountFolders(HttpPrincipal httpPrincipal,
                                           long repositoryId,
                                           long parentFolderId)
                                    throws PortalException
Throws:
PortalException

getMountFolders

public static List<Folder> getMountFolders(HttpPrincipal httpPrincipal,
                                           long repositoryId,
                                           long parentFolderId,
                                           int start,
                                           int end)
                                    throws PortalException
Throws:
PortalException

getMountFolders

public static List<Folder> getMountFolders(HttpPrincipal httpPrincipal,
                                           long repositoryId,
                                           long parentFolderId,
                                           int start,
                                           int end,
                                           OrderByComparator<Folder> obc)
                                    throws PortalException
Throws:
PortalException

getMountFoldersCount

public static int getMountFoldersCount(HttpPrincipal httpPrincipal,
                                       long repositoryId,
                                       long parentFolderId)
                                throws PortalException
Throws:
PortalException

getSubfolderIds

public static void getSubfolderIds(HttpPrincipal httpPrincipal,
                                   long repositoryId,
                                   List<Long> folderIds,
                                   long folderId)
                            throws PortalException
Throws:
PortalException

getSubfolderIds

public static List<Long> getSubfolderIds(HttpPrincipal httpPrincipal,
                                         long repositoryId,
                                         long folderId)
                                  throws PortalException
Throws:
PortalException

getSubfolderIds

public static List<Long> getSubfolderIds(HttpPrincipal httpPrincipal,
                                         long repositoryId,
                                         long folderId,
                                         boolean recurse)
                                  throws PortalException
Throws:
PortalException

getTempFileNames

public static String[] getTempFileNames(HttpPrincipal httpPrincipal,
                                        long groupId,
                                        long folderId,
                                        String folderName)
                                 throws PortalException
Throws:
PortalException

lockFolder

public static Lock lockFolder(HttpPrincipal httpPrincipal,
                              long repositoryId,
                              long folderId)
                       throws PortalException
Throws:
PortalException

lockFolder

public static Lock lockFolder(HttpPrincipal httpPrincipal,
                              long repositoryId,
                              long folderId,
                              String owner,
                              boolean inheritable,
                              long expirationTime)
                       throws PortalException
Throws:
PortalException

moveFileEntry

public static FileEntry moveFileEntry(HttpPrincipal httpPrincipal,
                                      long fileEntryId,
                                      long newFolderId,
                                      ServiceContext serviceContext)
                               throws PortalException
Throws:
PortalException

moveFolder

public static Folder moveFolder(HttpPrincipal httpPrincipal,
                                long folderId,
                                long parentFolderId,
                                ServiceContext serviceContext)
                         throws PortalException
Throws:
PortalException

refreshFileEntryLock

public static Lock refreshFileEntryLock(HttpPrincipal httpPrincipal,
                                        String lockUuid,
                                        long companyId,
                                        long expirationTime)
                                 throws PortalException
Throws:
PortalException

refreshFolderLock

public static Lock refreshFolderLock(HttpPrincipal httpPrincipal,
                                     String lockUuid,
                                     long companyId,
                                     long expirationTime)
                              throws PortalException
Throws:
PortalException

revertFileEntry

public static void revertFileEntry(HttpPrincipal httpPrincipal,
                                   long fileEntryId,
                                   String version,
                                   ServiceContext serviceContext)
                            throws PortalException
Throws:
PortalException

search

public static Hits search(HttpPrincipal httpPrincipal,
                          long repositoryId,
                          long creatorUserId,
                          int status,
                          int start,
                          int end)
                   throws PortalException
Throws:
PortalException

search

public static Hits search(HttpPrincipal httpPrincipal,
                          long repositoryId,
                          long creatorUserId,
                          long folderId,
                          String[] mimeTypes,
                          int status,
                          int start,
                          int end)
                   throws PortalException
Throws:
PortalException

search

public static Hits search(HttpPrincipal httpPrincipal,
                          long repositoryId,
                          SearchContext searchContext)
                   throws SearchException
Throws:
SearchException

search

public static Hits search(HttpPrincipal httpPrincipal,
                          long repositoryId,
                          SearchContext searchContext,
                          Query query)
                   throws SearchException
Throws:
SearchException

subscribeFileEntryType

public static void subscribeFileEntryType(HttpPrincipal httpPrincipal,
                                          long groupId,
                                          long fileEntryTypeId)
                                   throws PortalException
Throws:
PortalException

subscribeFolder

public static void subscribeFolder(HttpPrincipal httpPrincipal,
                                   long groupId,
                                   long folderId)
                            throws PortalException
Throws:
PortalException

unlockFileEntry

public static void unlockFileEntry(HttpPrincipal httpPrincipal,
                                   long fileEntryId)
                            throws PortalException
Throws:
PortalException

unlockFileEntry

public static void unlockFileEntry(HttpPrincipal httpPrincipal,
                                   long fileEntryId,
                                   String lockUuid)
                            throws PortalException
Throws:
PortalException

unlockFolder

public static void unlockFolder(HttpPrincipal httpPrincipal,
                                long repositoryId,
                                long folderId,
                                String lockUuid)
                         throws PortalException
Throws:
PortalException

unlockFolder

public static void unlockFolder(HttpPrincipal httpPrincipal,
                                long repositoryId,
                                long parentFolderId,
                                String name,
                                String lockUuid)
                         throws PortalException
Throws:
PortalException

unsubscribeFileEntryType

public static void unsubscribeFileEntryType(HttpPrincipal httpPrincipal,
                                            long groupId,
                                            long fileEntryTypeId)
                                     throws PortalException
Throws:
PortalException

unsubscribeFolder

public static void unsubscribeFolder(HttpPrincipal httpPrincipal,
                                     long groupId,
                                     long folderId)
                              throws PortalException
Throws:
PortalException

updateFileEntry

public static FileEntry updateFileEntry(HttpPrincipal httpPrincipal,
                                        long fileEntryId,
                                        String sourceFileName,
                                        String mimeType,
                                        String title,
                                        String description,
                                        String changeLog,
                                        boolean majorVersion,
                                        byte[] bytes,
                                        ServiceContext serviceContext)
                                 throws PortalException
Throws:
PortalException

updateFileEntry

public static FileEntry updateFileEntry(HttpPrincipal httpPrincipal,
                                        long fileEntryId,
                                        String sourceFileName,
                                        String mimeType,
                                        String title,
                                        String description,
                                        String changeLog,
                                        boolean majorVersion,
                                        File file,
                                        ServiceContext serviceContext)
                                 throws PortalException
Throws:
PortalException

updateFileEntry

public static FileEntry updateFileEntry(HttpPrincipal httpPrincipal,
                                        long fileEntryId,
                                        String sourceFileName,
                                        String mimeType,
                                        String title,
                                        String description,
                                        String changeLog,
                                        boolean majorVersion,
                                        InputStream is,
                                        long size,
                                        ServiceContext serviceContext)
                                 throws PortalException
Throws:
PortalException

updateFileEntryAndCheckIn

public static FileEntry updateFileEntryAndCheckIn(HttpPrincipal httpPrincipal,
                                                  long fileEntryId,
                                                  String sourceFileName,
                                                  String mimeType,
                                                  String title,
                                                  String description,
                                                  String changeLog,
                                                  boolean majorVersion,
                                                  File file,
                                                  ServiceContext serviceContext)
                                           throws PortalException
Throws:
PortalException

updateFileEntryAndCheckIn

public static FileEntry updateFileEntryAndCheckIn(HttpPrincipal httpPrincipal,
                                                  long fileEntryId,
                                                  String sourceFileName,
                                                  String mimeType,
                                                  String title,
                                                  String description,
                                                  String changeLog,
                                                  boolean majorVersion,
                                                  InputStream is,
                                                  long size,
                                                  ServiceContext serviceContext)
                                           throws PortalException
Throws:
PortalException

updateFileShortcut

public static FileShortcut updateFileShortcut(HttpPrincipal httpPrincipal,
                                              long fileShortcutId,
                                              long folderId,
                                              long toFileEntryId,
                                              ServiceContext serviceContext)
                                       throws PortalException
Throws:
PortalException

updateFolder

public static Folder updateFolder(HttpPrincipal httpPrincipal,
                                  long folderId,
                                  String name,
                                  String description,
                                  ServiceContext serviceContext)
                           throws PortalException
Throws:
PortalException

verifyFileEntryCheckOut

public static boolean verifyFileEntryCheckOut(HttpPrincipal httpPrincipal,
                                              long repositoryId,
                                              long fileEntryId,
                                              String lockUuid)
                                       throws PortalException
Throws:
PortalException

verifyFileEntryLock

public static boolean verifyFileEntryLock(HttpPrincipal httpPrincipal,
                                          long repositoryId,
                                          long fileEntryId,
                                          String lockUuid)
                                   throws PortalException
Throws:
PortalException

verifyInheritableLock

public static boolean verifyInheritableLock(HttpPrincipal httpPrincipal,
                                            long repositoryId,
                                            long folderId,
                                            String lockUuid)
                                     throws PortalException
Throws:
PortalException

Liferay 7.0-ce-b4