1
|
using Core.Entities;
|
2
|
using Models.Documents;
|
3
|
using System;
|
4
|
using System.Collections.Generic;
|
5
|
using System.Linq;
|
6
|
using System.Text;
|
7
|
using System.Threading.Tasks;
|
8
|
|
9
|
|
10
|
namespace Core.Services.DocumentService
|
11
|
{
|
12
|
public interface IDocumentService
|
13
|
{
|
14
|
/// <summary>
|
15
|
/// Add list of documents to a list of users
|
16
|
/// </summary>
|
17
|
/// <param name="request"></param>
|
18
|
/// <param name="userId"></param>
|
19
|
public void AddDocuments(DocumentAddRequest request, Guid userId);
|
20
|
/// <summary>
|
21
|
/// Returns all documents
|
22
|
/// </summary>
|
23
|
/// <returns></returns>
|
24
|
public DocumentListResponse GetDocuments();
|
25
|
/// <summary>
|
26
|
/// Returns a preview of a document (HTML)
|
27
|
/// </summary>
|
28
|
/// <param name="documentId"></param>
|
29
|
/// <returns></returns>
|
30
|
public DocumentPreviewResponse GetDocumentPreview(Guid documentId);
|
31
|
/// <summary>
|
32
|
/// Delete a list of documents
|
33
|
/// </summary>
|
34
|
/// <param name="request"></param>
|
35
|
public void DeleteDocuments(DeleteDocumentsRequest request);
|
36
|
/// <summary>
|
37
|
/// Set required number of annotations for a list of documents
|
38
|
/// </summary>
|
39
|
/// <param name="request"></param>
|
40
|
public void SetRequiredAnnotationsForDocuments(SetRequiredAnnotationsRequest request);
|
41
|
/// <summary>
|
42
|
/// Set default required number of annotations
|
43
|
/// </summary>
|
44
|
/// <param name="requiredAnnotations"></param>
|
45
|
public void SetRequiredAnnotationsGlobal(int requiredAnnotations);
|
46
|
/// <summary>
|
47
|
/// Get default required number of annotations
|
48
|
/// </summary>
|
49
|
/// <returns></returns>
|
50
|
public int GetRequiredAnnotationsGlobal();
|
51
|
/// <summary>
|
52
|
/// Remove an annotator from a document
|
53
|
/// </summary>
|
54
|
/// <param name="documentId"></param>
|
55
|
/// <param name="annotatorId"></param>
|
56
|
public void RemoveAnnotatorFromDocument(Guid documentId, Guid annotatorId);
|
57
|
}
|
58
|
}
|