org.opencms.jsp.search.state.CmsSearchStateCommon Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of opencms-test Show documentation
Show all versions of opencms-test Show documentation
OpenCms is an enterprise-ready, easy to use website content management system based on Java and XML technology. Offering a complete set of features, OpenCms helps content managers worldwide to create and maintain beautiful websites fast and efficiently.
/*
* This library is part of OpenCms -
* the Open Source Content Management System
*
* Copyright (c) Alkacon Software GmbH & Co. KG (http://www.alkacon.com)
*
* 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.
*
* For further information about Alkacon Software, please see the
* company website: http://www.alkacon.com
*
* For further information about OpenCms, please see the
* project website: http://www.opencms.org
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
package org.opencms.jsp.search.state;
import java.util.HashMap;
import java.util.Map;
/** Class for handling the state of the common search options. */
public class CmsSearchStateCommon implements I_CmsSearchStateCommon {
/** The current query string (as given by the user). */
private String m_query = "";
/** The last query string (as given by the user). */
private String m_lastquery = "";
/** The flag, indicating if the search is performed for the first time or not. */
private boolean m_isReloaded;
/** Map from the additional request parameters to their values. */
private Map m_additionalParameters;
/**
* @see org.opencms.jsp.search.state.I_CmsSearchStateCommon#getAdditionalParameters()
*/
@Override
public Map getAdditionalParameters() {
return m_additionalParameters == null ? new HashMap() : m_additionalParameters;
}
/**
* @see org.opencms.jsp.search.state.I_CmsSearchStateCommon#getIsReloaded()
*/
public boolean getIsReloaded() {
return m_isReloaded;
}
/**
* @see org.opencms.jsp.search.state.I_CmsSearchStateCommon#getLastQuery()
*/
@Override
public String getLastQuery() {
return m_lastquery;
}
/**
* @see org.opencms.jsp.search.state.I_CmsSearchStateCommon#getQuery()
*/
@Override
public String getQuery() {
return m_query;
}
/**
* @see org.opencms.jsp.search.state.I_CmsSearchStateCommon#setAdditionalParameters(java.util.Map)
*/
@Override
public void setAdditionalParameters(Map parameters) {
m_additionalParameters = parameters;
}
/**
* @see org.opencms.jsp.search.state.I_CmsSearchStateCommon#setIsReloaded(boolean)
*/
public void setIsReloaded(boolean isReloaded) {
m_isReloaded = isReloaded;
}
/**
* @see org.opencms.jsp.search.state.I_CmsSearchStateCommon#setLastQuery(java.lang.String)
*/
@Override
public void setLastQuery(final String lastquery) {
m_lastquery = lastquery;
}
/**
* @see org.opencms.jsp.search.state.I_CmsSearchStateCommon#setQuery(java.lang.String)
*/
@Override
public void setQuery(final String query) {
m_query = query;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy