List of usage examples for com.liferay.portal.kernel.repository RepositoryProviderUtil getFolderLocalRepository
public static LocalRepository getFolderLocalRepository(long folderId) throws PortalException
From source file:com.liferay.document.library.internal.trash.DLFolderTrashHandler.java
License:Open Source License
@Override protected DocumentRepository getDocumentRepository(long classPK) throws PortalException { LocalRepository localRepository = RepositoryProviderUtil.getFolderLocalRepository(classPK); if (!localRepository.isCapabilityProvided(TrashCapability.class)) { throw new UnsupportedCapabilityException(TrashCapability.class, "Repository " + localRepository.getRepositoryId()); }// w w w. j a v a 2 s. c om return localRepository; }