@Entity public class Shelf extends Object implements Serializable
| Constructor and Description |
|---|
Shelf() |
| Modifier and Type | Method and Description |
|---|---|
void |
addAlbum(Album album)
This method add album to collection of albums of current shelf
|
boolean |
equals(Object obj) |
List<Album> |
getAlbums() |
Date |
getCreated() |
String |
getDescription() |
Event |
getEvent() |
Album |
getFirstAlbum()
This method return first album of current shelf or null if shelf haven't albums.
|
Long |
getId() |
List<Image> |
getImages() |
String |
getName()
Getter for property name
|
User |
getOwner() |
String |
getPath()
Return relative path of this shelf in file-system(relative to uploadRoot parameter)
|
List<Image> |
getUnvisitedImages() |
int |
hashCode() |
boolean |
isOwner(User user) |
boolean |
isPreDefined()
Getter for property preDefined
|
boolean |
isShared()
Getter for property shared.
|
void |
removeAlbum(Album album)
This method remove album from collection of albums of album
|
void |
setCreated(Date created) |
void |
setDescription(String description) |
void |
setEvent(Event event) |
void |
setName(String name) |
void |
setOwner(User owner) |
void |
setShared(boolean shared)
Setter for property shared
|
String |
toString() |
public boolean isPreDefined()
public Long getId()
public String getName()
public void setName(String name)
public String getDescription()
public void setDescription(String description)
public User getOwner()
public void setOwner(User owner)
public boolean isOwner(User user)
public Date getCreated()
public void setCreated(Date created)
public boolean isShared()
public void setShared(boolean shared)
shared - - determine is this shelf will be accessible by other users.public void addAlbum(Album album)
album - - album to addpublic void removeAlbum(Album album)
album - - album to removepublic Album getFirstAlbum()
public String getPath()
public Event getEvent()
public void setEvent(Event event)
Copyright © 2015. All rights reserved.