public AnnotationController(
     CreateAnnotationCommandHandler createCommand,
     DeleteAnnotationCommandHandler deleteCommand,
     GetDocumentAnnotationsQuery documentAnnotationsQuery,
     GetAllDocumentTypesQuery getDTsQuery,
     GetAllEntitiesQuery getEsQuery,
     GetAllAnnotationTypesQuery getAATsQuery,
     SearchDocumentsToAnnotateCountQuery searchCountQuery,
     SearchDocumentsToAnnotateQuery searchQuery
     )
 {
     this.createCommand            = createCommand;
     this.deleteCommand            = deleteCommand;
     this.documentAnnotationsQuery = documentAnnotationsQuery;
     this.getDTsQuery      = getDTsQuery;
     this.getEsQuery       = getEsQuery;
     this.getAATsQuery     = getAATsQuery;
     this.searchCountQuery = searchCountQuery;
     this.searchQuery      = searchQuery;
 }
示例#2
0
 public SearchController(
     GetAllDocumentTypesQuery getAllDTQuery,
     GetAllEntitiesQuery getAllETQuery,
     SearchCountQuery searchCountQuery,
     SearchDocumentsQuery searchDocumentsQuery,
     DownloadFileQuery downloadFileQuery,
     GetAllAnnotationTypesQuery getAllATQuery,
     GetDocumentAnnotationsQuery getDocAnnotationsQuery,
     GetOneDocumentQuery getOneDocumentQuery
     )
 {
     this.getAllDTQuery          = getAllDTQuery;
     this.getAllEQuery           = getAllETQuery;
     this.searchCountQuery       = searchCountQuery;
     this.searchDocumentsQuery   = searchDocumentsQuery;
     this.downloadFileQuery      = downloadFileQuery;
     this.getAllATQuery          = getAllATQuery;
     this.getDocAnnotationsQuery = getDocAnnotationsQuery;
     this.getOneDocumentQuery    = getOneDocumentQuery;
 }