List of usage examples for com.liferay.portal.kernel.util WebKeys DOCUMENT_LIBRARY_REPOSITORY
String DOCUMENT_LIBRARY_REPOSITORY
To view the source code for com.liferay.portal.kernel.util WebKeys DOCUMENT_LIBRARY_REPOSITORY.
Click Source Link
From source file:com.liferay.document.library.web.internal.portlet.action.EditRepositoryMVCRenderCommand.java
License:Open Source License
@Override public String render(RenderRequest renderRequest, RenderResponse renderResponse) throws PortletException { try {/*from w w w. ja v a 2s. c o m*/ Repository repository = ActionUtil.getRepository(renderRequest); renderRequest.setAttribute(WebKeys.DOCUMENT_LIBRARY_REPOSITORY, repository); } catch (Exception e) { if (e instanceof NoSuchRepositoryException || e instanceof PrincipalException) { SessionErrors.add(renderRequest, e.getClass()); return "/document_library/error.jsp"; } else { throw new PortletException(e); } } return "/document_library/edit_repository.jsp"; }