public class DLAppHelperLocalServiceUtil
extends Object
com.liferay.portlet.documentlibrary.service.impl.DLAppHelperLocalServiceImpl and
is an access point for service operations in application layer code running
on the local server. Methods of this service will not have security checks
based on the propagated JAAS credentials because this service can only be
accessed from within the same VM.DLAppHelperLocalService| Constructor and Description |
|---|
DLAppHelperLocalServiceUtil() |
| Modifier and Type | Method and Description |
|---|---|
static void |
addFolder(long userId,
Folder folder,
ServiceContext serviceContext) |
static void |
cancelCheckOut(long userId,
FileEntry fileEntry,
FileVersion sourceFileVersion,
FileVersion destinationFileVersion,
FileVersion draftFileVersion,
ServiceContext serviceContext) |
static void |
cancelCheckOuts(long groupId) |
static void |
checkAssetEntry(long userId,
FileEntry fileEntry,
FileVersion fileVersion) |
static void |
deleteFileEntry(FileEntry fileEntry) |
static void |
deleteFolder(Folder folder) |
static void |
deleteRepositoryFileEntries(long repositoryId) |
static long |
getCheckedOutFileEntriesCount(long groupId) |
static void |
getFileAsStream(long userId,
FileEntry fileEntry,
boolean incrementCounter) |
static List<DLFileShortcut> |
getFileShortcuts(long groupId,
long folderId,
boolean active,
int status) |
static int |
getFileShortcutsCount(long groupId,
long folderId,
boolean active,
int status) |
static List<FileEntry> |
getNoAssetFileEntries() |
static String |
getOSGiServiceIdentifier()
Returns the OSGi service identifier.
|
static DLAppHelperLocalService |
getService() |
static void |
moveDependentsToTrash(DLFolder dlFolder) |
static FileEntry |
moveFileEntryFromTrash(long userId,
FileEntry fileEntry,
long newFolderId,
ServiceContext serviceContext) |
static FileEntry |
moveFileEntryToTrash(long userId,
FileEntry fileEntry)
Moves the file entry to the recycle bin.
|
static FileShortcut |
moveFileShortcutFromTrash(long userId,
FileShortcut fileShortcut,
long newFolderId,
ServiceContext serviceContext) |
static FileShortcut |
moveFileShortcutToTrash(long userId,
FileShortcut fileShortcut)
Moves the file shortcut to the recycle bin.
|
static Folder |
moveFolderFromTrash(long userId,
Folder folder,
long parentFolderId,
ServiceContext serviceContext) |
static Folder |
moveFolderToTrash(long userId,
Folder folder)
Moves the folder to the recycle bin.
|
static void |
reindex(long companyId,
List<Long> dlFileEntryIds) |
static void |
restoreDependentsFromTrash(DLFolder dlFolder) |
static void |
restoreFileEntryFromTrash(long userId,
FileEntry fileEntry) |
static void |
restoreFileEntryFromTrash(long userId,
long newFolderId,
FileEntry fileEntry) |
static void |
restoreFileShortcutFromTrash(long userId,
FileShortcut fileShortcut) |
static void |
restoreFolderFromTrash(long userId,
Folder folder) |
static AssetEntry |
updateAsset(long userId,
FileEntry fileEntry,
FileVersion fileVersion,
long assetClassPK) |
static AssetEntry |
updateAsset(long userId,
FileEntry fileEntry,
FileVersion fileVersion,
long[] assetCategoryIds,
String[] assetTagNames,
long[] assetLinkEntryIds) |
static AssetEntry |
updateAsset(long userId,
Folder folder,
long[] assetCategoryIds,
String[] assetTagNames,
long[] assetLinkEntryIds) |
static void |
updateFileEntry(long userId,
FileEntry fileEntry,
FileVersion sourceFileVersion,
FileVersion destinationFileVersion,
long assetClassPK) |
static void |
updateFileEntry(long userId,
FileEntry fileEntry,
FileVersion sourceFileVersion,
FileVersion destinationFileVersion,
ServiceContext serviceContext) |
static void |
updateFolder(long userId,
Folder folder,
ServiceContext serviceContext) |
static void |
updateStatus(long userId,
FileEntry fileEntry,
FileVersion latestFileVersion,
int oldStatus,
int newStatus,
ServiceContext serviceContext,
Map<String,Serializable> workflowContext) |
public static void addFolder(long userId,
Folder folder,
ServiceContext serviceContext)
throws PortalException
PortalExceptionpublic static void cancelCheckOut(long userId,
FileEntry fileEntry,
FileVersion sourceFileVersion,
FileVersion destinationFileVersion,
FileVersion draftFileVersion,
ServiceContext serviceContext)
throws PortalException
PortalExceptionpublic static void cancelCheckOuts(long groupId)
throws PortalException
PortalExceptionpublic static void checkAssetEntry(long userId,
FileEntry fileEntry,
FileVersion fileVersion)
throws PortalException
PortalExceptionpublic static void deleteFileEntry(FileEntry fileEntry) throws PortalException
PortalExceptionpublic static void deleteFolder(Folder folder) throws PortalException
PortalExceptionpublic static void deleteRepositoryFileEntries(long repositoryId)
throws PortalException
PortalExceptionpublic static long getCheckedOutFileEntriesCount(long groupId)
throws PortalException
PortalExceptionpublic static void getFileAsStream(long userId,
FileEntry fileEntry,
boolean incrementCounter)
public static List<DLFileShortcut> getFileShortcuts(long groupId, long folderId, boolean active, int status)
public static int getFileShortcutsCount(long groupId,
long folderId,
boolean active,
int status)
public static List<FileEntry> getNoAssetFileEntries()
public static String getOSGiServiceIdentifier()
public static void moveDependentsToTrash(DLFolder dlFolder) throws PortalException
PortalExceptionpublic static FileEntry moveFileEntryFromTrash(long userId, FileEntry fileEntry, long newFolderId, ServiceContext serviceContext) throws PortalException
PortalExceptionpublic static FileEntry moveFileEntryToTrash(long userId, FileEntry fileEntry) throws PortalException
userId - the primary key of the user moving the file entryfileEntry - the file entry to be movedPortalExceptionpublic static FileShortcut moveFileShortcutFromTrash(long userId, FileShortcut fileShortcut, long newFolderId, ServiceContext serviceContext) throws PortalException
PortalExceptionpublic static FileShortcut moveFileShortcutToTrash(long userId, FileShortcut fileShortcut) throws PortalException
userId - the primary key of the user moving the file shortcutfileShortcut - the file shortcut to be movedPortalExceptionpublic static Folder moveFolderFromTrash(long userId, Folder folder, long parentFolderId, ServiceContext serviceContext) throws PortalException
PortalExceptionpublic static Folder moveFolderToTrash(long userId, Folder folder) throws PortalException
userId - the primary key of the user moving the folderfolder - the folder to be movedPortalExceptionpublic static void reindex(long companyId,
List<Long> dlFileEntryIds)
throws PortalException
PortalExceptionpublic static void restoreDependentsFromTrash(DLFolder dlFolder) throws PortalException
PortalExceptionpublic static void restoreFileEntryFromTrash(long userId,
FileEntry fileEntry)
throws PortalException
PortalExceptionpublic static void restoreFileEntryFromTrash(long userId,
long newFolderId,
FileEntry fileEntry)
throws PortalException
PortalExceptionpublic static void restoreFileShortcutFromTrash(long userId,
FileShortcut fileShortcut)
throws PortalException
PortalExceptionpublic static void restoreFolderFromTrash(long userId,
Folder folder)
throws PortalException
PortalExceptionpublic static AssetEntry updateAsset(long userId, FileEntry fileEntry, FileVersion fileVersion, long assetClassPK) throws PortalException
PortalExceptionpublic static AssetEntry updateAsset(long userId, FileEntry fileEntry, FileVersion fileVersion, long[] assetCategoryIds, String[] assetTagNames, long[] assetLinkEntryIds) throws PortalException
PortalExceptionpublic static AssetEntry updateAsset(long userId, Folder folder, long[] assetCategoryIds, String[] assetTagNames, long[] assetLinkEntryIds) throws PortalException
PortalExceptionpublic static void updateFileEntry(long userId,
FileEntry fileEntry,
FileVersion sourceFileVersion,
FileVersion destinationFileVersion,
long assetClassPK)
throws PortalException
PortalExceptionpublic static void updateFileEntry(long userId,
FileEntry fileEntry,
FileVersion sourceFileVersion,
FileVersion destinationFileVersion,
ServiceContext serviceContext)
throws PortalException
PortalExceptionpublic static void updateFolder(long userId,
Folder folder,
ServiceContext serviceContext)
throws PortalException
PortalExceptionpublic static void updateStatus(long userId,
FileEntry fileEntry,
FileVersion latestFileVersion,
int oldStatus,
int newStatus,
ServiceContext serviceContext,
Map<String,Serializable> workflowContext)
throws PortalException
PortalExceptionpublic static DLAppHelperLocalService getService()