/* * #%L * BroadleafCommerce Framework * %% * Copyright (C) 2009 - 2013 Broadleaf Commerce * %% * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * #L% */ package org.broadleafcommerce.core.search.domain; import org.broadleafcommerce.core.search.redirect.domain.SearchRedirectImpl; import org.hibernate.annotations.Cache; import org.hibernate.annotations.CacheConcurrencyStrategy; import org.hibernate.annotations.GenericGenerator; import org.hibernate.annotations.Index; import org.hibernate.annotations.Parameter; import javax.persistence.Column; import javax.persistence.GeneratedValue; import javax.persistence.Id; /** * @deprecated Replaced in functionality by {@link SearchRedirectImpl} */ @Deprecated @Cache(usage = CacheConcurrencyStrategy.READ_WRITE, region="blStandardElements") public class SearchInterceptImpl implements SearchIntercept { @Id @GeneratedValue(generator = "SearchInterceptId") @GenericGenerator( name="SearchInterceptId", strategy="org.broadleafcommerce.common.persistence.IdOverrideTableGenerator", parameters = { @Parameter(name="segment_value", value="SearchInterceptImpl"), @Parameter(name="entity_name", value="org.broadleafcommerce.core.search.domain.SearchInterceptImpl") } ) @Column(name = "SEARCH_INTERCEPT_ID") protected Long id; @Column(name = "TERM") @Index(name="SEARCHINTERCEPT_TERM_INDEX", columnNames={"TERM"}) private String term; @Column(name = "REDIRECT") private String redirect; /* (non-Javadoc) * @see org.broadleafcommerce.core.search.domain.SearchIntercept#getTerm() */ @Override public String getTerm() { return term; } /* (non-Javadoc) * @see org.broadleafcommerce.core.search.domain.SearchIntercept#setTerm(java.lang.String) */ @Override public void setTerm(String term) { this.term = term; } /* (non-Javadoc) * @see org.broadleafcommerce.core.search.domain.SearchIntercept#getRedirect() */ @Override public String getRedirect() { return redirect; } /* (non-Javadoc) * @see org.broadleafcommerce.core.search.domain.SearchIntercept#setRedirect(java.lang.String) */ @Override public void setRedirect(String redirect) { this.redirect = redirect; } public Long getId() { return id; } public void setId(Long id) { this.id = id; } }