com.liferay.portlet.documentlibrary.service.http
Class DLFileEntryServiceHttp
java.lang.Object
com.liferay.portlet.documentlibrary.service.http.DLFileEntryServiceHttp
public class DLFileEntryServiceHttp
- extends java.lang.Object
View Source
ServiceBuilder generated this class. Modifications in this class will be
overwritten the next time is generated.
This class provides a HTTP utility for the
DLFileEntryServiceUtil
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.
- Author:
- Brian Wing Shun Chan
- See Also:
DLFileEntryServiceSoap
,
HttpPrincipal
,
DLFileEntryServiceUtil
- Generated:
Method Summary |
static com.liferay.portlet.documentlibrary.model.DLFileEntry |
addFileEntry(HttpPrincipal httpPrincipal,
long groupId,
long folderId,
java.lang.String name,
java.lang.String title,
java.lang.String description,
java.lang.String versionDescription,
java.lang.String extraSettings,
byte[] bytes,
com.liferay.portal.service.ServiceContext serviceContext)
|
static com.liferay.portlet.documentlibrary.model.DLFileEntry |
addFileEntry(HttpPrincipal httpPrincipal,
long groupId,
long folderId,
java.lang.String name,
java.lang.String title,
java.lang.String description,
java.lang.String versionDescription,
java.lang.String extraSettings,
java.io.File file,
com.liferay.portal.service.ServiceContext serviceContext)
|
static void |
deleteFileEntry(HttpPrincipal httpPrincipal,
long groupId,
long folderId,
java.lang.String name)
|
static void |
deleteFileEntry(HttpPrincipal httpPrincipal,
long groupId,
long folderId,
java.lang.String name,
java.lang.String version)
|
static void |
deleteFileEntryByTitle(HttpPrincipal httpPrincipal,
long groupId,
long folderId,
java.lang.String titleWithExtension)
|
static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> |
getFileEntries(HttpPrincipal httpPrincipal,
long groupId,
long folderId)
|
static com.liferay.portlet.documentlibrary.model.DLFileEntry |
getFileEntry(HttpPrincipal httpPrincipal,
long groupId,
long folderId,
java.lang.String name)
|
static com.liferay.portlet.documentlibrary.model.DLFileEntry |
getFileEntryByTitle(HttpPrincipal httpPrincipal,
long groupId,
long folderId,
java.lang.String titleWithExtension)
|
static boolean |
hasFileEntryLock(HttpPrincipal httpPrincipal,
long groupId,
long folderId,
java.lang.String name)
|
static com.liferay.portal.model.Lock |
lockFileEntry(HttpPrincipal httpPrincipal,
long groupId,
long folderId,
java.lang.String name)
|
static com.liferay.portal.model.Lock |
lockFileEntry(HttpPrincipal httpPrincipal,
long groupId,
long folderId,
java.lang.String name,
java.lang.String owner,
long expirationTime)
|
static com.liferay.portal.model.Lock |
refreshFileEntryLock(HttpPrincipal httpPrincipal,
java.lang.String lockUuid,
long expirationTime)
|
static void |
unlockFileEntry(HttpPrincipal httpPrincipal,
long groupId,
long folderId,
java.lang.String name)
|
static void |
unlockFileEntry(HttpPrincipal httpPrincipal,
long groupId,
long folderId,
java.lang.String name,
java.lang.String lockUuid)
|
static com.liferay.portlet.documentlibrary.model.DLFileEntry |
updateFileEntry(HttpPrincipal httpPrincipal,
long groupId,
long folderId,
long newFolderId,
java.lang.String name,
java.lang.String sourceFileName,
java.lang.String title,
java.lang.String description,
java.lang.String versionDescription,
boolean majorVersion,
java.lang.String extraSettings,
byte[] bytes,
com.liferay.portal.service.ServiceContext serviceContext)
|
static com.liferay.portlet.documentlibrary.model.DLFileEntry |
updateFileEntry(HttpPrincipal httpPrincipal,
long groupId,
long folderId,
long newFolderId,
java.lang.String name,
java.lang.String sourceFileName,
java.lang.String title,
java.lang.String description,
java.lang.String versionDescription,
boolean majorVersion,
java.lang.String extraSettings,
java.io.File file,
com.liferay.portal.service.ServiceContext serviceContext)
|
static boolean |
verifyFileEntryLock(HttpPrincipal httpPrincipal,
long groupId,
long folderId,
java.lang.String name,
java.lang.String lockUuid)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DLFileEntryServiceHttp
public DLFileEntryServiceHttp()
addFileEntry
public static com.liferay.portlet.documentlibrary.model.DLFileEntry addFileEntry(HttpPrincipal httpPrincipal,
long groupId,
long folderId,
java.lang.String name,
java.lang.String title,
java.lang.String description,
java.lang.String versionDescription,
java.lang.String extraSettings,
byte[] bytes,
com.liferay.portal.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException
addFileEntry
public static com.liferay.portlet.documentlibrary.model.DLFileEntry addFileEntry(HttpPrincipal httpPrincipal,
long groupId,
long folderId,
java.lang.String name,
java.lang.String title,
java.lang.String description,
java.lang.String versionDescription,
java.lang.String extraSettings,
java.io.File file,
com.liferay.portal.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException
deleteFileEntry
public static void deleteFileEntry(HttpPrincipal httpPrincipal,
long groupId,
long folderId,
java.lang.String name)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException
deleteFileEntry
public static void deleteFileEntry(HttpPrincipal httpPrincipal,
long groupId,
long folderId,
java.lang.String name,
java.lang.String version)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException
deleteFileEntryByTitle
public static void deleteFileEntryByTitle(HttpPrincipal httpPrincipal,
long groupId,
long folderId,
java.lang.String titleWithExtension)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException
getFileEntries
public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getFileEntries(HttpPrincipal httpPrincipal,
long groupId,
long folderId)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException
getFileEntry
public static com.liferay.portlet.documentlibrary.model.DLFileEntry getFileEntry(HttpPrincipal httpPrincipal,
long groupId,
long folderId,
java.lang.String name)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException
getFileEntryByTitle
public static com.liferay.portlet.documentlibrary.model.DLFileEntry getFileEntryByTitle(HttpPrincipal httpPrincipal,
long groupId,
long folderId,
java.lang.String titleWithExtension)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException
hasFileEntryLock
public static boolean hasFileEntryLock(HttpPrincipal httpPrincipal,
long groupId,
long folderId,
java.lang.String name)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException
lockFileEntry
public static com.liferay.portal.model.Lock lockFileEntry(HttpPrincipal httpPrincipal,
long groupId,
long folderId,
java.lang.String name)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException
lockFileEntry
public static com.liferay.portal.model.Lock lockFileEntry(HttpPrincipal httpPrincipal,
long groupId,
long folderId,
java.lang.String name,
java.lang.String owner,
long expirationTime)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException
refreshFileEntryLock
public static com.liferay.portal.model.Lock refreshFileEntryLock(HttpPrincipal httpPrincipal,
java.lang.String lockUuid,
long expirationTime)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException
unlockFileEntry
public static void unlockFileEntry(HttpPrincipal httpPrincipal,
long groupId,
long folderId,
java.lang.String name)
throws com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.SystemException
unlockFileEntry
public static void unlockFileEntry(HttpPrincipal httpPrincipal,
long groupId,
long folderId,
java.lang.String name,
java.lang.String lockUuid)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException
updateFileEntry
public static com.liferay.portlet.documentlibrary.model.DLFileEntry updateFileEntry(HttpPrincipal httpPrincipal,
long groupId,
long folderId,
long newFolderId,
java.lang.String name,
java.lang.String sourceFileName,
java.lang.String title,
java.lang.String description,
java.lang.String versionDescription,
boolean majorVersion,
java.lang.String extraSettings,
byte[] bytes,
com.liferay.portal.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException
updateFileEntry
public static com.liferay.portlet.documentlibrary.model.DLFileEntry updateFileEntry(HttpPrincipal httpPrincipal,
long groupId,
long folderId,
long newFolderId,
java.lang.String name,
java.lang.String sourceFileName,
java.lang.String title,
java.lang.String description,
java.lang.String versionDescription,
boolean majorVersion,
java.lang.String extraSettings,
java.io.File file,
com.liferay.portal.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException
verifyFileEntryLock
public static boolean verifyFileEntryLock(HttpPrincipal httpPrincipal,
long groupId,
long folderId,
java.lang.String name,
java.lang.String lockUuid)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException