Uses of Class
NTNU.IDATT1002.models.User
Package | Description |
---|---|
NTNU.IDATT1002.controllers.components.exploreAlbums | |
NTNU.IDATT1002.models |
Provides the model classes for the entities in this application.
|
NTNU.IDATT1002.service |
Service classes providing high level behaviour,
connecting the controllers with the business logic.
|
-
Uses of User in NTNU.IDATT1002.controllers.components.exploreAlbums
Constructors in NTNU.IDATT1002.controllers.components.exploreAlbums with parameters of type User Constructor Description UserHBox(User user)
Create HBox holding given user and create a corresponding label. -
Uses of User in NTNU.IDATT1002.models
Methods in NTNU.IDATT1002.models that return User Modifier and Type Method Description User
Album. getUser()
User
Image. getUser()
User
Login. getUser()
-
Uses of User in NTNU.IDATT1002.service
Methods in NTNU.IDATT1002.service that return User Modifier and Type Method Description static User
ApplicationState. getCurrentUser()
Retrieve the current logged in user if present, or retrieve an anonymous user.Methods in NTNU.IDATT1002.service that return types with arguments of type User Modifier and Type Method Description java.util.Optional<User>
UserService. createUser(java.lang.String email, java.lang.String username, java.lang.String firstName, java.lang.String lastName, java.lang.String callingCode, java.lang.String phoneNumber, java.util.Date birthDate, java.lang.String password)
Creates a new user and sets password on the new userjava.util.List<User>
UserService. getUsers()
Methods in NTNU.IDATT1002.service with parameters of type User Modifier and Type Method Description java.util.Optional<Album>
AlbumService. createAlbum(java.lang.String title, java.lang.String description, User user, java.util.List<Tag> tags, java.util.List<Image> images)
Create a new album with all fields populated.java.util.Optional<Album>
AlbumService. createEmptyAlbum(java.lang.String title, java.lang.String description, User user, java.util.List<Tag> tags)
Retrieves all albums created by the given user by username.java.util.Optional<Image>
ImageService. createImage(User user, java.io.File file, java.util.List<Tag> tags, java.lang.String title)
Creates a new image from the input File Sets metadata to image by usingMetaDataExtractor
Sets a blob of image by usingImageUtil
Finally sets user, path, title and tags to imagejava.util.List<Image>
ImageService. getImageFromUser(User user)
Finds each picture belonging to a specific user.static void
ApplicationState. setCurrentUser(User currentUser)