@ProviderType
public class DLAppHelperLocalServiceUtil
extends java.lang.Object
com.liferay.portlet.documentlibrary.service.impl.DLAppHelperLocalServiceImpl and is the
primary 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,
com.liferay.portlet.documentlibrary.service.base.DLAppHelperLocalServiceBaseImpl,
com.liferay.portlet.documentlibrary.service.impl.DLAppHelperLocalServiceImpl| Constructor and Description |
|---|
DLAppHelperLocalServiceUtil() |
| Modifier and Type | Method and Description |
|---|---|
static void |
addFileEntry(long userId,
FileEntry fileEntry,
FileVersion fileVersion,
ServiceContext serviceContext) |
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 |
checkAssetEntry(long userId,
FileEntry fileEntry,
FileVersion fileVersion) |
static void |
deleteFileEntry(FileEntry fileEntry) |
static void |
deleteFolder(Folder folder) |
static java.lang.String |
getBeanIdentifier()
Returns the Spring bean ID for this bean.
|
static void |
getFileAsStream(long userId,
FileEntry fileEntry,
boolean incrementCounter) |
static java.util.List<DLFileShortcut> |
getFileShortcuts(long groupId,
long folderId,
boolean active,
int status) |
static java.util.List<DLFileShortcut> |
getFileShortcuts(long groupId,
long folderId,
int status)
Deprecated.
As of 6.2.0, replaced by
getFileShortcuts(long, long,
boolean, int) |
static int |
getFileShortcutsCount(long groupId,
long folderId,
boolean active,
int status) |
static int |
getFileShortcutsCount(long groupId,
long folderId,
int status)
Deprecated.
As of 6.2.0, replaced by
getFileShortcutsCount(long,
long, boolean, int) |
static java.util.List<FileEntry> |
getNoAssetFileEntries() |
static DLAppHelperLocalService |
getService() |
static void |
moveDependentsToTrash(java.util.List<java.lang.Object> dlFileEntriesAndDLFolders,
long trashEntryId) |
static void |
moveFileEntry(FileEntry fileEntry) |
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 DLFileShortcut |
moveFileShortcutFromTrash(long userId,
DLFileShortcut dlFileShortcut,
long newFolderId,
ServiceContext serviceContext) |
static DLFileShortcut |
moveFileShortcutToTrash(long userId,
DLFileShortcut dlFileShortcut)
Moves the file shortcut to the recycle bin.
|
static void |
moveFolder(Folder folder) |
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 |
registerDLSyncEventCallback(java.lang.String event,
FileEntry fileEntry) |
static void |
registerDLSyncEventCallback(java.lang.String event,
Folder folder) |
static void |
restoreDependentsFromTrash(java.util.List<java.lang.Object> dlFileEntriesAndDLFolders,
long trashEntryId) |
static void |
restoreFileEntryFromTrash(long userId,
FileEntry fileEntry) |
static void |
restoreFileShortcutFromTrash(long userId,
DLFileShortcut dlFileShortcut) |
static void |
restoreFolderFromTrash(long userId,
Folder folder) |
static void |
setBeanIdentifier(java.lang.String beanIdentifier)
Sets the Spring bean ID for this bean.
|
void |
setService(DLAppHelperLocalService service)
Deprecated.
As of 6.2.0
|
static AssetEntry |
updateAsset(long userId,
FileEntry fileEntry,
FileVersion fileVersion,
long assetClassPk) |
static AssetEntry |
updateAsset(long userId,
FileEntry fileEntry,
FileVersion fileVersion,
long[] assetCategoryIds,
java.lang.String[] assetTagNames,
long[] assetLinkEntryIds) |
static AssetEntry |
updateAsset(long userId,
Folder folder,
long[] assetCategoryIds,
java.lang.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,
java.util.Map<java.lang.String,java.io.Serializable> workflowContext,
ServiceContext serviceContext) |
public static java.lang.String getBeanIdentifier()
public static void setBeanIdentifier(java.lang.String beanIdentifier)
beanIdentifier - the Spring bean ID for this beanpublic static void addFileEntry(long userId,
FileEntry fileEntry,
FileVersion fileVersion,
ServiceContext serviceContext)
throws PortalException,
SystemException
PortalExceptionSystemExceptionpublic static void addFolder(long userId,
Folder folder,
ServiceContext serviceContext)
throws PortalException,
SystemException
PortalExceptionSystemExceptionpublic static void cancelCheckOut(long userId,
FileEntry fileEntry,
FileVersion sourceFileVersion,
FileVersion destinationFileVersion,
FileVersion draftFileVersion,
ServiceContext serviceContext)
throws PortalException,
SystemException
PortalExceptionSystemExceptionpublic static void checkAssetEntry(long userId,
FileEntry fileEntry,
FileVersion fileVersion)
throws PortalException,
SystemException
PortalExceptionSystemExceptionpublic static void deleteFileEntry(FileEntry fileEntry) throws PortalException, SystemException
PortalExceptionSystemExceptionpublic static void deleteFolder(Folder folder) throws PortalException, SystemException
PortalExceptionSystemExceptionpublic static void getFileAsStream(long userId,
FileEntry fileEntry,
boolean incrementCounter)
throws SystemException
SystemExceptionpublic static java.util.List<DLFileShortcut> getFileShortcuts(long groupId, long folderId, boolean active, int status) throws SystemException
SystemExceptionpublic static java.util.List<DLFileShortcut> getFileShortcuts(long groupId, long folderId, int status) throws SystemException
getFileShortcuts(long, long,
boolean, int)SystemExceptionpublic static int getFileShortcutsCount(long groupId,
long folderId,
boolean active,
int status)
throws SystemException
SystemExceptionpublic static int getFileShortcutsCount(long groupId,
long folderId,
int status)
throws SystemException
getFileShortcutsCount(long,
long, boolean, int)SystemExceptionpublic static java.util.List<FileEntry> getNoAssetFileEntries()
public static void moveDependentsToTrash(java.util.List<java.lang.Object> dlFileEntriesAndDLFolders,
long trashEntryId)
throws PortalException,
SystemException
PortalExceptionSystemExceptionpublic static void moveFileEntry(FileEntry fileEntry) throws PortalException, SystemException
PortalExceptionSystemExceptionpublic static FileEntry moveFileEntryFromTrash(long userId, FileEntry fileEntry, long newFolderId, ServiceContext serviceContext) throws PortalException, SystemException
PortalExceptionSystemExceptionpublic static FileEntry moveFileEntryToTrash(long userId, FileEntry fileEntry) throws PortalException, SystemException
userId - the primary key of the user moving the file entryfileEntry - the file entry to be movedPortalException - if a user with the primary key could not be foundSystemException - if a system exception occurredpublic static DLFileShortcut moveFileShortcutFromTrash(long userId, DLFileShortcut dlFileShortcut, long newFolderId, ServiceContext serviceContext) throws PortalException, SystemException
PortalExceptionSystemExceptionpublic static DLFileShortcut moveFileShortcutToTrash(long userId, DLFileShortcut dlFileShortcut) throws PortalException, SystemException
userId - the primary key of the user moving the file shortcutdlFileShortcut - the file shortcut to be movedPortalException - if a user with the primary key could not be foundSystemException - if a system exception occurredpublic static void moveFolder(Folder folder) throws SystemException
SystemExceptionpublic static Folder moveFolderFromTrash(long userId, Folder folder, long parentFolderId, ServiceContext serviceContext) throws PortalException, SystemException
PortalExceptionSystemExceptionpublic static Folder moveFolderToTrash(long userId, Folder folder) throws PortalException, SystemException
userId - the primary key of the user moving the folderfolder - the folder to be movedPortalException - if a user with the primary key could not be foundSystemException - if a system exception occurredpublic static void registerDLSyncEventCallback(java.lang.String event,
FileEntry fileEntry)
throws PortalException,
SystemException
PortalExceptionSystemExceptionpublic static void registerDLSyncEventCallback(java.lang.String event,
Folder folder)
throws SystemException
SystemExceptionpublic static void restoreDependentsFromTrash(java.util.List<java.lang.Object> dlFileEntriesAndDLFolders,
long trashEntryId)
throws PortalException,
SystemException
PortalExceptionSystemExceptionpublic static void restoreFileEntryFromTrash(long userId,
FileEntry fileEntry)
throws PortalException,
SystemException
PortalExceptionSystemExceptionpublic static void restoreFileShortcutFromTrash(long userId,
DLFileShortcut dlFileShortcut)
throws PortalException,
SystemException
PortalExceptionSystemExceptionpublic static void restoreFolderFromTrash(long userId,
Folder folder)
throws PortalException,
SystemException
PortalExceptionSystemExceptionpublic static AssetEntry updateAsset(long userId, FileEntry fileEntry, FileVersion fileVersion, long assetClassPk) throws PortalException, SystemException
PortalExceptionSystemExceptionpublic static AssetEntry updateAsset(long userId, FileEntry fileEntry, FileVersion fileVersion, long[] assetCategoryIds, java.lang.String[] assetTagNames, long[] assetLinkEntryIds) throws PortalException, SystemException
PortalExceptionSystemExceptionpublic static AssetEntry updateAsset(long userId, Folder folder, long[] assetCategoryIds, java.lang.String[] assetTagNames, long[] assetLinkEntryIds) throws PortalException, SystemException
PortalExceptionSystemExceptionpublic static void updateFileEntry(long userId,
FileEntry fileEntry,
FileVersion sourceFileVersion,
FileVersion destinationFileVersion,
long assetClassPk)
throws PortalException,
SystemException
PortalExceptionSystemExceptionpublic static void updateFileEntry(long userId,
FileEntry fileEntry,
FileVersion sourceFileVersion,
FileVersion destinationFileVersion,
ServiceContext serviceContext)
throws PortalException,
SystemException
PortalExceptionSystemExceptionpublic static void updateFolder(long userId,
Folder folder,
ServiceContext serviceContext)
throws PortalException,
SystemException
PortalExceptionSystemExceptionpublic static void updateStatus(long userId,
FileEntry fileEntry,
FileVersion latestFileVersion,
int oldStatus,
int newStatus,
java.util.Map<java.lang.String,java.io.Serializable> workflowContext,
ServiceContext serviceContext)
throws PortalException,
SystemException
PortalExceptionSystemExceptionpublic static DLAppHelperLocalService getService()
public void setService(DLAppHelperLocalService service)