Skip to content
This repository was archived by the owner on Apr 5, 2024. It is now read-only.

Commit 6155c6d

Browse files
authored
Update FileSystemBusinessService.java
1 parent 704ca1b commit 6155c6d

File tree

1 file changed

+23
-10
lines changed

1 file changed

+23
-10
lines changed

src/main/java/de/filefighter/rest/domain/filesystem/business/FileSystemBusinessService.java

Lines changed: 23 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -22,33 +22,46 @@ public static FolderContents getContentsOfFolder(String path, User authenticated
2222
switch (path) {
2323
case "/":
2424
folderContents = FolderContents.builder()
25-
.files(new File[]{new File(0, "DummyFileInRoot.txt", 420, 0, Instant.now().getEpochSecond(), FileSystemType.TEXT, null)})
25+
.files(new File[]{new File(0, "Passwords.crypt", 420, 0, 1897550098, FileSystemType.TEXT, null)})
2626
.folders(new Folder[]{
27-
new Folder(1, "/bla", "bla", 12345, 0, Instant.now().getEpochSecond(), null),
28-
new Folder(2, "/fasel", "fasel", 12345, 0, Instant.now().getEpochSecond(), null)
27+
new Folder(1, "/dhbw", "DHBW", 87568438, 0, Instant.now().getEpochSecond(), null),
28+
new Folder(2, "/homework", "Homework", 1897557698, 0, 1577836800, null)
2929
})
3030
.build();
3131
break;
3232
case "/bla":
3333
folderContents = FolderContents.builder()
34+
.folders(new Folder[]{
35+
new Folder(3, "/se", "SE", 18975576, 0, 1601148846, null),
36+
new Folder(4, "/ti-3", "TI-3", 69, 0, 1599936800, null)
37+
})
3438
.files(new File[]{
35-
new File(3, "DummyFileInBla.pdf", 42, 0, Instant.now().getEpochSecond(), FileSystemType.PDF, null),
36-
new File(4, "DummyFileInBla1.jpg", 1234321, 0, Instant.now().getEpochSecond(), FileSystemType.PICTURE, null)
39+
new File(4, "WhatIsThis", 42, 0, 153354, FileSystemType.UNDEFINED, null),
40+
new File(5, "HerrMeyerSieWissenDochImmerAlles.mp3", 27565846, 0, 1599147368, FileSystemType.AUDIO, null),
41+
new File(6, "cucumberTestsWorkProve.mp4", 224850446, 0, 1602047368, FileSystemType.VIDEO, null),
42+
new File(7, "WeirdScreenshot.jpg", 4866848, 0, 1599949968, FileSystemType.PICTURE, null),
43+
new File(8, "ILikeThisFileType.md", 96643, 0, 1598888868, FileSystemType.TEXT, null),
44+
new File(9, "MyFirstWebsite.html", 861858, 0, 1601584968, FileSystemType.TEXT, null),
45+
new File(10, "JavaScriptFTW.js", 176643, 0, 1597388868, FileSystemType.TEXT, null),
46+
new File(11, "TheyWillNeverKnow.crypt", 75896643, 0, 1600188868, FileSystemType.UNDEFINED, null),
47+
new File(12, "Opportunismus und Repression.pdf", 4826643, 0, 1589998868, FileSystemType.PDF, null),
48+
new File(13, "ProfsINeedToBribeOrCharm.txt", 153, 0, Instant.now().getEpochSecond(), FileSystemType.TEXT, null),
49+
new File(14, "FinishedFileFighterBE.java", 846846643, 0, 1624752000, FileSystemType.TEXT, null),
3750
})
3851
.build();
3952
break;
4053
case "/fasel":
4154
folderContents = FolderContents.builder()
42-
.files(new File[]{new File(5, "DummyFileInFasel.txt", 420, 0, Instant.now().getEpochSecond(), FileSystemType.TEXT, null)})
43-
.folders(new Folder[]{new Folder(6, "/fasel/johndoessecretchamber", "JohnDoesSecretChamber", 12345, 0, Instant.now().getEpochSecond(), null)})
55+
.files(new File[]{new File(15, "DummyFileInFasel.txt", 420, 0, Instant.now().getEpochSecond(), FileSystemType.TEXT, null)})
56+
.folders(new Folder[]{new Folder(16, "/fasel/johnwishesforasecretchamber", "JohnWishesForASecretChamber", 2, 0, Instant.now().getEpochSecond(), null)})
4457
.build();
4558
break;
46-
case "/fasel/johndoessecretchamber":
59+
case "/fasel/johnwishesforasecretchamber":
4760
folderContents = FolderContents.builder()
48-
.folders(new Folder[]{new Folder(7, "/fasel/johndoessecretchamber/empty", "Empty", 12345, 0, Instant.now().getEpochSecond(), null)})
61+
.folders(new Folder[]{new Folder(17, "/fasel/johnwishesforasecretchamber/empty", "Empty", 0, 0, Instant.now().getEpochSecond(), null)})
4962
.build();
5063
break;
51-
case "/fasel/johndoessecretchamber/empty":
64+
case "/fasel/johnwishesforasecretchamber/empty":
5265
folderContents = FolderContents.builder().build();
5366
break;
5467
default:

0 commit comments

Comments
 (0)