Examples of SourceHandler


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

Examples of nu.validator.source.SourceHandler

            }
            emitter.endImageReview();
        }
       
        if (showSource) {
            SourceHandler sourceHandler = emitter.startFullSource(lineOffset);
            if (sourceHandler != null) {
                sourceCode.emitSource(sourceHandler);
            }
            emitter.endFullSource();
        }
View Full Code Here

Examples of nu.validator.source.SourceHandler

        }
        Location rangeStart = sourceCode.rangeStartForRangeLast(rangeLast);
        startMessage(type, null, rangeStart.getLine() + 1,
                rangeStart.getColumn() + 1, oneBasedLine, oneBasedColumn, false);
        messageText(message);
        SourceHandler sourceHandler = emitter.startSource();
        if (sourceHandler != null) {
            sourceCode.rangeEndError(rangeStart, rangeLast, sourceHandler);
        }
        emitter.endSource();
        elaboration(message);
View Full Code Here

Examples of nu.validator.source.SourceHandler

                oneBasedLine, oneBasedColumn, true);
        messageText(message);
        Location location = sourceCode.newLocatorLocation(oneBasedLine,
                oneBasedColumn);
        if (sourceCode.isWithinKnownSource(location)) {
            SourceHandler sourceHandler = emitter.startSource();
            if (sourceHandler != null) {
                sourceCode.exactError(location, sourceHandler);
            }
            emitter.endSource();
        } else {
View Full Code Here

Examples of nu.validator.source.SourceHandler

            throw new RuntimeException("Bug. Line out of range!");
        }
        startMessage(type, null, oneBasedLine, -1, oneBasedLine, -1,
                false);
        messageText(message);
        SourceHandler sourceHandler = emitter.startSource();
        if (sourceHandler != null) {
            sourceCode.lineError(oneBasedLine, sourceHandler);
        }
        emitter.endSource();
        elaboration(message);
View Full Code Here

Examples of nu.validator.source.SourceHandler

            }
            emitter.endImageReview();
        }
       
        if (showSource) {
            SourceHandler sourceHandler = emitter.startFullSource(lineOffset);
            if (sourceHandler != null) {
                sourceCode.emitSource(sourceHandler);
            }
            emitter.endFullSource();
        }
View Full Code Here

Examples of nu.validator.source.SourceHandler

        }
        Location rangeStart = sourceCode.rangeStartForRangeLast(rangeLast);
        startMessage(type, null, rangeStart.getLine() + 1,
                rangeStart.getColumn() + 1, oneBasedLine, oneBasedColumn, false);
        messageText(message);
        SourceHandler sourceHandler = emitter.startSource();
        if (sourceHandler != null) {
            sourceCode.rangeEndError(rangeStart, rangeLast, sourceHandler);
        }
        emitter.endSource();
        elaboration(message);
View Full Code Here

Examples of nu.validator.source.SourceHandler

                oneBasedLine, oneBasedColumn, true);
        messageText(message);
        Location location = sourceCode.newLocatorLocation(oneBasedLine,
                oneBasedColumn);
        if (sourceCode.isWithinKnownSource(location)) {
            SourceHandler sourceHandler = emitter.startSource();
            if (sourceHandler != null) {
                sourceCode.exactError(location, sourceHandler);
            }
            emitter.endSource();
        } else {
View Full Code Here

Examples of nu.validator.source.SourceHandler

            throw new RuntimeException("Bug. Line out of range!");
        }
        startMessage(type, null, oneBasedLine, -1, oneBasedLine, -1,
                false);
        messageText(message);
        SourceHandler sourceHandler = emitter.startSource();
        if (sourceHandler != null) {
            sourceCode.lineError(oneBasedLine, sourceHandler);
        }
        emitter.endSource();
        elaboration(message);
View Full Code Here

Examples of nu.validator.source.SourceHandler

            }
            emitter.endImageReview();
        }
       
        if (showSource) {
            SourceHandler sourceHandler = emitter.startFullSource(lineOffset);
            if (sourceHandler != null) {
                sourceCode.emitSource(sourceHandler);
            }
            emitter.endFullSource();
        }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.