RichFaces Photoalbum 4.3.5.Final

org.richfaces.photoalbum.model
Class User

java.lang.Object
  extended by org.richfaces.photoalbum.model.User
All Implemented Interfaces:
Serializable

@Entity
@SessionScoped
public class User
extends Object
implements Serializable

Class for representing User Entity EJB3 Entity Bean

Author:
Andrey Markhel
See Also:
Serialized Form

Constructor Summary
User()
           
 
Method Summary
 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()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

User

public User()
Method Detail

isPreDefined

public boolean isPreDefined()

setPreDefined

public void setPreDefined(boolean preDefined)

getFbId

public String getFbId()

setFbId

public void setFbId(String fbId)

getgPlusId

public String getgPlusId()

setgPlusId

public void setgPlusId(String gPlusId)

getFirstName

public String getFirstName()

setFirstName

public void setFirstName(String firstName)

getSecondName

public String getSecondName()

setSecondName

public void setSecondName(String secondName)

getEmail

public String getEmail()

setEmail

public void setEmail(String email)

getPasswordHash

public String getPasswordHash()

setPasswordHash

public void setPasswordHash(String passwordHash)

getLogin

public String getLogin()

setLogin

public void setLogin(String login)

getPassword

public String getPassword()

setPassword

public void setPassword(String password)

getBirthDate

public Date getBirthDate()

setBirthDate

public void setBirthDate(Date birthDate)

getId

public Long getId()

getConfirmPassword

public String getConfirmPassword()

setConfirmPassword

public void setConfirmPassword(String confirmPassword)

getShelves

public List<Shelf> getShelves()

getSex

public Sex getSex()

setSex

public void setSex(Sex sex)

getHasAvatar

public Boolean getHasAvatar()

setHasAvatar

public void setHasAvatar(Boolean hasAvatar)

addShelf

public void addShelf(Shelf shelf)
This method add shelf to collection of shelves, belongs to user

Parameters:
shelf - - shelf to add

removeShelf

public void removeShelf(Shelf shelf)
This method remove shelf from collection of shelves, belongs to user

Parameters:
shelf - - shelf to remove

getPath

public String getPath()
Return relative path of folder with user's images in file-system(relative to uploadRoot parameter)


getImages

public List<Image> getImages()
This method return all images, belongs to user

Returns:
images, belongs to user

getAlbums

public List<Album> getAlbums()
This method return all albums, belongs to user

Returns:
albums, belongs to user

getSharedImages

public List<Image> getSharedImages()
This method return all images, belongs to user

Returns:
images, belongs to user

getSharedAlbums

public List<Album> getSharedAlbums()
This method return all albums, belongs to user

Returns:
albums, belongs to user

hasShelfWithName

public boolean hasShelfWithName(Shelf shelf)
This method check, if user already have shelf with given name

Parameters:
shelf - - shelf to check
Returns:
boolean value, that indicated if shelf with the same name exist

hasAlbumWithName

public boolean hasAlbumWithName(Album album)
This method check, if parent shelf contain album with the same name as given album

Parameters:
album - - album to check
Returns:
boolean value, that indicate if album with the same name exist

hasImageWithName

public boolean hasImageWithName(Image image)
This method check, if containing album already have image with the same name

Parameters:
image - - image to check
Returns:
boolean value, that indicate if image with the same name exist

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object

RichFaces Photoalbum 4.3.5.Final

Copyright © 2014 JBoss by Red Hat. All Rights Reserved.