@@ -22,33 +22,58 @@ public static FolderContents getContentsOfFolder(String path, User authenticated
22
22
switch (path ) {
23
23
case "/" :
24
24
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 )})
26
26
.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 , 1589998868 , null ),
28
+ new Folder (2 , "/homework " , "Homework " , 1897557698 , 0 , 1577836800 , null )
29
29
})
30
30
.build ();
31
31
break ;
32
- case "/bla " :
32
+ case "/dhbw " :
33
33
folderContents = FolderContents .builder ()
34
+ .folders (new Folder []{
35
+ new Folder (3 , "/dhbw/se" , "SE" , 18975576 , 0 , 1601148846 , null ),
36
+ new Folder (4 , "/dhbw/ti-3" , "TI-3" , 69 , 0 , 1599936800 , null )
37
+ })
34
38
.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 , 1589998868 , FileSystemType .TEXT , null ),
49
+ new File (14 , "FinishedFileFighterBE.java" , 846846643 , 0 , 1624752000 , FileSystemType .TEXT , null ),
37
50
})
38
51
.build ();
39
52
break ;
40
- case "/fasel" :
53
+ case "/dhbw/se" :
54
+ folderContents = FolderContents .builder ()
55
+ .files (new File []{
56
+ new File (18 , "FullyAutomatedDocumentationScript.py" , 42042 , 0 , 1589998868 , FileSystemType .UNDEFINED , null )
57
+ }).build ();
58
+ break ;
59
+ case "/dhbw/ti-3" :
60
+ folderContents = FolderContents .builder ()
61
+ .files (new File []{
62
+ new File (19 , "Braun verstehen in 3 Schritten - Das Buch.pdf" , 42042 , 0 , 1589998868 , FileSystemType .PDF , null )
63
+ }).build ();
64
+ break ;
65
+ case "/homework" :
41
66
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 )})
67
+ .files (new File []{new File (15 , "homeworks.zip " , 420 , 0 , Instant .now ().getEpochSecond (), FileSystemType .UNDEFINED , null )})
68
+ .folders (new Folder []{new Folder (16 , "/homework/jonnywishesforasecretchamber " , "JonnyWishesForASecretChamber " , 2 , 0 , 1589998868 , null )})
44
69
.build ();
45
70
break ;
46
- case "/fasel/johndoessecretchamber " :
71
+ case "/homework/jonnywishesforasecretchamber " :
47
72
folderContents = FolderContents .builder ()
48
- .folders (new Folder []{new Folder (7 , "/fasel/johndoessecretchamber/empty " , "Empty " , 12345 , 0 , Instant . now (). getEpochSecond () , null )})
73
+ .folders (new Folder []{new Folder (17 , "/homework/johnwishesforasecretchamber/emptyfolder " , "EmptyFolder " , 0 , 0 , 1589998868 , null )})
49
74
.build ();
50
75
break ;
51
- case "/fasel/johndoessecretchamber/empty " :
76
+ case "/homework/jonnywishesforasecretchamber/emptyfolder " :
52
77
folderContents = FolderContents .builder ().build ();
53
78
break ;
54
79
default :
0 commit comments