| Modifier and Type | Method and Description |
|---|---|
Story |
View.getStory()
Returns the story that was viewed.
|
| Modifier and Type | Method and Description |
|---|---|
List<Story> |
User.getCreatedStories()
Returns the list of stories that user creates
|
| Modifier and Type | Method and Description |
|---|---|
void |
User.addStory(Story story)
Adds a story directly to the stories collection of this user if the story
does not already belongs to this user.
|
boolean |
User.isAuthorofStory(Story story)
Checks if a story belongs to this user.
|
void |
User.removeStory(Story story)
Removes a story directly from the stories collection of this user.
|
| Modifier and Type | Method and Description |
|---|---|
void |
User.setCreatedStories(List<Story> createdStories)
Sets the list of stories that user creates.
|
| Constructor and Description |
|---|
View(Long id,
Story story,
Date date)
Creates a new instance of
View with id. |
View(Story story,
Date date)
Creates a new instance of
View |
| Constructor and Description |
|---|
User(String login,
String password,
String role,
List<Story> stories)
Creates a new instance of
User |
Copyright © 2022. All rights reserved.