001
014
015 package com.liferay.portlet.amazonrankings.action;
016
017 import com.liferay.portal.kernel.portlet.DefaultConfigurationAction;
018 import com.liferay.portal.kernel.util.CharPool;
019 import com.liferay.portal.kernel.util.StringUtil;
020
021 import java.util.Arrays;
022
023 import javax.portlet.ActionRequest;
024 import javax.portlet.ActionResponse;
025 import javax.portlet.PortletConfig;
026
027
030 public class ConfigurationActionImpl extends DefaultConfigurationAction {
031
032 @Override
033 public void processAction(
034 PortletConfig portletConfig, ActionRequest actionRequest,
035 ActionResponse actionResponse)
036 throws Exception {
037
038 String[] isbns = StringUtil.split(
039 getParameter(actionRequest, "isbns").toUpperCase(), CharPool.SPACE);
040
041 Arrays.sort(isbns);
042
043 setPreference(actionRequest, "isbns", isbns);
044
045 super.processAction(portletConfig, actionRequest, actionResponse);
046 }
047
048 }