File tree Expand file tree Collapse file tree 2 files changed +36
-12
lines changed
src/main/java/data_access Expand file tree Collapse file tree 2 files changed +36
-12
lines changed Original file line number Diff line number Diff line change 2
2
3
3
import data_access .entity_request_models .FlashcardSetDsRequestModel ;
4
4
5
- // use case layer
5
+ /**
6
+ * User Data Access Interface.
7
+ * Application Business Rules
8
+ * @author Justin Li
9
+ */
10
+
6
11
public interface IFlashcardSetDataAccess {
7
12
13
+ /**
14
+ * @param flashcardSetId the id of the flashcard set.
15
+ * @return the flashcardSet object by the id given.
16
+ */
8
17
FlashcardSetDsRequestModel getFlashcardSet (int flashcardSetId );
9
-
18
+ /**
19
+ * @param flashcardSetId the id of the flashcard set.
20
+ * @return the title and description of the flashcard set.
21
+ */
10
22
String [] getTitleAndDescription (int flashcardSetId );
11
-
23
+ /**
24
+ * @param flashcardSet the flashcard set object.
25
+ */
12
26
void editTitleAndDescription (FlashcardSetDsRequestModel flashcardSet );
13
-
27
+ /**
28
+ * @param flashcardSetId the id of the flashcard set.
29
+ * @param flashcardId the id of the flashcard that will be added.
30
+ */
14
31
void saveFlashcardID (int flashcardSetId , int flashcardId );
15
-
32
+ /**
33
+ * @param flashcardSetId the id of the flashcard set.
34
+ * @param flashcardId the id of the flashcard that will be removed.
35
+ */
16
36
void removeFlashcardId (int flashcardSetId , int flashcardId );
17
-
18
- void deleteFlashcardSet (int flashcardSetID );
19
-
37
+ /**
38
+ * @param flashcardSetId the id of the flashcard set that will be deleted.
39
+ */
40
+ void deleteFlashcardSet (int flashcardSetId );
41
+ /**
42
+ * @param flashcardSet the flashcard set object.
43
+ */
20
44
int saveFlashcardSet (FlashcardSetDsRequestModel flashcardSet );
21
45
22
46
Original file line number Diff line number Diff line change @@ -28,14 +28,14 @@ public interface IUserDataAccess {
28
28
Collection <CommonUserDsRequestModel > getAllUsers ();
29
29
/**
30
30
* @param username the user's username
31
- * @param flashcardSetID the id of the flashcard set that the user would like to create.
31
+ * @param flashcardSetId the id of the flashcard set that the user would like to create.
32
32
*/
33
- void saveFlashcardSetID (String username , int flashcardSetID );
33
+ void saveFlashcardSetID (String username , int flashcardSetId );
34
34
/**
35
35
* @param username the user's username
36
- * @param flashcardSetID the id of the flashcard set that the user would like to delete.
36
+ * @param flashcardSetId the id of the flashcard set that the user would like to delete.
37
37
*/
38
- void deleteFlashcardSetID (String username , int flashcardSetID );
38
+ void deleteFlashcardSetID (String username , int flashcardSetId );
39
39
/**
40
40
* @param user the User object.
41
41
*/
You can’t perform that action at this time.
0 commit comments