/*******************************************************************************
* Copyright (c) 2010-2014 SAP AG and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* SAP AG - initial API and implementation
*******************************************************************************/
package org.eclipse.skalli.model.ext.misc.internal;
import org.eclipse.skalli.model.ext.misc.ReviewEntry;
import org.eclipse.skalli.model.ext.misc.ReviewProjectExt;
import org.eclipse.skalli.services.extension.IndexerBase;
public class ReviewIndexer extends IndexerBase<ReviewProjectExt> {
@Override
protected void indexFields(ReviewProjectExt entity) {
for (ReviewEntry review : entity.getReviews()) {
addField("projectreviewcomment", review.getComment(), true, true); //$NON-NLS-1$
}
}
}