List of usage examples for com.liferay.portal.kernel.util Constants CHANGE_PARENT
String CHANGE_PARENT
To view the source code for com.liferay.portal.kernel.util Constants CHANGE_PARENT.
Click Source Link
From source file:com.liferay.wiki.web.internal.portlet.action.MovePageMVCActionCommand.java
License:Open Source License
@Override protected void doProcessAction(ActionRequest actionRequest, ActionResponse actionResponse) throws Exception { String cmd = ParamUtil.getString(actionRequest, Constants.CMD); try {// ww w.ja va 2 s. c o m if (cmd.equals(Constants.CHANGE_PARENT)) { changeParentPage(actionRequest); } else if (cmd.equals(Constants.RENAME)) { renamePage(actionRequest); } if (Validator.isNotNull(cmd)) { sendRedirect(actionRequest, actionResponse); } } catch (Exception e) { if (e instanceof NoSuchNodeException || e instanceof NoSuchPageException || e instanceof PrincipalException) { SessionErrors.add(actionRequest, e.getClass()); } else if (e instanceof DuplicatePageException || e instanceof PageContentException || e instanceof PageTitleException) { SessionErrors.add(actionRequest, e.getClass()); } else { throw e; } } }