applications/solr/src/com/ilscipio/scipio/solr/SolrDocBuilder.java
ProductDocBuilder
has 106 methods (exceeds 20 allowed). Consider refactoring. Open
Open
public class ProductDocBuilder {
protected final String productId;
protected GenericValue product;
protected Timestamp moment;
protected String parentProductId; // empty string means already looked up
SolrDocBuilder
has 49 methods (exceeds 20 allowed). Consider refactoring. Open
Open
public class SolrDocBuilder {
private static final Debug.OfbizLogger module = Debug.getOfbizLogger(java.lang.invoke.MethodHandles.lookup().lookupClass());
protected static final Factory DEFAULT_FACTORY = new Factory();
protected static final Factory CONFIGURED_FACTORY = readConfiguredFactory();
Method addAlphaLocalizedContentStringMapToDoc
has 10 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
protected void addAlphaLocalizedContentStringMapToDoc(Map<String, Object> doc, String alphaKeyPrefix, String alphaDefaultKey,
String keyPrefix, String defaultKey, Map<String, String> contentMap,
List<Locale> locales, Locale defaultLocale, Function<Locale, String> langCodeFn, String generalKey) {
Method getChildProductIdsForIndexing
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
public Collection<String> getChildProductIdsForIndexing(String productId, GenericValue product, ProductIndexer.ProductEntry pur,
Map<String, ProductIndexer.ProductEntry> expandedProducts, Timestamp moment, ExpandProductResult expandResult) throws GeneralException {
Method hasParentProductIdsForIndexing
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
public boolean hasParentProductIdsForIndexing(String productId, GenericValue product, ProductIndexer.ProductEntry pur,
Map<String, ProductIndexer.ProductEntry> expandedProducts, Timestamp moment, ExpandProductResult expandResult) throws GeneralException {
Method addLocalizedContentStringMapToDoc
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
protected void addLocalizedContentStringMapToDoc(Map<String, Object> doc, String keyPrefix, String defaultKey, Map<String, String> contentMap,
Function<Locale, String> langCodeFn, String generalKey) {
Method getParentProductIdsForIndexing
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
public Collection<String> getParentProductIdsForIndexing(String productId, GenericValue product, ProductIndexer.ProductEntry pur,
Map<String, ProductIndexer.ProductEntry> expandedProducts, Timestamp moment, ExpandProductResult expandResult) throws GeneralException {
Method hasChildProductIdsForIndexing
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
public boolean hasChildProductIdsForIndexing(String productId, GenericValue product, ProductIndexer.ProductEntry pur,
Map<String, ProductIndexer.ProductEntry> expandedProducts, Timestamp moment, ExpandProductResult expandResult) throws GeneralException {
Method getRelatedProductIdsForIndexing
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
public Collection<String> getRelatedProductIdsForIndexing(String productId, GenericValue product, ProductIndexer.ProductEntry pur,
Map<String, ProductIndexer.ProductEntry> expandedProducts, Timestamp moment,
ExpandProductResult expandResult) throws GeneralException {
Method setMainPriceField
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
protected void setMainPriceField(Map<String, Object> doc, String baseName, String fieldGroup, BigDecimal value, String currencyUomId) {
Method setFloatPriceField
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
protected void setFloatPriceField(Map<String, Object> doc, String baseName, String fieldGroup, BigDecimal value, String currencyUomId) {
Method allowProduct
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
static boolean allowProduct(DispatchContext dctx, Collection<? extends ProductFilter> productFilters, GenericValue product, ProductDocBuilder productDocBuilder,
ProductIndexer.ProductEntry productEntry) throws GeneralException {
Method setPriceFields
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
protected void setPriceFields(Map<String, Object> doc, String baseName, String fieldGroup, BigDecimal value, String currencyUomId) {
Avoid too many return
statements within this method. Open
Open
return null;
Avoid too many return
statements within this method. Open
Open
return (entry != null) ? entityIndexer.makeDocEntry(entry, doc, data) : entityIndexer.makeDocEntry(pk, doc, data);
Avoid too many return
statements within this method. Open
Open
return null;