public class DLAppHelperLocalServiceImpl extends DLAppHelperLocalServiceBaseImpl
counterLocalService, dlAppHelperLocalService
Constructor and Description |
---|
DLAppHelperLocalServiceImpl() |
Modifier and Type | Method and Description |
---|---|
void |
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.repository.model.FileEntry |
doMoveFileEntryFromTrash(long userId,
com.liferay.portal.kernel.repository.model.FileEntry fileEntry,
long newFolderId,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
protected com.liferay.portal.kernel.repository.model.FileEntry |
doMoveFileEntryToTrash(long userId,
com.liferay.portal.kernel.repository.model.FileEntry fileEntry) |
protected com.liferay.portal.kernel.repository.model.Folder |
doMoveFolderFromTrash(long userId,
com.liferay.portal.kernel.repository.model.Folder folder,
long parentFolderId,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
protected com.liferay.portal.kernel.repository.model.Folder |
doMoveFolderToTrash(long userId,
com.liferay.portal.kernel.repository.model.Folder folder) |
protected com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery |
getCancelCheckOutsActionableDynamicQuery(long groupId) |
long |
getCheckedOutFileEntriesCount(long groupId) |
protected List<com.liferay.portal.kernel.util.ObjectValuePair<Long,Integer>> |
getDlFileVersionStatuses(List<com.liferay.document.library.kernel.model.DLFileVersion> dlFileVersions) |
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.portal.kernel.repository.model.FileEntry> |
getNoAssetFileEntries() |
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 |
reindex(long companyId,
List<Long> dlFileEntryIds) |
void |
restoreDependentsFromTrash(com.liferay.document.library.kernel.model.DLFolder dlFolder) |
void |
restoreFileEntryFromTrash(long userId,
com.liferay.portal.kernel.repository.model.FileEntry fileEntry) |
void |
restoreFileEntryFromTrash(long userId,
long newFolderId,
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 void |
trashOrRestoreFolder(com.liferay.document.library.kernel.model.DLFolder dlFolder,
boolean moveToTrash) |
protected void |
trashOrRestoreFolder(com.liferay.document.library.kernel.model.DLFolder dlFolder,
com.liferay.document.library.kernel.model.DLFolder childDLFolder,
boolean moveToTrash,
com.liferay.trash.kernel.model.TrashEntry trashEntry) |
protected <T extends com.liferay.portal.kernel.repository.model.RepositoryModel<T>> |
triggerRepositoryEvent(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,
long[] assetCategoryIds,
String[] assetTagNames,
long[] assetLinkEntryIds) |
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) |
afterPropertiesSet, destroy, getCounterLocalService, getDLAppHelperLocalService, getOSGiServiceIdentifier, runSQL, setCounterLocalService, setDLAppHelperLocalService
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
com.liferay.portal.kernel.exception.PortalException
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
com.liferay.portal.kernel.exception.PortalException
public void cancelCheckOuts(long groupId) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
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
com.liferay.portal.kernel.exception.PortalException
public void deleteFileEntry(com.liferay.portal.kernel.repository.model.FileEntry fileEntry) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public void deleteFolder(com.liferay.portal.kernel.repository.model.Folder folder) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public void deleteRepositoryFileEntries(long repositoryId) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public long getCheckedOutFileEntriesCount(long groupId) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public void getFileAsStream(long userId, com.liferay.portal.kernel.repository.model.FileEntry fileEntry, boolean incrementCounter)
public List<com.liferay.document.library.kernel.model.DLFileShortcut> getFileShortcuts(long groupId, long folderId, boolean active, int status)
public int getFileShortcutsCount(long groupId, long folderId, boolean active, int status)
public List<com.liferay.portal.kernel.repository.model.FileEntry> getNoAssetFileEntries()
public void moveDependentsToTrash(com.liferay.document.library.kernel.model.DLFolder dlFolder) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
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
com.liferay.portal.kernel.exception.PortalException
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
userId
- the primary key of the user moving the file entryfileEntry
- the file entry to be movedcom.liferay.portal.kernel.exception.PortalException
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
com.liferay.portal.kernel.exception.PortalException
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
userId
- the primary key of the user moving the file shortcutfileShortcut
- the file shortcut to be movedcom.liferay.portal.kernel.exception.PortalException
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
com.liferay.portal.kernel.exception.PortalException
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
userId
- the primary key of the user moving the folderfolder
- the folder to be movedcom.liferay.portal.kernel.exception.PortalException
@Async public void reindex(long companyId, List<Long> dlFileEntryIds) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public void restoreDependentsFromTrash(com.liferay.document.library.kernel.model.DLFolder dlFolder) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public void restoreFileEntryFromTrash(long userId, com.liferay.portal.kernel.repository.model.FileEntry fileEntry) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public void restoreFileEntryFromTrash(long userId, long newFolderId, com.liferay.portal.kernel.repository.model.FileEntry fileEntry) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public void restoreFileShortcutFromTrash(long userId, com.liferay.portal.kernel.repository.model.FileShortcut fileShortcut) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public void restoreFolderFromTrash(long userId, com.liferay.portal.kernel.repository.model.Folder folder) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
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
com.liferay.portal.kernel.exception.PortalException
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[] assetCategoryIds, String[] assetTagNames, long[] assetLinkEntryIds) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
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
com.liferay.portal.kernel.exception.PortalException
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
com.liferay.portal.kernel.exception.PortalException
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
com.liferay.portal.kernel.exception.PortalException
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
com.liferay.portal.kernel.exception.PortalException
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
com.liferay.portal.kernel.exception.PortalException
protected com.liferay.portal.kernel.repository.model.FileEntry doMoveFileEntryFromTrash(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
com.liferay.portal.kernel.exception.PortalException
protected com.liferay.portal.kernel.repository.model.FileEntry doMoveFileEntryToTrash(long userId, com.liferay.portal.kernel.repository.model.FileEntry fileEntry) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
protected com.liferay.portal.kernel.repository.model.Folder doMoveFolderFromTrash(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
com.liferay.portal.kernel.exception.PortalException
protected com.liferay.portal.kernel.repository.model.Folder doMoveFolderToTrash(long userId, com.liferay.portal.kernel.repository.model.Folder folder) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
protected com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getCancelCheckOutsActionableDynamicQuery(long groupId)
protected List<com.liferay.portal.kernel.util.ObjectValuePair<Long,Integer>> getDlFileVersionStatuses(List<com.liferay.document.library.kernel.model.DLFileVersion> dlFileVersions)
protected long getFileEntryTypeId(com.liferay.portal.kernel.repository.model.FileEntry fileEntry)
protected Class<? extends com.liferay.portal.kernel.repository.event.WorkflowRepositoryEventType> getWorkflowRepositoryEventTypeClass(String syncEvent)
protected void trashOrRestoreFolder(com.liferay.document.library.kernel.model.DLFolder dlFolder, boolean moveToTrash) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
protected void trashOrRestoreFolder(com.liferay.document.library.kernel.model.DLFolder dlFolder, com.liferay.document.library.kernel.model.DLFolder childDLFolder, boolean moveToTrash, com.liferay.trash.kernel.model.TrashEntry trashEntry) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
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
com.liferay.portal.kernel.exception.PortalException