public class SyncUtil
extends java.lang.Object
| Constructor and Description |
|---|
SyncUtil() |
| Modifier and Type | Method and Description |
|---|---|
static void |
addSyncDLObject(com.liferay.sync.model.SyncDLObject syncDLObject) |
static java.lang.String |
buildExceptionMessage(java.lang.Throwable throwable) |
static void |
checkSyncEnabled(long groupId) |
static java.lang.String |
getChecksum(com.liferay.document.library.kernel.model.DLFileVersion dlFileVersion) |
static java.lang.String |
getChecksum(java.io.File file) |
static java.io.File |
getFileDelta(java.io.File sourceFile,
java.io.File targetFile) |
static boolean |
isSupportedFolder(com.liferay.document.library.kernel.model.DLFolder dlFolder) |
static boolean |
isSupportedFolder(com.liferay.portal.kernel.repository.model.Folder folder) |
static boolean |
isSyncEnabled(com.liferay.portal.kernel.model.Group group) |
static void |
patchFile(java.io.File originalFile,
java.io.File deltaFile,
java.io.File patchedFile) |
static void |
setFilePermissions(com.liferay.portal.kernel.model.Group group,
boolean folder,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
static com.liferay.sync.model.SyncDLObject |
toSyncDLObject(com.liferay.document.library.kernel.model.DLFileEntry dlFileEntry,
java.lang.String event,
boolean calculateChecksum) |
static com.liferay.sync.model.SyncDLObject |
toSyncDLObject(com.liferay.document.library.kernel.model.DLFileEntry dlFileEntry,
java.lang.String event,
boolean calculateChecksum,
boolean excludeWorkingCopy) |
static com.liferay.sync.model.SyncDLObject |
toSyncDLObject(com.liferay.document.library.kernel.model.DLFolder dlFolder,
long userId,
java.lang.String userName,
java.lang.String event) |
static com.liferay.sync.model.SyncDLObject |
toSyncDLObject(com.liferay.document.library.kernel.model.DLFolder dlFolder,
java.lang.String event) |
static com.liferay.sync.model.SyncDLObject |
toSyncDLObject(com.liferay.portal.kernel.repository.model.FileEntry fileEntry,
java.lang.String event) |
static com.liferay.sync.model.SyncDLObject |
toSyncDLObject(com.liferay.portal.kernel.repository.model.FileEntry fileEntry,
java.lang.String event,
boolean calculateChecksum) |
static com.liferay.sync.model.SyncDLObject |
toSyncDLObject(com.liferay.portal.kernel.repository.model.Folder folder,
java.lang.String event) |
public static void addSyncDLObject(com.liferay.sync.model.SyncDLObject syncDLObject)
throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalExceptionpublic static java.lang.String buildExceptionMessage(java.lang.Throwable throwable)
public static void checkSyncEnabled(long groupId)
throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalExceptionpublic static java.lang.String getChecksum(com.liferay.document.library.kernel.model.DLFileVersion dlFileVersion)
throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalExceptionpublic static java.lang.String getChecksum(java.io.File file)
throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalExceptionpublic static java.io.File getFileDelta(java.io.File sourceFile,
java.io.File targetFile)
throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalExceptionpublic static boolean isSupportedFolder(com.liferay.document.library.kernel.model.DLFolder dlFolder)
public static boolean isSupportedFolder(com.liferay.portal.kernel.repository.model.Folder folder)
public static boolean isSyncEnabled(com.liferay.portal.kernel.model.Group group)
public static void patchFile(java.io.File originalFile,
java.io.File deltaFile,
java.io.File patchedFile)
throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalExceptionpublic static void setFilePermissions(com.liferay.portal.kernel.model.Group group,
boolean folder,
com.liferay.portal.kernel.service.ServiceContext serviceContext)
public static com.liferay.sync.model.SyncDLObject toSyncDLObject(com.liferay.document.library.kernel.model.DLFileEntry dlFileEntry,
java.lang.String event,
boolean calculateChecksum)
throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalExceptionpublic static com.liferay.sync.model.SyncDLObject toSyncDLObject(com.liferay.document.library.kernel.model.DLFileEntry dlFileEntry,
java.lang.String event,
boolean calculateChecksum,
boolean excludeWorkingCopy)
throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalExceptionpublic static com.liferay.sync.model.SyncDLObject toSyncDLObject(com.liferay.document.library.kernel.model.DLFolder dlFolder,
long userId,
java.lang.String userName,
java.lang.String event)
public static com.liferay.sync.model.SyncDLObject toSyncDLObject(com.liferay.document.library.kernel.model.DLFolder dlFolder,
java.lang.String event)
public static com.liferay.sync.model.SyncDLObject toSyncDLObject(com.liferay.portal.kernel.repository.model.FileEntry fileEntry,
java.lang.String event)
throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalExceptionpublic static com.liferay.sync.model.SyncDLObject toSyncDLObject(com.liferay.portal.kernel.repository.model.FileEntry fileEntry,
java.lang.String event,
boolean calculateChecksum)
throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalExceptionpublic static com.liferay.sync.model.SyncDLObject toSyncDLObject(com.liferay.portal.kernel.repository.model.Folder folder,
java.lang.String event)
throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException