@ProviderType
public class DLTrashServiceSoap
extends Object
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.
DLTrashServiceHttp
,
DLTrashServiceUtil
Constructor and Description |
---|
DLTrashServiceSoap() |
Modifier and Type | Method and Description |
---|---|
static com.liferay.portal.kernel.repository.model.FileEntrySoap |
moveFileEntryFromTrash(long fileEntryId,
long newFolderId,
com.liferay.portal.kernel.service.ServiceContext serviceContext)
Moves the file entry from a trashed folder to the new folder.
|
static com.liferay.portal.kernel.repository.model.FileEntrySoap |
moveFileEntryToTrash(long fileEntryId)
Moves the file entry with the primary key to the trash portlet.
|
static com.liferay.portal.kernel.repository.model.FolderSoap |
moveFolderFromTrash(long folderId,
long parentFolderId,
com.liferay.portal.kernel.service.ServiceContext serviceContext)
Moves the folder with the primary key from the trash portlet to the new
parent folder with the primary key.
|
static com.liferay.portal.kernel.repository.model.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.
|
public static com.liferay.portal.kernel.repository.model.FileEntrySoap moveFileEntryFromTrash(long fileEntryId, long newFolderId, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws RemoteException
fileEntryId
- the primary key of the file entrynewFolderId
- the primary key of the new folderserviceContext
- the service context to be appliedRemoteException
public static com.liferay.portal.kernel.repository.model.FileEntrySoap moveFileEntryToTrash(long fileEntryId) throws RemoteException
fileEntryId
- the primary key of the file entryRemoteException
public static com.liferay.portal.kernel.repository.model.FolderSoap moveFolderFromTrash(long folderId, long parentFolderId, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws RemoteException
folderId
- the primary key of the folderparentFolderId
- the primary key of the new parent folderserviceContext
- the service context to be appliedRemoteException
public static com.liferay.portal.kernel.repository.model.FolderSoap moveFolderToTrash(long folderId) throws RemoteException
folderId
- the primary key of the folderRemoteException
public static void restoreFileEntryFromTrash(long fileEntryId) throws RemoteException
fileEntryId
- the primary key of the file entryRemoteException
public static void restoreFileShortcutFromTrash(long fileShortcutId) throws RemoteException
fileShortcutId
- the primary key of the file shortcutRemoteException
public static void restoreFolderFromTrash(long folderId) throws RemoteException
folderId
- the primary key of the folderRemoteException