Liferay 6.1.2-ce-ga3

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

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

public class DLAppServiceHttp
extends Object

This class provides a 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 DLFileShortcut 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 String addTempFileEntry(HttpPrincipal httpPrincipal, long groupId, long folderId, String fileName, String tempFolderName, File file)
           
static String addTempFileEntry(HttpPrincipal httpPrincipal, long groupId, long folderId, String fileName, String tempFolderName, InputStream inputStream)
           
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 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 fileName, String tempFolderName)
           
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 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 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 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 DLFileShortcut getFileShortcut(HttpPrincipal httpPrincipal, long fileShortcutId)
           
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 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 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 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 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 obc)
           
static List<FileEntry> getGroupFileEntries(HttpPrincipal httpPrincipal, long groupId, long userId, long rootFolderId, String[] mimeTypes, int status, int start, int end, OrderByComparator 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 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[] getTempFileEntryNames(HttpPrincipal httpPrincipal, long groupId, long folderId, String tempFolderName)
           
static Lock lockFileEntry(HttpPrincipal httpPrincipal, long fileEntryId)
           
static Lock lockFileEntry(HttpPrincipal httpPrincipal, long fileEntryId, String owner, long expirationTime)
           
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 expirationTime)
           
static Lock refreshFolderLock(HttpPrincipal httpPrincipal, String lockUuid, long expirationTime)
           
static void revertFileEntry(HttpPrincipal httpPrincipal, long fileEntryId, String version, ServiceContext serviceContext)
           
static Hits search(HttpPrincipal httpPrincipal, long repositoryId, SearchContext searchContext)
           
static Hits search(HttpPrincipal httpPrincipal, long repositoryId, SearchContext searchContext, Query query)
           
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 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 DLFileShortcut 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,
                                     SystemException
Throws:
PortalException
SystemException

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,
                                     SystemException
Throws:
PortalException
SystemException

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,
                                     SystemException
Throws:
PortalException
SystemException

addFileShortcut

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

addFolder

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

addTempFileEntry

public static String addTempFileEntry(HttpPrincipal httpPrincipal,
                                      long groupId,
                                      long folderId,
                                      String fileName,
                                      String tempFolderName,
                                      File file)
                               throws PortalException,
                                      SystemException,
                                      IOException
Throws:
PortalException
SystemException
IOException

addTempFileEntry

public static String addTempFileEntry(HttpPrincipal httpPrincipal,
                                      long groupId,
                                      long folderId,
                                      String fileName,
                                      String tempFolderName,
                                      InputStream inputStream)
                               throws PortalException,
                                      SystemException
Throws:
PortalException
SystemException

cancelCheckOut

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

checkInFileEntry

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

checkInFileEntry

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

checkOutFileEntry

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

checkOutFileEntry

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

copyFolder

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

deleteFileEntry

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

deleteFileEntryByTitle

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

deleteFileShortcut

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

deleteFileVersion

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

deleteFolder

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

deleteFolder

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

deleteTempFileEntry

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

getFileEntries

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

getFileEntries

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

getFileEntries

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

getFileEntries

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

getFileEntries

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

getFileEntries

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

getFileEntriesAndFileShortcuts

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

getFileEntriesAndFileShortcutsCount

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

getFileEntriesAndFileShortcutsCount

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

getFileEntriesCount

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

getFileEntriesCount

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

getFileEntry

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

getFileEntry

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

getFileEntryByUuidAndGroupId

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

getFileShortcut

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

getFolder

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

getFolder

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

getFolders

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

getFolders

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

getFolders

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

getFolders

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

getFolders

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

getFolders

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

getFoldersAndFileEntriesAndFileShortcuts

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

getFoldersAndFileEntriesAndFileShortcuts

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

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,
                                                                    SystemException
Throws:
PortalException
SystemException

getFoldersAndFileEntriesAndFileShortcutsCount

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

getFoldersAndFileEntriesAndFileShortcutsCount

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

getFoldersCount

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

getFoldersCount

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

getFoldersFileEntriesCount

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

getGroupFileEntries

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

getGroupFileEntries

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

getGroupFileEntries

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

getGroupFileEntries

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

getGroupFileEntries

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

getGroupFileEntriesCount

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

getGroupFileEntriesCount

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

getGroupFileEntriesCount

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

getMountFolders

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

getMountFolders

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

getMountFolders

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

getMountFoldersCount

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

getSubfolderIds

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

getSubfolderIds

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

getSubfolderIds

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

getTempFileEntryNames

public static String[] getTempFileEntryNames(HttpPrincipal httpPrincipal,
                                             long groupId,
                                             long folderId,
                                             String tempFolderName)
                                      throws PortalException,
                                             SystemException
Throws:
PortalException
SystemException

lockFileEntry

public static Lock lockFileEntry(HttpPrincipal httpPrincipal,
                                 long fileEntryId)
                          throws PortalException,
                                 SystemException
Throws:
PortalException
SystemException

lockFileEntry

public static Lock lockFileEntry(HttpPrincipal httpPrincipal,
                                 long fileEntryId,
                                 String owner,
                                 long expirationTime)
                          throws PortalException,
                                 SystemException
Throws:
PortalException
SystemException

lockFolder

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

lockFolder

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

moveFileEntry

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

moveFolder

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

refreshFileEntryLock

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

refreshFolderLock

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

revertFileEntry

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

search

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

search

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

unlockFileEntry

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

unlockFileEntry

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

unlockFolder

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

unlockFolder

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

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,
                                        SystemException
Throws:
PortalException
SystemException

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,
                                        SystemException
Throws:
PortalException
SystemException

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,
                                        SystemException
Throws:
PortalException
SystemException

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,
                                                  SystemException
Throws:
PortalException
SystemException

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,
                                                  SystemException
Throws:
PortalException
SystemException

updateFileShortcut

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

updateFolder

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

verifyFileEntryCheckOut

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

verifyFileEntryLock

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

verifyInheritableLock

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

Liferay 6.1.2-ce-ga3