@Entity public class Album extends Object implements Serializable
| Constructor and Description |
|---|
Album() |
| Modifier and Type | Method and Description |
|---|---|
void |
addImage(Image image)
This method add image to collection of images of current album
|
boolean |
equals(Object obj) |
Image |
getCoveringImage()
This method determine covering image of this album
|
Date |
getCreated() |
String |
getDescription() |
Long |
getId() |
List<Image> |
getImages()
Getter for property images
|
int |
getIndex(Image image)
This method determine index of specified image in collection of images, belongs to this album.
|
String |
getName() |
User |
getOwner()
Getter for property owner
|
String |
getPath()
Return relative path of this album in file-system(relative to uploadRoot parameter)
|
Shelf |
getShelf()
Getter for property shelf
|
List<Image> |
getUnvisitedImages() |
int |
hashCode() |
boolean |
isEmpty()
This method determine is album empty or not
|
boolean |
isOwner(User user) |
boolean |
isPreDefined()
Getter for property preDefined
|
boolean |
isShowAfterCreate() |
void |
removeImage(Image image)
This method remove image from collection of images of album
|
void |
setCoveringImage(Image coveringImage) |
void |
setCreated(Date created) |
void |
setDescription(String description) |
void |
setName(String name) |
void |
setShelf(Shelf parent) |
void |
setShowAfterCreate(boolean showAfterCreate) |
String |
toString() |
public Shelf getShelf()
public void setShelf(Shelf parent)
public Long getId()
public String getName()
public void setName(String name)
public String getDescription()
public void setDescription(String description)
public List<Image> getImages()
public Date getCreated()
public void setCreated(Date created)
public void setCoveringImage(Image coveringImage)
coveringImage - - Image for covering albumpublic void addImage(Image image)
image - - image to addpublic void removeImage(Image image)
image - - image to removepublic User getOwner()
public boolean isOwner(User user)
public int getIndex(Image image)
public Image getCoveringImage()
public boolean isEmpty()
public boolean isPreDefined()
public String getPath()
public boolean isShowAfterCreate()
public void setShowAfterCreate(boolean showAfterCreate)
Copyright © 2014. All Rights Reserved.