List of usage examples for com.liferay.portal.kernel.repository Repository deleteFileEntry
public void deleteFileEntry(long folderId, String title) throws PortalException;
From source file:com.liferay.portlet.documentlibrary.service.impl.DLAppServiceImpl.java
License:Open Source License
/** * Deletes the file entry with the title in the folder. * * @param repositoryId the primary key of the repository * @param folderId the primary key of the file entry's parent folder * @param title the file entry's title//from w ww .j av a 2 s. c o m * @throws PortalException if the file entry could not be found * @throws SystemException if a system exception occurred */ public void deleteFileEntryByTitle(long repositoryId, long folderId, String title) throws PortalException, SystemException { Repository repository = getRepository(repositoryId); FileEntry fileEntry = repository.getFileEntry(folderId, title); dlAppHelperLocalService.deleteFileEntry(fileEntry); repository.deleteFileEntry(folderId, title); }