Liferay 7.0-ce-b4

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

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

@ProviderType
public class DLTrashServiceSoap
extends Object

Provides the SOAP 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 is difficult for SOAP to support certain types.

The benefits of using the SOAP utility is that it is cross platform compatible. SOAP allows different languages like Java, .NET, C++, PHP, and even Perl, to call the generated services. One drawback of SOAP is that it is slow because it needs to serialize all calls into a text format (XML).

You can see a list of services at http://localhost:8080/api/axis. Set the property axis.servlet.hosts.allowed in portal.properties to configure security.

The SOAP utility is only generated for remote services.

See Also:
DLTrashServiceHttp, DLTrashServiceUtil
ServiceBuilder generated this class. Modifications in this class will be overwritten the next time it is generated.

Constructor Summary
DLTrashServiceSoap()
           
 
Method Summary
static FileEntrySoap moveFileEntryFromTrash(long fileEntryId, long newFolderId, ServiceContext serviceContext)
          Moves the file entry from a trashed folder to the new folder.
static FileEntrySoap moveFileEntryToTrash(long fileEntryId)
          Moves the file entry with the primary key to the trash portlet.
static FolderSoap moveFolderFromTrash(long folderId, long parentFolderId, ServiceContext serviceContext)
          Moves the folder with the primary key from the trash portlet to the new parent folder with the primary key.
static FolderSoap moveFolderToTrash(long folderId)
          Moves the folder with the primary key to the trash portlet.
static void restoreFileEntryFromTrash(long fileEntryId)
          Restores the file entry with the primary key from the trash portlet.
static void restoreFileShortcutFromTrash(long fileShortcutId)
          Restores the file shortcut with the primary key from the trash portlet.
static void restoreFolderFromTrash(long folderId)
          Restores the folder with the primary key from the trash portlet.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DLTrashServiceSoap

public DLTrashServiceSoap()
Method Detail

moveFileEntryFromTrash

public static FileEntrySoap moveFileEntryFromTrash(long fileEntryId,
                                                   long newFolderId,
                                                   ServiceContext serviceContext)
                                            throws RemoteException
Moves the file entry from a trashed folder to the new folder.

Parameters:
fileEntryId - the primary key of the file entry
newFolderId - the primary key of the new folder
serviceContext - the service context to be applied
Returns:
the file entry
Throws:
RemoteException

moveFileEntryToTrash

public static FileEntrySoap moveFileEntryToTrash(long fileEntryId)
                                          throws RemoteException
Moves the file entry with the primary key to the trash portlet.

Parameters:
fileEntryId - the primary key of the file entry
Returns:
the file entry
Throws:
RemoteException

moveFolderFromTrash

public static FolderSoap moveFolderFromTrash(long folderId,
                                             long parentFolderId,
                                             ServiceContext serviceContext)
                                      throws RemoteException
Moves the folder with the primary key from the trash portlet to the new parent folder with the primary key.

Parameters:
folderId - the primary key of the folder
parentFolderId - the primary key of the new parent folder
serviceContext - the service context to be applied
Returns:
the file entry
Throws:
RemoteException

moveFolderToTrash

public static FolderSoap moveFolderToTrash(long folderId)
                                    throws RemoteException
Moves the folder with the primary key to the trash portlet.

Parameters:
folderId - the primary key of the folder
Returns:
the file entry
Throws:
RemoteException

restoreFileEntryFromTrash

public static void restoreFileEntryFromTrash(long fileEntryId)
                                      throws RemoteException
Restores the file entry with the primary key from the trash portlet.

Parameters:
fileEntryId - the primary key of the file entry
Throws:
RemoteException

restoreFileShortcutFromTrash

public static void restoreFileShortcutFromTrash(long fileShortcutId)
                                         throws RemoteException
Restores the file shortcut with the primary key from the trash portlet.

Parameters:
fileShortcutId - the primary key of the file shortcut
Throws:
RemoteException

restoreFolderFromTrash

public static void restoreFolderFromTrash(long folderId)
                                   throws RemoteException
Restores the folder with the primary key from the trash portlet.

Parameters:
folderId - the primary key of the folder
Throws:
RemoteException

Liferay 7.0-ce-b4