@Test public void toSolrAdvancedSearch() { unit.setEnableContentFileIndexing(false); mockSearchAccessControlFields.setAccessControlFields(anyObject(SolrBaseDocument.class), anyObject(AcmAssignedObject.class)); expectLastCall(); expect(mockUserDao.quietFindByUserId(eq("user"))).andReturn(user).times(2); expect(mockUserDao.quietFindByUserId(null)).andReturn(null); replayAll(); SolrAdvancedSearchDocument result = unit.toSolrAdvancedSearch(in); verifyAll(); validateResult(result); }
@Override public SolrAdvancedSearchDocument toSolrAdvancedSearch(EcmFile in) { if (enableContentFileIndexing) { return null; } else { return mapDocumentProperties(in); } }
EcmFileToSolrTransformer implements AcmObjectToSolrDocTransformer<EcmFile> { @Override public SolrAdvancedSearchDocument toSolrAdvancedSearch(EcmFile in) { if (enableContentFileIndexing) { return null; } else { return mapDocumentProperties(in); } } }
EcmFileToSolrTransformer implements AcmObjectToSolrDocTransformer<EcmFile> { @Override public SolrAdvancedSearchDocument toSolrAdvancedSearch(EcmFile in) { if (enableContentFileIndexing) { return null; } else { return mapDocumentProperties(in); } }  }
EcmFileToSolrTransformer implements AcmObjectToSolrDocTransformer<EcmFile> { @Override public SolrAdvancedSearchDocument toSolrAdvancedSearch(EcmFile in) { if (enableContentFileIndexing) { return null; } else { return mapDocumentProperties(in); } }  @Override List<EcmFile> getObjectsModifiedSince(Date lastModified, int start, int pageSize); @Override SolrContentDocument toContentFileIndex(EcmFile in); @Override SolrAdvancedSearchDocument toSolrAdvancedSearch(EcmFile in); @Override SolrDocument toSolrQuickSearch(EcmFile in); @Override boolean isAcmObjectTypeSupported(Class acmObjectType); EcmFileDao getEcmFileDao(); void setEcmFileDao(EcmFileDao ecmFileDao); Boolean getEnableContentFileIndexing(); void setEnableContentFileIndexing(Boolean enableContentFileIndexing); Boolean getEnableDocumentACL(); void setEnableDocumentACL(Boolean enableDocumentACL); UserDao getUserDao(); void setUserDao(UserDao userDao); @Override Class<?> getAcmObjectTypeSupported(); SearchAccessControlFields getSearchAccessControlFields(); void setSearchAccessControlFields(SearchAccessControlFields searchAccessControlFields); ArkCaseBeanUtils getArkCaseBeanUtils(); AcmDataService getAcmDataService(); void setAcmDataService(AcmDataService acmDataService); }
EcmFileToSolrTransformer implements AcmObjectToSolrDocTransformer<EcmFile> { @Override public SolrAdvancedSearchDocument toSolrAdvancedSearch(EcmFile in) { if (enableContentFileIndexing) { return null; } else { return mapDocumentProperties(in); } }  @Override List<EcmFile> getObjectsModifiedSince(Date lastModified, int start, int pageSize); @Override SolrContentDocument toContentFileIndex(EcmFile in); @Override SolrAdvancedSearchDocument toSolrAdvancedSearch(EcmFile in); @Override SolrDocument toSolrQuickSearch(EcmFile in); @Override boolean isAcmObjectTypeSupported(Class acmObjectType); EcmFileDao getEcmFileDao(); void setEcmFileDao(EcmFileDao ecmFileDao); Boolean getEnableContentFileIndexing(); void setEnableContentFileIndexing(Boolean enableContentFileIndexing); Boolean getEnableDocumentACL(); void setEnableDocumentACL(Boolean enableDocumentACL); UserDao getUserDao(); void setUserDao(UserDao userDao); @Override Class<?> getAcmObjectTypeSupported(); SearchAccessControlFields getSearchAccessControlFields(); void setSearchAccessControlFields(SearchAccessControlFields searchAccessControlFields); ArkCaseBeanUtils getArkCaseBeanUtils(); AcmDataService getAcmDataService(); void setAcmDataService(AcmDataService acmDataService);  }