@Test public void test_edmIsShownByUrl_DefaultOptions() throws ExecutionException { final List<ProcessingJobTuple> expectedJobs = ProcessingJobBuilder.edmIsShownByUrlJobs(url, owner,JobPriority.NORMAL.getPriority(), falseOption); final List<ProcessingJobTuple> jobs = JobCreator.createJobs(collectionId, providerId, recordId, executionId, null, null, url, null,JobPriority.NORMAL.getPriority(), falseOption ); checkEquals (expectedJobs, jobs); }
public final static List<ProcessingJobTuple> createJobs (final ReferenceOwner owner, final SourceDocumentReference reference, final URLSourceType urlSourceType, final int priority, final DocumentReferenceTaskType taskType ) throws ExecutionException { final String sourceDocumentRefUrl = reference.getUrl(); final String edmObjectUrl = (URLSourceType.OBJECT == urlSourceType) ? sourceDocumentRefUrl : null; final List<String> edmHasViewUrl = (URLSourceType.HASVIEW == urlSourceType) ? Arrays.asList(sourceDocumentRefUrl) : null; final String edmIsShownByUrl = (URLSourceType.ISSHOWNBY == urlSourceType) ? sourceDocumentRefUrl: null; final String edmIshShownAtUrl = (URLSourceType.ISSHOWNAT == urlSourceType) ? sourceDocumentRefUrl: null; final ProcessingJobCreationOptions options = new ProcessingJobCreationOptions(DocumentReferenceTaskType.UNCONDITIONAL_DOWNLOAD == taskType); return createJobs(owner.getCollectionId(), owner.getProviderId(), owner.getRecordId(), owner.getExecutionId(), edmObjectUrl, edmHasViewUrl, edmIsShownByUrl, edmIshShownAtUrl, priority, reference, options ); }
JobCreator { public final static List<ProcessingJobTuple> createJobs (final ReferenceOwner owner, final SourceDocumentReference reference, final URLSourceType urlSourceType, final int priority, final DocumentReferenceTaskType taskType ) throws ExecutionException { final String sourceDocumentRefUrl = reference.getUrl(); final String edmObjectUrl = (URLSourceType.OBJECT == urlSourceType) ? sourceDocumentRefUrl : null; final List<String> edmHasViewUrl = (URLSourceType.HASVIEW == urlSourceType) ? Arrays.asList(sourceDocumentRefUrl) : null; final String edmIsShownByUrl = (URLSourceType.ISSHOWNBY == urlSourceType) ? sourceDocumentRefUrl: null; final String edmIshShownAtUrl = (URLSourceType.ISSHOWNAT == urlSourceType) ? sourceDocumentRefUrl: null; final ProcessingJobCreationOptions options = new ProcessingJobCreationOptions(DocumentReferenceTaskType.UNCONDITIONAL_DOWNLOAD == taskType); return createJobs(owner.getCollectionId(), owner.getProviderId(), owner.getRecordId(), owner.getExecutionId(), edmObjectUrl, edmHasViewUrl, edmIsShownByUrl, edmIshShownAtUrl, priority, reference, options ); } }
JobCreator { public final static List<ProcessingJobTuple> createJobs (final ReferenceOwner owner, final SourceDocumentReference reference, final URLSourceType urlSourceType, final int priority, final DocumentReferenceTaskType taskType ) throws ExecutionException { final String sourceDocumentRefUrl = reference.getUrl(); final String edmObjectUrl = (URLSourceType.OBJECT == urlSourceType) ? sourceDocumentRefUrl : null; final List<String> edmHasViewUrl = (URLSourceType.HASVIEW == urlSourceType) ? Arrays.asList(sourceDocumentRefUrl) : null; final String edmIsShownByUrl = (URLSourceType.ISSHOWNBY == urlSourceType) ? sourceDocumentRefUrl: null; final String edmIshShownAtUrl = (URLSourceType.ISSHOWNAT == urlSourceType) ? sourceDocumentRefUrl: null; final ProcessingJobCreationOptions options = new ProcessingJobCreationOptions(DocumentReferenceTaskType.UNCONDITIONAL_DOWNLOAD == taskType); return createJobs(owner.getCollectionId(), owner.getProviderId(), owner.getRecordId(), owner.getExecutionId(), edmObjectUrl, edmHasViewUrl, edmIsShownByUrl, edmIshShownAtUrl, priority, reference, options ); }  }
JobCreator { public final static List<ProcessingJobTuple> createJobs (final ReferenceOwner owner, final SourceDocumentReference reference, final URLSourceType urlSourceType, final int priority, final DocumentReferenceTaskType taskType ) throws ExecutionException { final String sourceDocumentRefUrl = reference.getUrl(); final String edmObjectUrl = (URLSourceType.OBJECT == urlSourceType) ? sourceDocumentRefUrl : null; final List<String> edmHasViewUrl = (URLSourceType.HASVIEW == urlSourceType) ? Arrays.asList(sourceDocumentRefUrl) : null; final String edmIsShownByUrl = (URLSourceType.ISSHOWNBY == urlSourceType) ? sourceDocumentRefUrl: null; final String edmIshShownAtUrl = (URLSourceType.ISSHOWNAT == urlSourceType) ? sourceDocumentRefUrl: null; final ProcessingJobCreationOptions options = new ProcessingJobCreationOptions(DocumentReferenceTaskType.UNCONDITIONAL_DOWNLOAD == taskType); return createJobs(owner.getCollectionId(), owner.getProviderId(), owner.getRecordId(), owner.getExecutionId(), edmObjectUrl, edmHasViewUrl, edmIsShownByUrl, edmIshShownAtUrl, priority, reference, options ); }  final static List<ProcessingJobTuple> createJobs(final ReferenceOwner owner,
                                                             final SourceDocumentReference reference,
                                                             final URLSourceType urlSourceType,
                                                             final int priority,
                                                             final DocumentReferenceTaskType taskType
                                                            ); final static List<ProcessingJobTuple> createJobs(final String collectionId,
                                                            final String providerId,
                                                            final String recordId,
                                                            final String executionId,
                                                            final String edmObjectUrl,
                                                            final List<String> edmHasViewUrls,
                                                            final String edmIsShownByUrl,
                                                            final String edmIsShownAtUrl,
                                                            final Integer priority
                                                            ); final static List<ProcessingJobTuple> createJobs(final String collectionId,
                                                            final String providerId,
                                                            final String recordId,
                                                            final String executionId,
                                                            final String edmObjectUrl,
                                                            final List<String> edmHasViewUrls,
                                                            final String edmIsShownByUrl,
                                                            final String edmIsShownAtUrl,
                                                            final Integer priority,
                                                            final ProcessingJobCreationOptions options); final static List<ProcessingJobTuple> createJobs(final String collectionId,
                                                            final String providerId,
                                                            final String recordId,
                                                            final String executionId,
                                                            final String edmObjectUrl,
                                                            final List<String> edmHasViewUrls,
                                                            final String edmIsShownByUrl,
                                                            final String edmIsShownAtUrl,
                                                            final Integer priority,
                                                            final SourceDocumentReference sourceDocumentReference,
                                                            final ProcessingJobCreationOptions options); }
JobCreator { public final static List<ProcessingJobTuple> createJobs (final ReferenceOwner owner, final SourceDocumentReference reference, final URLSourceType urlSourceType, final int priority, final DocumentReferenceTaskType taskType ) throws ExecutionException { final String sourceDocumentRefUrl = reference.getUrl(); final String edmObjectUrl = (URLSourceType.OBJECT == urlSourceType) ? sourceDocumentRefUrl : null; final List<String> edmHasViewUrl = (URLSourceType.HASVIEW == urlSourceType) ? Arrays.asList(sourceDocumentRefUrl) : null; final String edmIsShownByUrl = (URLSourceType.ISSHOWNBY == urlSourceType) ? sourceDocumentRefUrl: null; final String edmIshShownAtUrl = (URLSourceType.ISSHOWNAT == urlSourceType) ? sourceDocumentRefUrl: null; final ProcessingJobCreationOptions options = new ProcessingJobCreationOptions(DocumentReferenceTaskType.UNCONDITIONAL_DOWNLOAD == taskType); return createJobs(owner.getCollectionId(), owner.getProviderId(), owner.getRecordId(), owner.getExecutionId(), edmObjectUrl, edmHasViewUrl, edmIsShownByUrl, edmIshShownAtUrl, priority, reference, options ); }  final static List<ProcessingJobTuple> createJobs(final ReferenceOwner owner,
                                                             final SourceDocumentReference reference,
                                                             final URLSourceType urlSourceType,
                                                             final int priority,
                                                             final DocumentReferenceTaskType taskType
                                                            ); final static List<ProcessingJobTuple> createJobs(final String collectionId,
                                                            final String providerId,
                                                            final String recordId,
                                                            final String executionId,
                                                            final String edmObjectUrl,
                                                            final List<String> edmHasViewUrls,
                                                            final String edmIsShownByUrl,
                                                            final String edmIsShownAtUrl,
                                                            final Integer priority
                                                            ); final static List<ProcessingJobTuple> createJobs(final String collectionId,
                                                            final String providerId,
                                                            final String recordId,
                                                            final String executionId,
                                                            final String edmObjectUrl,
                                                            final List<String> edmHasViewUrls,
                                                            final String edmIsShownByUrl,
                                                            final String edmIsShownAtUrl,
                                                            final Integer priority,
                                                            final ProcessingJobCreationOptions options); final static List<ProcessingJobTuple> createJobs(final String collectionId,
                                                            final String providerId,
                                                            final String recordId,
                                                            final String executionId,
                                                            final String edmObjectUrl,
                                                            final List<String> edmHasViewUrls,
                                                            final String edmIsShownByUrl,
                                                            final String edmIsShownAtUrl,
                                                            final Integer priority,
                                                            final SourceDocumentReference sourceDocumentReference,
                                                            final ProcessingJobCreationOptions options); final static CachingUrlResolver URL_RESOLVER; }