public class SyncDLObjectServiceUtil
extends java.lang.Object
com.liferay.sync.service.impl.SyncDLObjectServiceImpl and is an
access point for service operations in application layer code running on a
remote server. Methods of this service are expected to have security checks
based on the propagated JAAS credentials because this service can be
accessed remotely.SyncDLObjectService| Constructor and Description |
|---|
SyncDLObjectServiceUtil() |
| Modifier and Type | Method and Description |
|---|---|
static SyncDLObject |
addFileEntry(long repositoryId,
long folderId,
java.lang.String sourceFileName,
java.lang.String mimeType,
java.lang.String title,
java.lang.String description,
java.lang.String changeLog,
java.io.File file,
java.lang.String checksum,
ServiceContext serviceContext) |
static SyncDLObject |
addFolder(long repositoryId,
long parentFolderId,
java.lang.String name,
java.lang.String description,
ServiceContext serviceContext) |
static SyncDLObject |
cancelCheckOut(long fileEntryId) |
static SyncDLObject |
checkInFileEntry(long fileEntryId,
boolean majorVersion,
java.lang.String changeLog,
ServiceContext serviceContext) |
static SyncDLObject |
checkOutFileEntry(long fileEntryId,
ServiceContext serviceContext) |
static SyncDLObject |
checkOutFileEntry(long fileEntryId,
java.lang.String owner,
long expirationTime,
ServiceContext serviceContext) |
static SyncDLObject |
copyFileEntry(long sourceFileEntryId,
long repositoryId,
long folderId,
java.lang.String sourceFileName,
java.lang.String title,
ServiceContext serviceContext) |
static java.util.List<SyncDLObject> |
getAllFolderSyncDLObjects(long repositoryId) |
static SyncDLObject |
getFileEntrySyncDLObject(long repositoryId,
long folderId,
java.lang.String title) |
static java.util.List<SyncDLObject> |
getFileEntrySyncDLObjects(long repositoryId,
long folderId) |
static SyncDLObject |
getFolderSyncDLObject(long folderId) |
static SyncDLObject |
getFolderSyncDLObject(long repositoryId,
long parentFolderId,
java.lang.String name) |
static java.util.List<SyncDLObject> |
getFolderSyncDLObjects(long repositoryId,
long parentFolderId) |
static Group |
getGroup(long groupId) |
static long |
getLatestModifiedTime() |
static java.lang.String |
getOSGiServiceIdentifier()
Returns the OSGi service identifier.
|
static SyncDLObjectService |
getService() |
static java.lang.Object |
getSyncContext() |
static java.lang.String |
getSyncDLObjectUpdate(long repositoryId,
long lastAccessTime,
int max) |
static java.lang.String |
getSyncDLObjectUpdate(long repositoryId,
long lastAccessTime,
int max,
boolean retrieveFromCache) |
static java.lang.String |
getSyncDLObjectUpdate(long repositoryId,
long parentFolderId,
long lastAccessTime) |
static java.util.List<Group> |
getUserSitesGroups() |
static SyncDLObject |
moveFileEntry(long fileEntryId,
long newFolderId,
ServiceContext serviceContext) |
static SyncDLObject |
moveFileEntryToTrash(long fileEntryId) |
static SyncDLObject |
moveFolder(long folderId,
long parentFolderId,
ServiceContext serviceContext) |
static SyncDLObject |
moveFolderToTrash(long folderId) |
static SyncDLObject |
patchFileEntry(long fileEntryId,
long sourceVersionId,
java.lang.String sourceFileName,
java.lang.String mimeType,
java.lang.String title,
java.lang.String description,
java.lang.String changeLog,
boolean majorVersion,
java.io.File deltaFile,
java.lang.String checksum,
ServiceContext serviceContext) |
static SyncDLObject |
restoreFileEntryFromTrash(long fileEntryId) |
static SyncDLObject |
restoreFolderFromTrash(long folderId) |
static java.util.Map<java.lang.String,java.lang.Object> |
updateFileEntries(java.io.File zipFile) |
static SyncDLObject |
updateFileEntry(long fileEntryId,
java.lang.String sourceFileName,
java.lang.String mimeType,
java.lang.String title,
java.lang.String description,
java.lang.String changeLog,
boolean majorVersion,
java.io.File file,
java.lang.String checksum,
ServiceContext serviceContext) |
static SyncDLObject |
updateFolder(long folderId,
java.lang.String name,
java.lang.String description,
ServiceContext serviceContext) |
public static SyncDLObject addFileEntry(long repositoryId, long folderId, java.lang.String sourceFileName, java.lang.String mimeType, java.lang.String title, java.lang.String description, java.lang.String changeLog, java.io.File file, java.lang.String checksum, ServiceContext serviceContext) throws PortalException
PortalExceptionpublic static SyncDLObject addFolder(long repositoryId, long parentFolderId, java.lang.String name, java.lang.String description, ServiceContext serviceContext) throws PortalException
PortalExceptionpublic static SyncDLObject cancelCheckOut(long fileEntryId) throws PortalException
PortalExceptionpublic static SyncDLObject checkInFileEntry(long fileEntryId, boolean majorVersion, java.lang.String changeLog, ServiceContext serviceContext) throws PortalException
PortalExceptionpublic static SyncDLObject checkOutFileEntry(long fileEntryId, ServiceContext serviceContext) throws PortalException
PortalExceptionpublic static SyncDLObject checkOutFileEntry(long fileEntryId, java.lang.String owner, long expirationTime, ServiceContext serviceContext) throws PortalException
PortalExceptionpublic static SyncDLObject copyFileEntry(long sourceFileEntryId, long repositoryId, long folderId, java.lang.String sourceFileName, java.lang.String title, ServiceContext serviceContext) throws PortalException
PortalExceptionpublic static java.util.List<SyncDLObject> getAllFolderSyncDLObjects(long repositoryId) throws PortalException
PortalExceptionpublic static SyncDLObject getFileEntrySyncDLObject(long repositoryId, long folderId, java.lang.String title) throws PortalException
PortalExceptionpublic static java.util.List<SyncDLObject> getFileEntrySyncDLObjects(long repositoryId, long folderId) throws PortalException
PortalExceptionpublic static SyncDLObject getFolderSyncDLObject(long folderId) throws PortalException
PortalExceptionpublic static SyncDLObject getFolderSyncDLObject(long repositoryId, long parentFolderId, java.lang.String name) throws PortalException
PortalExceptionpublic static java.util.List<SyncDLObject> getFolderSyncDLObjects(long repositoryId, long parentFolderId) throws PortalException
PortalExceptionpublic static Group getGroup(long groupId) throws PortalException
PortalExceptionpublic static long getLatestModifiedTime()
throws PortalException
PortalExceptionpublic static java.lang.String getOSGiServiceIdentifier()
public static java.lang.Object getSyncContext()
throws PortalException
PortalExceptionpublic static java.lang.String getSyncDLObjectUpdate(long repositoryId,
long lastAccessTime,
int max)
throws PortalException
PortalExceptionpublic static java.lang.String getSyncDLObjectUpdate(long repositoryId,
long lastAccessTime,
int max,
boolean retrieveFromCache)
throws PortalException
PortalExceptionpublic static java.lang.String getSyncDLObjectUpdate(long repositoryId,
long parentFolderId,
long lastAccessTime)
throws PortalException
PortalExceptionpublic static java.util.List<Group> getUserSitesGroups() throws PortalException
PortalExceptionpublic static SyncDLObject moveFileEntry(long fileEntryId, long newFolderId, ServiceContext serviceContext) throws PortalException
PortalExceptionpublic static SyncDLObject moveFileEntryToTrash(long fileEntryId) throws PortalException
PortalExceptionpublic static SyncDLObject moveFolder(long folderId, long parentFolderId, ServiceContext serviceContext) throws PortalException
PortalExceptionpublic static SyncDLObject moveFolderToTrash(long folderId) throws PortalException
PortalExceptionpublic static SyncDLObject patchFileEntry(long fileEntryId, long sourceVersionId, java.lang.String sourceFileName, java.lang.String mimeType, java.lang.String title, java.lang.String description, java.lang.String changeLog, boolean majorVersion, java.io.File deltaFile, java.lang.String checksum, ServiceContext serviceContext) throws PortalException
PortalExceptionpublic static SyncDLObject restoreFileEntryFromTrash(long fileEntryId) throws PortalException
PortalExceptionpublic static SyncDLObject restoreFolderFromTrash(long folderId) throws PortalException
PortalExceptionpublic static java.util.Map<java.lang.String,java.lang.Object> updateFileEntries(java.io.File zipFile)
throws PortalException
PortalExceptionpublic static SyncDLObject updateFileEntry(long fileEntryId, java.lang.String sourceFileName, java.lang.String mimeType, java.lang.String title, java.lang.String description, java.lang.String changeLog, boolean majorVersion, java.io.File file, java.lang.String checksum, ServiceContext serviceContext) throws PortalException
PortalExceptionpublic static SyncDLObject updateFolder(long folderId, java.lang.String name, java.lang.String description, ServiceContext serviceContext) throws PortalException
PortalExceptionpublic static SyncDLObjectService getService()