@@ -0,0 +1,2070 @@
+/*%0A * Copyright 2016 Space Dynamics Laboratory - Utah State University Research Foundation.%0A *%0A * Licensed under the Apache License, Version 2.0 (the %22License%22);%0A * you may not use this file except in compliance with the License.%0A * You may obtain a copy of the License at%0A *%0A *      http://www.apache.org/licenses/LICENSE-2.0%0A *%0A * Unless required by applicable law or agreed to in writing, software%0A * distributed under the License is distributed on an %22AS IS%22 BASIS,%0A * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.%0A * See the License for the specific language governing permissions and%0A * limitations under the License.%0A */%0Apackage edu.usu.sdl.openstorefront.web.action.client;%0A%0Aimport edu.usu.sdl.openstorefront.core.entity.SystemSearch;%0Aimport edu.usu.sdl.openstorefront.web.action.BaseAction;%0Aimport net.sourceforge.stripes.action.DefaultHandler;%0Aimport net.sourceforge.stripes.action.ErrorResolution;%0Aimport net.sourceforge.stripes.action.ForwardResolution;%0Aimport net.sourceforge.stripes.action.Resolution;%0A%0Apublic class SavedSearchAction%0A%09%09extends BaseAction%0A%7B%0A%0A%09private String savedSearchId;%0A%09private SystemSearch savedSearch;%0A%09private String searchRequest;%0A%0A%09@DefaultHandler%0A%09public Resolution performSearch()%0A%09%7B%0A%09%09SystemSearch ss = new SystemSearch();%0A%09%09ss.setSearchId(this.savedSearchId);%0A%09%09this.savedSearch = (SystemSearch) ss.find();%0A%09%09if (savedSearch != null) %7B%0A%09%09%09setSearchRequest(savedSearch.getSearchRequest());%0A%09%09%09return new ForwardResolution(%22/WEB-INF/securepages/main/searchResults.jsp%22);%0A%09%09%7D%0A%09%09return new ErrorResolution(404);%0A%09%7D%0A%0A%09public String getSearchRequest()%0A%09%7B%0A%09%09return searchRequest;%0A%09%7D%0A%0A%09public void setSearchRequest(String searchRequest)%0A%09%7B%0A%09%09this.searchRequest = searchRequest;%0A%09%7D%0A%0A%09public SystemSearch getSavedSearch()%0A%09%7B%0A%09%09return savedSearch;%0A%09%7D%0A%0A%09public void setSavedSearch(SystemSearch savedSearch)%0A%09%7B%0A%09%09this.savedSearch = savedSearch;%0A%09%7D%0A%0A%09public String getSavedSearchId()%0A%09%7B%0A%09%09return savedSearchId;%0A%09%7D%0A%0A%09public void setSavedSearchId(String savedSearchId)%0A%09%7B%0A%09%09this.savedSearchId = savedSearchId;%0A%09%7D%0A%0A%7D%0A

Create actionBean for saved system searches