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,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
static SyncDLObject |
addFolder(long repositoryId,
long parentFolderId,
java.lang.String name,
java.lang.String description,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
static SyncDLObject |
cancelCheckOut(long fileEntryId) |
static SyncDLObject |
checkInFileEntry(long fileEntryId,
boolean majorVersion,
java.lang.String changeLog,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
static SyncDLObject |
checkOutFileEntry(long fileEntryId,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
static SyncDLObject |
checkOutFileEntry(long fileEntryId,
java.lang.String owner,
long expirationTime,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
static SyncDLObject |
copyFileEntry(long sourceFileEntryId,
long repositoryId,
long folderId,
java.lang.String sourceFileName,
java.lang.String title,
com.liferay.portal.kernel.service.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 com.liferay.portal.kernel.model.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<com.liferay.portal.kernel.model.Group> |
getUserSitesGroups() |
static SyncDLObject |
moveFileEntry(long fileEntryId,
long newFolderId,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
static SyncDLObject |
moveFileEntryToTrash(long fileEntryId) |
static SyncDLObject |
moveFolder(long folderId,
long parentFolderId,
com.liferay.portal.kernel.service.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,
com.liferay.portal.kernel.service.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,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
static SyncDLObject |
updateFolder(long folderId,
java.lang.String name,
java.lang.String description,
com.liferay.portal.kernel.service.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, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static SyncDLObject addFolder(long repositoryId, long parentFolderId, java.lang.String name, java.lang.String description, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static SyncDLObject cancelCheckOut(long fileEntryId) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static SyncDLObject checkInFileEntry(long fileEntryId, boolean majorVersion, java.lang.String changeLog, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static SyncDLObject checkOutFileEntry(long fileEntryId, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static SyncDLObject checkOutFileEntry(long fileEntryId, java.lang.String owner, long expirationTime, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static SyncDLObject copyFileEntry(long sourceFileEntryId, long repositoryId, long folderId, java.lang.String sourceFileName, java.lang.String title, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static java.util.List<SyncDLObject> getAllFolderSyncDLObjects(long repositoryId) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static SyncDLObject getFileEntrySyncDLObject(long repositoryId, long folderId, java.lang.String title) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static java.util.List<SyncDLObject> getFileEntrySyncDLObjects(long repositoryId, long folderId) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static SyncDLObject getFolderSyncDLObject(long folderId) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static SyncDLObject getFolderSyncDLObject(long repositoryId, long parentFolderId, java.lang.String name) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static java.util.List<SyncDLObject> getFolderSyncDLObjects(long repositoryId, long parentFolderId) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static com.liferay.portal.kernel.model.Group getGroup(long groupId) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static long getLatestModifiedTime() throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static java.lang.String getOSGiServiceIdentifier()
public static java.lang.Object getSyncContext() throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static java.lang.String getSyncDLObjectUpdate(long repositoryId, long lastAccessTime, int max) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static java.lang.String getSyncDLObjectUpdate(long repositoryId, long lastAccessTime, int max, boolean retrieveFromCache) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static java.lang.String getSyncDLObjectUpdate(long repositoryId, long parentFolderId, long lastAccessTime) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static java.util.List<com.liferay.portal.kernel.model.Group> getUserSitesGroups() throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static SyncDLObject moveFileEntry(long fileEntryId, long newFolderId, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static SyncDLObject moveFileEntryToTrash(long fileEntryId) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static SyncDLObject moveFolder(long folderId, long parentFolderId, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static SyncDLObject moveFolderToTrash(long folderId) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public 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, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static SyncDLObject restoreFileEntryFromTrash(long fileEntryId) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static SyncDLObject restoreFolderFromTrash(long folderId) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static java.util.Map<java.lang.String,java.lang.Object> updateFileEntries(java.io.File zipFile) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public 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, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static SyncDLObject updateFolder(long folderId, java.lang.String name, java.lang.String description, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static SyncDLObjectService getService()