@Entity @SessionScoped public class User extends Object implements Serializable
| Constructor and Description |
|---|
User() |
| Modifier and Type | Method and Description |
|---|---|
void |
addShelf(Shelf shelf)
This method add shelf to collection of shelves, belongs to user
|
boolean |
equals(Object o) |
List<Album> |
getAlbums()
This method return all albums, belongs to user
|
Date |
getBirthDate() |
String |
getConfirmPassword() |
String |
getEmail() |
String |
getFbId() |
String |
getFirstName() |
String |
getgPlusId() |
Boolean |
getHasAvatar() |
Long |
getId() |
List<Image> |
getImages()
This method return all images, belongs to user
|
String |
getLogin() |
String |
getPassword() |
String |
getPasswordHash() |
String |
getPath()
Return relative path of folder with user's images in file-system(relative to uploadRoot parameter)
|
String |
getSecondName() |
Sex |
getSex() |
List<Album> |
getSharedAlbums()
This method return all albums, belongs to user
|
List<Image> |
getSharedImages()
This method return all images, belongs to user
|
List<Shelf> |
getShelves() |
boolean |
hasAlbumWithName(Album album)
This method check, if parent shelf contain album with the same name as given album
|
int |
hashCode() |
boolean |
hasImageWithName(Image image)
This method check, if containing album already have image with the same name
|
boolean |
hasShelfWithName(Shelf shelf)
This method check, if user already have shelf with given name
|
boolean |
isPreDefined() |
void |
removeShelf(Shelf shelf)
This method remove shelf from collection of shelves, belongs to user
|
void |
setBirthDate(Date birthDate) |
void |
setConfirmPassword(String confirmPassword) |
void |
setEmail(String email) |
void |
setFbId(String fbId) |
void |
setFirstName(String firstName) |
void |
setgPlusId(String gPlusId) |
void |
setHasAvatar(Boolean hasAvatar) |
void |
setLogin(String login) |
void |
setPassword(String password) |
void |
setPasswordHash(String passwordHash) |
void |
setPreDefined(boolean preDefined) |
void |
setSecondName(String secondName) |
void |
setSex(Sex sex) |
String |
toString() |
public boolean isPreDefined()
public void setPreDefined(boolean preDefined)
public String getFbId()
public void setFbId(String fbId)
public String getgPlusId()
public void setgPlusId(String gPlusId)
public String getFirstName()
public void setFirstName(String firstName)
public String getSecondName()
public void setSecondName(String secondName)
public String getEmail()
public void setEmail(String email)
public String getPasswordHash()
public void setPasswordHash(String passwordHash)
public String getLogin()
public void setLogin(String login)
public String getPassword()
public void setPassword(String password)
public Date getBirthDate()
public void setBirthDate(Date birthDate)
public Long getId()
public String getConfirmPassword()
public void setConfirmPassword(String confirmPassword)
public Sex getSex()
public void setSex(Sex sex)
public Boolean getHasAvatar()
public void setHasAvatar(Boolean hasAvatar)
public void addShelf(Shelf shelf)
shelf - - shelf to addpublic void removeShelf(Shelf shelf)
shelf - - shelf to removepublic String getPath()
public List<Image> getImages()
public List<Album> getAlbums()
public List<Image> getSharedImages()
public List<Album> getSharedAlbums()
public boolean hasShelfWithName(Shelf shelf)
shelf - - shelf to checkpublic boolean hasAlbumWithName(Album album)
album - - album to checkpublic boolean hasImageWithName(Image image)
image - - image to checkCopyright © 2015. All rights reserved.