Class DLAppHelperLocalServiceImpl
Object
com.liferay.portal.kernel.service.BaseLocalServiceImpl
com.liferay.portlet.documentlibrary.service.base.DLAppHelperLocalServiceBaseImpl
com.liferay.portlet.documentlibrary.service.impl.DLAppHelperLocalServiceImpl
- All Implemented Interfaces:
com.liferay.document.library.kernel.service.DLAppHelperLocalService
,com.liferay.portal.kernel.module.framework.service.IdentifiableOSGiService
,com.liferay.portal.kernel.service.BaseLocalService
Provides the local service helper for the document library application.
- Author:
- Alexander Chow
-
Field Summary
Fields inherited from class com.liferay.portlet.documentlibrary.service.base.DLAppHelperLocalServiceBaseImpl
counterLocalService, dlAppHelperLocalService
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addFolder
(long userId, com.liferay.portal.kernel.repository.model.Folder folder, com.liferay.portal.kernel.service.ServiceContext serviceContext) void
cancelCheckOut
(long userId, com.liferay.portal.kernel.repository.model.FileEntry fileEntry, com.liferay.portal.kernel.repository.model.FileVersion sourceFileVersion, com.liferay.portal.kernel.repository.model.FileVersion destinationFileVersion, com.liferay.portal.kernel.repository.model.FileVersion draftFileVersion, com.liferay.portal.kernel.service.ServiceContext serviceContext) void
cancelCheckOuts
(long groupId) void
checkAssetEntry
(long userId, com.liferay.portal.kernel.repository.model.FileEntry fileEntry, com.liferay.portal.kernel.repository.model.FileVersion fileVersion) void
deleteFileEntry
(com.liferay.portal.kernel.repository.model.FileEntry fileEntry) void
deleteFolder
(com.liferay.portal.kernel.repository.model.Folder folder) void
deleteRepositoryFileEntries
(long repositoryId) protected com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery
getCancelCheckOutsActionableDynamicQuery
(long groupId) long
getCheckedOutFileEntriesCount
(long groupId) void
getFileAsStream
(long userId, com.liferay.portal.kernel.repository.model.FileEntry fileEntry, boolean incrementCounter) protected long
getFileEntryTypeId
(com.liferay.portal.kernel.repository.model.FileEntry fileEntry) List<com.liferay.document.library.kernel.model.DLFileShortcut>
getFileShortcuts
(long groupId, long folderId, boolean active, int status) int
getFileShortcutsCount
(long groupId, long folderId, boolean active, int status) List<com.liferay.document.library.kernel.model.DLFileShortcut>
getGroupFileShortcuts
(long groupId) List<com.liferay.portal.kernel.repository.model.FileEntry>
protected Class<? extends com.liferay.portal.kernel.repository.event.WorkflowRepositoryEventType>
getWorkflowRepositoryEventTypeClass
(String syncEvent) void
moveDependentsToTrash
(com.liferay.document.library.kernel.model.DLFolder dlFolder) com.liferay.portal.kernel.repository.model.FileEntry
moveFileEntryFromTrash
(long userId, com.liferay.portal.kernel.repository.model.FileEntry fileEntry, long newFolderId, com.liferay.portal.kernel.service.ServiceContext serviceContext) com.liferay.portal.kernel.repository.model.FileEntry
moveFileEntryToTrash
(long userId, com.liferay.portal.kernel.repository.model.FileEntry fileEntry) Moves the file entry to the recycle bin.com.liferay.portal.kernel.repository.model.FileShortcut
moveFileShortcutFromTrash
(long userId, com.liferay.portal.kernel.repository.model.FileShortcut fileShortcut, long newFolderId, com.liferay.portal.kernel.service.ServiceContext serviceContext) com.liferay.portal.kernel.repository.model.FileShortcut
moveFileShortcutToTrash
(long userId, com.liferay.portal.kernel.repository.model.FileShortcut fileShortcut) Moves the file shortcut to the recycle bin.com.liferay.portal.kernel.repository.model.Folder
moveFolderFromTrash
(long userId, com.liferay.portal.kernel.repository.model.Folder folder, long parentFolderId, com.liferay.portal.kernel.service.ServiceContext serviceContext) com.liferay.portal.kernel.repository.model.Folder
moveFolderToTrash
(long userId, com.liferay.portal.kernel.repository.model.Folder folder) Moves the folder to the recycle bin.void
void
restoreDependentsFromTrash
(com.liferay.document.library.kernel.model.DLFolder dlFolder) void
restoreFileEntryFromTrash
(long userId, long newFolderId, com.liferay.portal.kernel.repository.model.FileEntry fileEntry) void
restoreFileEntryFromTrash
(long userId, com.liferay.portal.kernel.repository.model.FileEntry fileEntry) void
restoreFileShortcutFromTrash
(long userId, com.liferay.portal.kernel.repository.model.FileShortcut fileShortcut) void
restoreFolderFromTrash
(long userId, com.liferay.portal.kernel.repository.model.Folder folder) protected <T extends com.liferay.portal.kernel.repository.model.RepositoryModel<T>>
voidtriggerRepositoryEvent
(long repositoryId, Class<? extends com.liferay.portal.kernel.repository.event.RepositoryEventType> repositoryEventType, Class<T> modelClass, T target) com.liferay.asset.kernel.model.AssetEntry
updateAsset
(long userId, com.liferay.portal.kernel.repository.model.FileEntry fileEntry, com.liferay.portal.kernel.repository.model.FileVersion fileVersion, long assetClassPK) com.liferay.asset.kernel.model.AssetEntry
updateAsset
(long userId, com.liferay.portal.kernel.repository.model.FileEntry fileEntry, com.liferay.portal.kernel.repository.model.FileVersion fileVersion, com.liferay.portal.kernel.service.ServiceContext serviceContext) com.liferay.asset.kernel.model.AssetEntry
updateAsset
(long userId, com.liferay.portal.kernel.repository.model.Folder folder, long[] assetCategoryIds, String[] assetTagNames, long[] assetLinkEntryIds) void
updateFileEntry
(long userId, com.liferay.portal.kernel.repository.model.FileEntry fileEntry, com.liferay.portal.kernel.repository.model.FileVersion sourceFileVersion, com.liferay.portal.kernel.repository.model.FileVersion destinationFileVersion, long assetClassPK) void
updateFileEntry
(long userId, com.liferay.portal.kernel.repository.model.FileEntry fileEntry, com.liferay.portal.kernel.repository.model.FileVersion sourceFileVersion, com.liferay.portal.kernel.repository.model.FileVersion destinationFileVersion, com.liferay.portal.kernel.service.ServiceContext serviceContext) void
updateFolder
(long userId, com.liferay.portal.kernel.repository.model.Folder folder, com.liferay.portal.kernel.service.ServiceContext serviceContext) void
updateStatus
(long userId, com.liferay.portal.kernel.repository.model.FileEntry fileEntry, com.liferay.portal.kernel.repository.model.FileVersion latestFileVersion, int oldStatus, int newStatus, com.liferay.portal.kernel.service.ServiceContext serviceContext, Map<String, Serializable> workflowContext) Methods inherited from class com.liferay.portlet.documentlibrary.service.base.DLAppHelperLocalServiceBaseImpl
afterPropertiesSet, destroy, getCounterLocalService, getDLAppHelperLocalService, getOSGiServiceIdentifier, runSQL, setCounterLocalService, setDLAppHelperLocalService
Methods inherited from class com.liferay.portal.kernel.service.BaseLocalServiceImpl
getClassLoader, getLocalizationMap
-
Constructor Details
-
DLAppHelperLocalServiceImpl
public DLAppHelperLocalServiceImpl()
-
-
Method Details
-
addFolder
public void addFolder(long userId, com.liferay.portal.kernel.repository.model.Folder folder, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
cancelCheckOut
public void cancelCheckOut(long userId, com.liferay.portal.kernel.repository.model.FileEntry fileEntry, com.liferay.portal.kernel.repository.model.FileVersion sourceFileVersion, com.liferay.portal.kernel.repository.model.FileVersion destinationFileVersion, com.liferay.portal.kernel.repository.model.FileVersion draftFileVersion, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
cancelCheckOuts
public void cancelCheckOuts(long groupId) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
checkAssetEntry
public void checkAssetEntry(long userId, com.liferay.portal.kernel.repository.model.FileEntry fileEntry, com.liferay.portal.kernel.repository.model.FileVersion fileVersion) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
deleteFileEntry
public void deleteFileEntry(com.liferay.portal.kernel.repository.model.FileEntry fileEntry) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
deleteFolder
public void deleteFolder(com.liferay.portal.kernel.repository.model.Folder folder) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
deleteRepositoryFileEntries
public void deleteRepositoryFileEntries(long repositoryId) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
getCheckedOutFileEntriesCount
public long getCheckedOutFileEntriesCount(long groupId) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
getFileAsStream
public void getFileAsStream(long userId, com.liferay.portal.kernel.repository.model.FileEntry fileEntry, boolean incrementCounter) -
getFileShortcuts
public List<com.liferay.document.library.kernel.model.DLFileShortcut> getFileShortcuts(long groupId, long folderId, boolean active, int status) -
getFileShortcutsCount
public int getFileShortcutsCount(long groupId, long folderId, boolean active, int status) -
getGroupFileShortcuts
public List<com.liferay.document.library.kernel.model.DLFileShortcut> getGroupFileShortcuts(long groupId) -
getNoAssetFileEntries
-
moveDependentsToTrash
public void moveDependentsToTrash(com.liferay.document.library.kernel.model.DLFolder dlFolder) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
moveFileEntryFromTrash
public com.liferay.portal.kernel.repository.model.FileEntry moveFileEntryFromTrash(long userId, com.liferay.portal.kernel.repository.model.FileEntry fileEntry, long newFolderId, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
moveFileEntryToTrash
public com.liferay.portal.kernel.repository.model.FileEntry moveFileEntryToTrash(long userId, com.liferay.portal.kernel.repository.model.FileEntry fileEntry) throws com.liferay.portal.kernel.exception.PortalException Moves the file entry to the recycle bin.- Parameters:
userId
- the primary key of the user moving the file entryfileEntry
- the file entry to be moved- Returns:
- the moved file entry
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
moveFileShortcutFromTrash
public com.liferay.portal.kernel.repository.model.FileShortcut moveFileShortcutFromTrash(long userId, com.liferay.portal.kernel.repository.model.FileShortcut fileShortcut, long newFolderId, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
moveFileShortcutToTrash
public com.liferay.portal.kernel.repository.model.FileShortcut moveFileShortcutToTrash(long userId, com.liferay.portal.kernel.repository.model.FileShortcut fileShortcut) throws com.liferay.portal.kernel.exception.PortalException Moves the file shortcut to the recycle bin.- Parameters:
userId
- the primary key of the user moving the file shortcutfileShortcut
- the file shortcut to be moved- Returns:
- the moved file shortcut
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
moveFolderFromTrash
public com.liferay.portal.kernel.repository.model.Folder moveFolderFromTrash(long userId, com.liferay.portal.kernel.repository.model.Folder folder, long parentFolderId, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
moveFolderToTrash
public com.liferay.portal.kernel.repository.model.Folder moveFolderToTrash(long userId, com.liferay.portal.kernel.repository.model.Folder folder) throws com.liferay.portal.kernel.exception.PortalException Moves the folder to the recycle bin.- Parameters:
userId
- the primary key of the user moving the folderfolder
- the folder to be moved- Returns:
- the moved folder
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
reindex
@Async public void reindex(long companyId, List<Long> dlFileEntryIds) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
restoreDependentsFromTrash
public void restoreDependentsFromTrash(com.liferay.document.library.kernel.model.DLFolder dlFolder) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
restoreFileEntryFromTrash
public void restoreFileEntryFromTrash(long userId, com.liferay.portal.kernel.repository.model.FileEntry fileEntry) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
restoreFileEntryFromTrash
public void restoreFileEntryFromTrash(long userId, long newFolderId, com.liferay.portal.kernel.repository.model.FileEntry fileEntry) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
restoreFileShortcutFromTrash
public void restoreFileShortcutFromTrash(long userId, com.liferay.portal.kernel.repository.model.FileShortcut fileShortcut) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
restoreFolderFromTrash
public void restoreFolderFromTrash(long userId, com.liferay.portal.kernel.repository.model.Folder folder) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
updateAsset
public com.liferay.asset.kernel.model.AssetEntry updateAsset(long userId, com.liferay.portal.kernel.repository.model.FileEntry fileEntry, com.liferay.portal.kernel.repository.model.FileVersion fileVersion, long assetClassPK) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
updateAsset
public com.liferay.asset.kernel.model.AssetEntry updateAsset(long userId, com.liferay.portal.kernel.repository.model.FileEntry fileEntry, com.liferay.portal.kernel.repository.model.FileVersion fileVersion, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
updateAsset
public com.liferay.asset.kernel.model.AssetEntry updateAsset(long userId, com.liferay.portal.kernel.repository.model.Folder folder, long[] assetCategoryIds, String[] assetTagNames, long[] assetLinkEntryIds) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
updateFileEntry
public void updateFileEntry(long userId, com.liferay.portal.kernel.repository.model.FileEntry fileEntry, com.liferay.portal.kernel.repository.model.FileVersion sourceFileVersion, com.liferay.portal.kernel.repository.model.FileVersion destinationFileVersion, long assetClassPK) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
updateFileEntry
public void updateFileEntry(long userId, com.liferay.portal.kernel.repository.model.FileEntry fileEntry, com.liferay.portal.kernel.repository.model.FileVersion sourceFileVersion, com.liferay.portal.kernel.repository.model.FileVersion destinationFileVersion, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
updateFolder
public void updateFolder(long userId, com.liferay.portal.kernel.repository.model.Folder folder, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
updateStatus
public void updateStatus(long userId, com.liferay.portal.kernel.repository.model.FileEntry fileEntry, com.liferay.portal.kernel.repository.model.FileVersion latestFileVersion, int oldStatus, int newStatus, com.liferay.portal.kernel.service.ServiceContext serviceContext, Map<String, Serializable> workflowContext) throws com.liferay.portal.kernel.exception.PortalException- Throws:
com.liferay.portal.kernel.exception.PortalException
-
getCancelCheckOutsActionableDynamicQuery
protected com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getCancelCheckOutsActionableDynamicQuery(long groupId) -
getFileEntryTypeId
protected long getFileEntryTypeId(com.liferay.portal.kernel.repository.model.FileEntry fileEntry) -
getWorkflowRepositoryEventTypeClass
-
triggerRepositoryEvent
protected <T extends com.liferay.portal.kernel.repository.model.RepositoryModel<T>> void triggerRepositoryEvent(long repositoryId, Class<? extends com.liferay.portal.kernel.repository.event.RepositoryEventType> repositoryEventType, Class<T> modelClass, T target) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-