1 |
24e1c89d
|
Vojtěch Bartička
|
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 |
a35cb648
|
Vojtěch Bartička
|
/// <summary>
|
15 |
|
|
/// Add list of documents to a list of users
|
16 |
|
|
/// </summary>
|
17 |
|
|
/// <param name="request"></param>
|
18 |
|
|
/// <param name="userId"></param>
|
19 |
24e1c89d
|
Vojtěch Bartička
|
public void AddDocuments(DocumentAddRequest request, Guid userId);
|
20 |
a35cb648
|
Vojtěch Bartička
|
/// <summary>
|
21 |
|
|
/// Returns all documents
|
22 |
|
|
/// </summary>
|
23 |
|
|
/// <returns></returns>
|
24 |
004c4a4e
|
Vojtěch Bartička
|
public DocumentListResponse GetDocuments();
|
25 |
a35cb648
|
Vojtěch Bartička
|
/// <summary>
|
26 |
|
|
/// Returns a preview of a document (HTML)
|
27 |
|
|
/// </summary>
|
28 |
|
|
/// <param name="documentId"></param>
|
29 |
|
|
/// <returns></returns>
|
30 |
42bb0025
|
Vojtěch Bartička
|
public DocumentPreviewResponse GetDocumentPreview(Guid documentId);
|
31 |
a35cb648
|
Vojtěch Bartička
|
/// <summary>
|
32 |
|
|
/// Delete a list of documents
|
33 |
|
|
/// </summary>
|
34 |
|
|
/// <param name="request"></param>
|
35 |
c8159dc5
|
Vojtěch Bartička
|
public void DeleteDocuments(DeleteDocumentsRequest request);
|
36 |
a35cb648
|
Vojtěch Bartička
|
/// <summary>
|
37 |
|
|
/// Set required number of annotations for a list of documents
|
38 |
|
|
/// </summary>
|
39 |
|
|
/// <param name="request"></param>
|
40 |
5adba4c4
|
Vojtěch Bartička
|
public void SetRequiredAnnotationsForDocuments(SetRequiredAnnotationsRequest request);
|
41 |
a35cb648
|
Vojtěch Bartička
|
/// <summary>
|
42 |
|
|
/// Set default required number of annotations
|
43 |
|
|
/// </summary>
|
44 |
|
|
/// <param name="requiredAnnotations"></param>
|
45 |
0a6d22b7
|
Vojtěch Bartička
|
public void SetRequiredAnnotationsGlobal(int requiredAnnotations);
|
46 |
a35cb648
|
Vojtěch Bartička
|
/// <summary>
|
47 |
|
|
/// Get default required number of annotations
|
48 |
|
|
/// </summary>
|
49 |
|
|
/// <returns></returns>
|
50 |
ceb95b98
|
Vojtěch Bartička
|
public int GetRequiredAnnotationsGlobal();
|
51 |
a35cb648
|
Vojtěch Bartička
|
/// <summary>
|
52 |
|
|
/// Remove an annotator from a document
|
53 |
|
|
/// </summary>
|
54 |
|
|
/// <param name="documentId"></param>
|
55 |
|
|
/// <param name="annotatorId"></param>
|
56 |
4540d7b6
|
Vojtěch Bartička
|
public void RemoveAnnotatorFromDocument(Guid documentId, Guid annotatorId);
|
57 |
24e1c89d
|
Vojtěch Bartička
|
}
|
58 |
|
|
}
|