test_class.file: herd-code/herd-service/src/test/java/org/finra/herd/service/helper/SearchIndexDaoHelperTest.java
test_class.identifier: SearchIndexDaoHelperTest
test_class.superclass: extends AbstractServiceTest
test_case.body: @Test
      public void testUpdateSearchIndexStatus()
      {
          // Create and persist a search index entity.
          SearchIndexEntity searchIndexEntity = searchIndexDaoTestHelper.createSearchIndexEntity(SEARCH_INDEX_NAME, SEARCH_INDEX_TYPE, SEARCH_INDEX_STATUS);
  
          // Create and persist a search index status entity.
          searchIndexStatusDaoTestHelper.createSearchIndexStatusEntity(SEARCH_INDEX_STATUS_2);
  
          // Update the status of the search index entity.
          searchIndexDaoHelper.updateSearchIndexStatus(new SearchIndexKey(SEARCH_INDEX_NAME), SEARCH_INDEX_STATUS_2);
  
          // Validate the results.
          assertEquals(SEARCH_INDEX_STATUS_2, searchIndexEntity.getStatus().getCode());
      }
test_case.class_method_signature: SearchIndexDaoHelperTest.testUpdateSearchIndexStatus()
test_case.full_signature: @Test public void testUpdateSearchIndexStatus()
test_case.identifier: testUpdateSearchIndexStatus
test_case.invocations: createSearchIndexEntity createSearchIndexStatusEntity updateSearchIndexStatus assertEquals getCode getStatus
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testUpdateSearchIndexStatus()
focal_class.declarator: searchIndexDao
focal_class.modifier: @Autowired
      private
focal_class.original_string: @Autowired
      private SearchIndexDao searchIndexDao;
focal_class.type: SearchIndexDao
focal_class.var_name: searchIndexDao
focal_class.declarator: searchIndexStatusDaoHelper
focal_class.modifier: @Autowired
      private
focal_class.original_string: @Autowired
      private SearchIndexStatusDaoHelper searchIndexStatusDaoHelper;
focal_class.type: SearchIndexStatusDaoHelper
focal_class.var_name: searchIndexStatusDaoHelper
focal_class.declarator: searchIndexTypeDaoHelper
focal_class.modifier: @Autowired
      private
focal_class.original_string: @Autowired
      private SearchIndexTypeDaoHelper searchIndexTypeDaoHelper;
focal_class.type: SearchIndexTypeDaoHelper
focal_class.var_name: searchIndexTypeDaoHelper
focal_class.file: herd-code/herd-service/src/main/java/org/finra/herd/service/helper/SearchIndexDaoHelper.java
focal_class.identifier: SearchIndexDaoHelper
focal_class.class_method_signature: SearchIndexDaoHelper.getSearchIndexEntity(SearchIndexKey searchIndexKey)
focal_class.full_signature: public SearchIndexEntity getSearchIndexEntity(SearchIndexKey searchIndexKey)
focal_class.identifier: getSearchIndexEntity
focal_class.modifiers: public
focal_class.parameters: (SearchIndexKey searchIndexKey)
focal_class.return: SearchIndexEntity
focal_class.signature: SearchIndexEntity getSearchIndexEntity(SearchIndexKey searchIndexKey)
focal_class.class_method_signature: SearchIndexDaoHelper.updateSearchIndexStatus(SearchIndexKey searchIndexKey, String searchIndexStatus)
focal_class.full_signature: public void updateSearchIndexStatus(SearchIndexKey searchIndexKey, String searchIndexStatus)
focal_class.identifier: updateSearchIndexStatus
focal_class.modifiers: public
focal_class.parameters: (SearchIndexKey searchIndexKey, String searchIndexStatus)
focal_class.return: void
focal_class.signature: void updateSearchIndexStatus(SearchIndexKey searchIndexKey, String searchIndexStatus)
focal_class.class_method_signature: SearchIndexDaoHelper.activateSearchIndex(SearchIndexEntity currentSearchIndexEntity)
focal_class.full_signature: public void activateSearchIndex(SearchIndexEntity currentSearchIndexEntity)
focal_class.identifier: activateSearchIndex
focal_class.modifiers: public
focal_class.parameters: (SearchIndexEntity currentSearchIndexEntity)
focal_class.return: void
focal_class.signature: void activateSearchIndex(SearchIndexEntity currentSearchIndexEntity)
focal_class.class_method_signature: SearchIndexDaoHelper.getActiveSearchIndex(String indexType)
focal_class.full_signature: public String getActiveSearchIndex(String indexType)
focal_class.identifier: getActiveSearchIndex
focal_class.modifiers: public
focal_class.parameters: (String indexType)
focal_class.return: String
focal_class.signature: String getActiveSearchIndex(String indexType)
focal_method.body: public void updateSearchIndexStatus(SearchIndexKey searchIndexKey, String searchIndexStatus) throws ObjectNotFoundException
      {
          // Get the search index entity and ensure that it exists.
          SearchIndexEntity searchIndexEntity = getSearchIndexEntity(searchIndexKey);
  
          // Get the search index status entity and ensure that it exists.
          SearchIndexStatusEntity searchIndexStatusEntity = searchIndexStatusDaoHelper.getSearchIndexStatusEntity(searchIndexStatus);
  
          // Update the search index status.
          searchIndexEntity.setStatus(searchIndexStatusEntity);
  
          // Persist the entity.
          searchIndexDao.saveAndRefresh(searchIndexEntity);
      }
focal_method.class_method_signature: SearchIndexDaoHelper.updateSearchIndexStatus(SearchIndexKey searchIndexKey, String searchIndexStatus)
focal_method.full_signature: public void updateSearchIndexStatus(SearchIndexKey searchIndexKey, String searchIndexStatus)
focal_method.identifier: updateSearchIndexStatus
focal_method.invocations: getSearchIndexEntity getSearchIndexStatusEntity setStatus saveAndRefresh
focal_method.modifiers: public
focal_method.parameters: (SearchIndexKey searchIndexKey, String searchIndexStatus)
focal_method.return: void
focal_method.signature: void updateSearchIndexStatus(SearchIndexKey searchIndexKey, String searchIndexStatus)