Example usage for com.liferay.portal.kernel.exception NoSuchRepositoryEntryException NoSuchRepositoryEntryException

List of usage examples for com.liferay.portal.kernel.exception NoSuchRepositoryEntryException NoSuchRepositoryEntryException

Introduction

In this page you can find the example usage for com.liferay.portal.kernel.exception NoSuchRepositoryEntryException NoSuchRepositoryEntryException.

Prototype

public NoSuchRepositoryEntryException(Throwable cause) 

Source Link

Usage

From source file:com.liferay.document.library.repository.external.ExtRepositoryAdapter.java

License:Open Source License

private String _getExtRepositoryObjectKey(String uuid) throws PortalException {

    RepositoryEntry repositoryEntry = repositoryEntryLocalService.fetchRepositoryEntryByUuidAndGroupId(uuid,
            getGroupId());//from w ww.  j a va2  s. co m

    if (repositoryEntry == null) {
        throw new NoSuchRepositoryEntryException("No repository entry exits with UUID " + uuid);
    }

    return repositoryEntry.getMappedId();
}