/**
* Copyright (c) 2000-present Liferay, Inc. All rights reserved.
*
* This library is free software; you can redistribute it and/or modify it under
* the terms of the GNU Lesser General Public License as published by the Free
* Software Foundation; either version 2.1 of the License, or (at your option)
* any later version.
*
* This library is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
* details.
*/
package com.liferay.portal.osgi.web.portlet.container.upload.test;
import com.liferay.portal.kernel.portlet.bridges.mvc.MVCPortlet;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;
/**
* @author Manuel de la Peña
*/
public class TestUploadPortlet extends MVCPortlet {
public static final String MVC_COMMAND_NAME =
TestUploadPortlet.PORTLET_NAME + "/" + TestUploadPortlet.MVC_PATH;
public static final String MVC_PATH = "upload_test";
public static final String PARAMETER_NAME =
TestUploadPortlet.class.getCanonicalName();
public static final String PORTLET_NAME =
"com_liferay_portal_portlet_container_upload_test_TestUploadPortlet";
public TestFileEntry get(String key) {
return _testFileEntries.get(key);
}
public void put(TestFileEntry testFileEntry) {
_testFileEntries.put(testFileEntry.toString(), testFileEntry);
}
private final Map<String, TestFileEntry> _testFileEntries =
new ConcurrentHashMap<>();
}