Package com.ikanow.infinit.e.api.config.source

Examples of com.ikanow.infinit.e.api.config.source.SourceHandler


                List<SourcePojo> sources = SourcePojo.listFromDb(DbManager.getIngest().getSource().find(deleteQuery2, deleteFields2), SourcePojo.listType());
                List<SourcePojo> failedSources = new ArrayList<SourcePojo>();
                for (SourcePojo source: sources)
                {
                  ResponsePojo rp1 = null;
                  SourceHandler tmpHandler = new SourceHandler();
                  if (1 == source.getCommunityIds().size()) { // delete this source
                    rp1 = tmpHandler.deleteSource(source.getId().toString(), communityIdStr, personIdStr, false);
                      // (deletes all docs and removes from the share)
                  }
                  else { // Still need to delete docs from this share from this community
                    rp1 = tmpHandler.deleteSource(source.getId().toString(), communityIdStr, personIdStr, true);                   
                  }
                  if ( rp1 != null && !rp1.getResponse().isSuccess() )
                  {
                    failedSources.add(source);
                  }
View Full Code Here

TOP

Related Classes of com.ikanow.infinit.e.api.config.source.SourceHandler

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.