Liferay 7.0-ce-b4

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

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

@ProviderType
public class DLTrashServiceHttp
extends Object

Provides the HTTP utility for the DLTrashServiceUtil 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:
DLTrashServiceSoap, HttpPrincipal, DLTrashServiceUtil
ServiceBuilder generated this class. Modifications in this class will be overwritten the next time it is generated.

Constructor Summary
DLTrashServiceHttp()
           
 
Method Summary
static FileEntry moveFileEntryFromTrash(HttpPrincipal httpPrincipal, long fileEntryId, long newFolderId, ServiceContext serviceContext)
           
static FileEntry moveFileEntryToTrash(HttpPrincipal httpPrincipal, long fileEntryId)
           
static FileShortcut moveFileShortcutFromTrash(HttpPrincipal httpPrincipal, long fileShortcutId, long newFolderId, ServiceContext serviceContext)
           
static FileShortcut moveFileShortcutToTrash(HttpPrincipal httpPrincipal, long fileShortcutId)
           
static Folder moveFolderFromTrash(HttpPrincipal httpPrincipal, long folderId, long parentFolderId, ServiceContext serviceContext)
           
static Folder moveFolderToTrash(HttpPrincipal httpPrincipal, long folderId)
           
static void restoreFileEntryFromTrash(HttpPrincipal httpPrincipal, long fileEntryId)
           
static void restoreFileShortcutFromTrash(HttpPrincipal httpPrincipal, long fileShortcutId)
           
static void restoreFolderFromTrash(HttpPrincipal httpPrincipal, long folderId)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DLTrashServiceHttp

public DLTrashServiceHttp()
Method Detail

moveFileEntryFromTrash

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

moveFileEntryToTrash

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

moveFileShortcutFromTrash

public static FileShortcut moveFileShortcutFromTrash(HttpPrincipal httpPrincipal,
                                                     long fileShortcutId,
                                                     long newFolderId,
                                                     ServiceContext serviceContext)
                                              throws PortalException
Throws:
PortalException

moveFileShortcutToTrash

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

moveFolderFromTrash

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

moveFolderToTrash

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

restoreFileEntryFromTrash

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

restoreFileShortcutFromTrash

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

restoreFolderFromTrash

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

Liferay 7.0-ce-b4