mirror of
https://github.com/lacerta-doc/Lacerta.git
synced 2024-11-26 09:43:15 +00:00
Impl
This commit is contained in:
parent
1566807d4d
commit
07b6434689
|
@ -37,4 +37,20 @@ public class DocumentsImpl implements Documents {
|
||||||
return documentMetaList;
|
return documentMetaList;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public ArrayList<DocumentMeta> getStarredDocuments(int limit) { // Generate dummy data
|
||||||
|
ArrayList<DocumentMeta> documentMetaList = new ArrayList<>();
|
||||||
|
for (int i = 0; i < limit; i++) {
|
||||||
|
DocumentMeta documentMeta = new DocumentMeta();
|
||||||
|
documentMeta.id = UUID.randomUUID().toString();
|
||||||
|
documentMeta.name = "Document " + i;
|
||||||
|
documentMeta.created = new Date();
|
||||||
|
documentMeta.type = new Random(i).nextInt()/2 == 0 ? DocumentType.OTHER : DocumentType.NOTEBOOK;
|
||||||
|
documentMeta.tags = new String[] {"tag1", "tag2", "tag3"};
|
||||||
|
documentMeta.categories = new String[] {"category1", "category2", "category3"};
|
||||||
|
documentMetaList.add(documentMeta);
|
||||||
|
}
|
||||||
|
|
||||||
|
return documentMetaList;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user