@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 |
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 void |
deleteRepositoryFileEntries(long repositoryId) |
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 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 |
restoreDependentsFromTrash(java.util.List<java.lang.Object> dlFileEntriesAndDLFolders) |
static void |
restoreDependentsFromTrash(java.util.List<java.lang.Object> dlFileEntriesAndDLFolders,
long trashEntryId)
Deprecated.
As of 7.0.0, replaced by
restoreDependentsFromTrash(List) |
static void |
restoreFileEntryFromTrash(long userId,
FileEntry fileEntry) |
static void |
restoreFileShortcutFromTrash(long userId,
FileShortcut fileShortcut) |
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,
ServiceContext serviceContext,
java.util.Map<java.lang.String,java.io.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 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 java.lang.String getBeanIdentifier()
public static void getFileAsStream(long userId,
FileEntry fileEntry,
boolean incrementCounter)
public static java.util.List<DLFileShortcut> getFileShortcuts(long groupId, long folderId, boolean active, int status)
@Deprecated public static java.util.List<DLFileShortcut> getFileShortcuts(long groupId, long folderId, int status)
getFileShortcuts(long, long,
boolean, int)public static int getFileShortcutsCount(long groupId,
long folderId,
boolean active,
int status)
@Deprecated
public static int getFileShortcutsCount(long groupId,
long folderId,
int status)
getFileShortcutsCount(long,
long, boolean, int)public static java.util.List<FileEntry> getNoAssetFileEntries()
public static void moveDependentsToTrash(java.util.List<java.lang.Object> dlFileEntriesAndDLFolders,
long trashEntryId)
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 movedPortalException - if a user with the primary key could not be foundpublic 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 movedPortalException - if a user with the primary key could not be foundpublic 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 movedPortalException - if a user with the primary key could not be foundpublic static void restoreDependentsFromTrash(java.util.List<java.lang.Object> dlFileEntriesAndDLFolders)
throws PortalException
PortalException@Deprecated
public static void restoreDependentsFromTrash(java.util.List<java.lang.Object> dlFileEntriesAndDLFolders,
long trashEntryId)
throws PortalException
restoreDependentsFromTrash(List)PortalExceptionpublic static void restoreFileEntryFromTrash(long userId,
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 void setBeanIdentifier(java.lang.String beanIdentifier)
beanIdentifier - the Spring bean ID for this beanpublic static AssetEntry updateAsset(long userId, FileEntry fileEntry, FileVersion fileVersion, long[] assetCategoryIds, java.lang.String[] assetTagNames, long[] assetLinkEntryIds) throws PortalException
PortalExceptionpublic static AssetEntry updateAsset(long userId, FileEntry fileEntry, FileVersion fileVersion, long assetClassPk) throws PortalException
PortalExceptionpublic static AssetEntry updateAsset(long userId, Folder folder, long[] assetCategoryIds, java.lang.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,
java.util.Map<java.lang.String,java.io.Serializable> workflowContext)
throws PortalException
PortalExceptionpublic static DLAppHelperLocalService getService()
@Deprecated public void setService(DLAppHelperLocalService service)