@Entity public class Image extends Object implements Serializable
Constructor and Description |
---|
Image() |
Modifier and Type | Method and Description |
---|---|
void |
addComment(Comment comment)
Add comment to this image.
|
void |
addMetaTag(MetaTag metatag)
Add metatag to this image.
|
boolean |
equals(Object obj) |
Album |
getAlbum() |
String |
getCameraModel() |
List<Comment> |
getComments() |
Date |
getCreated() |
String |
getDescription() |
String |
getFullPath()
Return relative path of this image in file-system(relative to uploadRoot parameter)
|
int |
getHeight() |
Long |
getId() |
List<MetaTag> |
getImageTags() |
String |
getMeta()
Return Comma separated tag value for presentation in view
|
String |
getMetaString()
Getter for property meta
|
String |
getName() |
User |
getOwner() |
String |
getPath()
Getter for property path.
|
Boolean |
getShowMetaInfo() |
double |
getSize()
Getter for property size
|
MetaTag |
getTagByName(String s)
Return MetaTag object by string representation
|
Date |
getUploaded()
Getter for property uploaded
|
int |
getWidth() |
int |
hashCode() |
boolean |
isAllowComments()
Getter for property allowComments.
|
boolean |
isCovering() |
boolean |
isNew()
Determine if this image should be marked as new(on jsf page, for example in tree)
|
boolean |
isOwner(User user) |
boolean |
isPreDefined()
Getter for property preDefined
|
boolean |
isVisited()
Getter for property visited
|
void |
removeComment(Comment comment)
Remove comment from list of comments, belongs to that image.
|
void |
removeMetaTag(MetaTag metatag)
Remove metatag from list of metatag, associated to that image.
|
void |
setAlbum(Album album) |
void |
setAllowComments(boolean allowComments) |
void |
setCameraModel(String cameraModel) |
void |
setCovering(boolean covering) |
void |
setCreated(Date created) |
void |
setDescription(String description) |
void |
setHeight(int height) |
void |
setImageTags(List<MetaTag> imageTags) |
void |
setMeta(String meta)
Setter for property meta
|
void |
setName(String name) |
void |
setPath(String path)
Setter for property path
|
void |
setShowMetaInfo(Boolean showMetaInfo) |
void |
setSize(double size)
setter for property size
|
void |
setUploaded(Date uploaded)
setter for property uploaded
|
void |
setVisited(boolean visited)
Setter for property visited
|
void |
setWidth(int width) |
String |
toString() |
public boolean isPreDefined()
public Boolean getShowMetaInfo()
public void setShowMetaInfo(Boolean showMetaInfo)
public Long getId()
public String getName()
public void setName(String name)
public String getDescription()
public void setDescription(String description)
public String getPath()
public void setPath(String path)
path
- - relative path to imagepublic Date getCreated()
public void setCreated(Date created)
public Album getAlbum()
public void setAlbum(Album album)
public void setMeta(String meta)
meta
- - string representation of metatags, associated to image. Used at jsf page.public String getMetaString()
public String getCameraModel()
public void setCameraModel(String cameraModel)
public int getHeight()
public void setHeight(int height)
public double getSize()
public void setSize(double size)
size
- - size of image in KBpublic int getWidth()
public void setWidth(int width)
public Date getUploaded()
public void setUploaded(Date uploaded)
uploaded
- - date of uploadpublic boolean isAllowComments()
public void setAllowComments(boolean allowComments)
allowComments
- the allowComments to setpublic boolean isCovering()
public void setCovering(boolean covering)
covering
- - determine if this image is covering for containing albumpublic boolean isVisited()
public void setVisited(boolean visited)
visited
- - boolean value, that indicated is user visit this image alreadypublic boolean isNew()
public void addComment(Comment comment)
comment
- - comment to addpublic void removeComment(Comment comment)
comment
- - comment to deletepublic void addMetaTag(MetaTag metatag)
metatag
- - metatag to addpublic void removeMetaTag(MetaTag metatag)
metatag
- - metatag to deletepublic MetaTag getTagByName(String s)
s
- - string representation of metatagpublic String getMeta()
public String getFullPath()
public User getOwner()
public boolean isOwner(User user)
Copyright © 2014. All Rights Reserved.